Skip to content

Commit

Permalink
Merge pull request #199 from isubit/development
Browse files Browse the repository at this point in the history
Development 1.7.7
  • Loading branch information
sacarney committed Jul 19, 2022
2 parents 5a14813 + 563b353 commit 83c53ae
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 58 deletions.
39 changes: 6 additions & 33 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,45 +228,18 @@ button.btn {
/* -------------------------------------- */
/* ## TABLES
/* -------------------------------------- */
/* Overrides bootstrap.min.css */

/* Duplicate bootstrap.min.css just in case .table is
* not automatically applied.
*
* See isu-responsivetables.css for more.
*/

table {
width: 100%;
max-width: 100%;
overflow: hidden;
overflow-x: auto;
margin-bottom: 1rem;
color: #212529;
}

tbody {
.table tbody {
border-bottom: 1px solid #cccccc;
}

tr {
width: 100%;
}

th {
padding: 0.75rem;
vertical-align: bottom;
.table thead th,
.table th {
background: #eee;
border-top: 1px solid #dee2e6;
border-bottom: 2px solid #cccccc;
}

td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
.table thead th {
border-bottom: 2px solid #cccccc;
}

/* Overrides bootstrap.min.css */
caption {
caption-side: top;
padding: 0.5rem 0;
Expand Down
37 changes: 13 additions & 24 deletions css/isu-responsivetables.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
/**
* @file
* CSS for responsive tables.
* CSS for responsive tables. Table styling comes from the
* Bootstrap 4 table classes, unless where overriden in base.css.
*/

/* -------------------------------------- */
/* ## If javascript is disabled
/* -------------------------------------- */

/* If js is disabled, table styling is applied directly to the
* element from base.css, duplicating Bootstrap 4's table styling.
* Tables in Views get their table class from the views-view-table.html.twig.
*
* Our responsive solution when javascript is disabled is a contained
* horizontally scrolling table.
*/

table {
display: block; /* Allows overflow-x to scroll */
article table {
display: block; /* Allows overflow-x to scroll */
max-width: 100%;
overflow: hidden;
overflow-x: auto;
}
table tr {
article table tr {
width: 100%;
}
table::-webkit-scrollbar {
article table::-webkit-scrollbar {
-webkit-appearance: none;
}
table::-webkit-scrollbar:horizontal {
article table::-webkit-scrollbar:horizontal {
height: 11px;
}
table::-webkit-scrollbar-thumb {
article table::-webkit-scrollbar-thumb {
border-radius: 8px;
border: 2px solid white;
background-color: rgba(0, 0, 0, 0.5);
}
table::-webkit-scrollbar-track {
article table::-webkit-scrollbar-track {
background-color: #fff;
border-radius: 8px;
}
Expand Down Expand Up @@ -76,7 +72,6 @@ table::-webkit-scrollbar-track {
}
.isu-responsive-table.isu-table-none td {
border-bottom: 1px solid #dddddd;
border-left: 1px solid #dddddd;
border-right: 1px solid #dddddd;
display: block;
}
Expand All @@ -94,15 +89,13 @@ table::-webkit-scrollbar-track {
display: block;
border-bottom: 3px solid #bbbbbb;
}
.isu-responsive-table.isu-table-row thead tr,
.isu-responsive-table.isu-table-row tbody tr:last-of-type {
.isu-responsive-table.isu-table-row tr:first-of-type {
border-bottom: 0;
}
.isu-responsive-table.isu-table-row td {
display: flex;
padding: 0;
border-bottom: 1px solid #dddddd;
border-left: 1px solid #dddddd;
border-right: 1px solid #dddddd;
}
.isu-responsive-table.isu-table-row td:last-of-type {
Expand Down Expand Up @@ -141,7 +134,6 @@ table::-webkit-scrollbar-track {
}
.isu-responsive-table.isu-table-col td {
border-bottom: 1px solid #dddddd;
border-left: 1px solid #dddddd;
border-right: 1px solid #dddddd;
display: block;
}
Expand Down Expand Up @@ -173,9 +165,6 @@ table::-webkit-scrollbar-track {
.isu-responsive-table.isu-table-both tr:nth-of-type(2) {
border-top: 1px solid #dddddd;
}
.isu-responsive-table.isu-table-both tr:last-of-type {
border-bottom: 0;
}
.isu-responsive-table.isu-table-both td {
display: flex;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion iastate_theme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Drupal 9 theme for Iowa State University websites
type: theme
core: 8.x
core_version_requirement: ^8 || ^9
version: "1.7.6"
version: "1.7.7"
base theme: stable
libraries:
- iastate_theme/global-css
Expand Down

0 comments on commit 83c53ae

Please sign in to comment.