NDOJ/resources/table.scss
cuom1999 9bc44bd65c Tmp
2022-06-02 16:55:00 -05:00

105 lines
No EOL
2.1 KiB
SCSS

@import "vars";
.table {
border-spacing: 0;
width: 100%;
margin-left: auto;
margin-right: auto;
margin-bottom: 0.5em;
background: white;
&.striped tr:nth-child(even) {
background: #f7f7f7;
}
td:first-child {
border-color: $border_gray;
border-width: 1px 1px 0 1px;
}
tr:last-child td {
&:first-child {
border: 1px solid $border_gray;
}
border-color: $border_gray;
border-width: 1px 1px 1px 0;
}
thead th {
vertical-align: middle;
&:first-child {
border-top-left-radius: $table_header_rounding;
}
&:last-child {
border-top-right-radius: $table_header_rounding;
}
}
th {
height: 2em;
color: white;
background-color: $widget_black;
border-color: #cccccc;
border-width: 1px 1px 0 0;
border-style: solid;
padding: 4px 10px;
vertical-align: middle;
text-align: center;
white-space: nowrap;
font-weight: 600;
font-size: 1.1em;
&:first-child {
border-top-left-radius: $table_header_rounding;
}
&:last-child {
border-top-right-radius: $table_header_rounding;
}
}
td {
border-color: $border_gray;
border-width: 1px 1px 0 0;
border-style: solid;
padding: 7px 5px;
vertical-align: middle;
text-align: center;
}
// Monkey-patches for awkward table rounding
tr:not(:first-child) th {
border-radius: 0;
}
tr:last-child th {
border-bottom-left-radius: $table_header_rounding;
}
thead tr th {
border-bottom-left-radius: 0 !important;
}
}
#users-table td:nth-child(2), #users-table th:nth-child(2) {
border-right: none;
text-align: left;
}
#users-table .fullname-column {
min-width: 6em;
text-align: right !important;
border-right: none !important;
}
#users-table .fullname-column span {
color: gray !important;
font-weight: 600;
}
#users-table th a {
color: white;
}