-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Slightly decrease font size of table content - Collapse table borders, to prevent gaps between cells - Define table styles as base HTML element styling - Refine table row focus outline - Prefix classes used for JavaScript interactions with `js-`
- Loading branch information
1 parent
2d7024b
commit e2c7fc6
Showing
9 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,54 @@ | ||
table { | ||
border-collapse: separate; | ||
border-collapse: collapse; | ||
font-size: 0.9em; | ||
text-align: left; | ||
width: 100%; | ||
} | ||
|
||
th { | ||
border-bottom: 1px solid shade($base-border-color, 25%); | ||
text-align: left; | ||
a { | ||
color: inherit; | ||
} | ||
} | ||
|
||
th, | ||
td { | ||
padding: $small-spacing; | ||
vertical-align: middle; | ||
thead { | ||
font-weight: $bold-font-weight; | ||
} | ||
|
||
td { | ||
tr { | ||
border-bottom: $base-border; | ||
} | ||
|
||
tbody tr { | ||
&:hover { | ||
background-color: $base-background-color; | ||
cursor: pointer; | ||
} | ||
|
||
&:focus { | ||
outline: $focus-outline; | ||
outline-offset: -($focus-outline-width); | ||
} | ||
} | ||
|
||
td, | ||
th { | ||
font-feature-settings: "kern", "liga", "clig", "calt", "lnum", "tnum"; | ||
font-kerning: normal; | ||
font-variant-ligatures: common-ligatures, contextual; | ||
font-variant-numeric: lining-nums, tabular-nums; | ||
padding: 0.75rem; | ||
vertical-align: middle; | ||
} | ||
|
||
td:first-child, | ||
th:first-child { | ||
padding-left: 2rem; | ||
} | ||
|
||
td:last-child, | ||
th:last-child { | ||
padding-right: 2rem; | ||
} | ||
|
||
td img { | ||
max-height: 2rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.cell-label { | ||
@include data-label; | ||
position: relative; | ||
|
||
&:hover { | ||
a { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
app/assets/stylesheets/administrate/utilities/_text-color.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.text-color-red { | ||
color: $light-red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters