Newer
Older
// also in _table.scss
$table-breakpoint: 'tablet-landscape';
font-size: 14px;
thead {
display: none;
@include media-query($table-breakpoint) {
display: table-header-group;
}
th {
// ordering
&.desc,
&.asc {
position: relative;
color: $color--dark-grey;
&::after {
position: absolute;
}
a {
color: inherit;
}
}
&.desc {
&::after {
@include triangle(top, $color--default, 5px);
}
}
&.asc {
&::after {
@include triangle(bottom, $color--default, 5px);
}
}
&.reviews_stats { // sass-lint:disable-line class-name-format
color: $color--mid-dark-grey;
span {
font-size: 13px;
}
}
// set column widths
&.title {
@include media-query($table-breakpoint) {
@include media-query(desktop) {
width: 260px;
}
Chris Lawton
committed
&.phase {
@include media-query($table-breakpoint) {
width: 150px;
}
}
}
tr {
&:hover {
box-shadow: none;
}
}
}
tbody {
td {
// project title
&.title {
padding-top: 15px;
font-weight: $weight--bold;
@include media-query($table-breakpoint) {
display: flex;
align-items: center;
padding-top: 20px;
padding-left: 10px;
}
@include media-query(desktop) {
display: table-cell;
padding-left: 20px;
}
&.has-tooltip {
@include media-query($table-breakpoint) {
position: absolute;
top: 75px;
left: 45px;
z-index: -1;
width: 200px;
padding: 5px;
font-size: 12px;
font-weight: $weight--normal;
white-space: normal;
background: $color--sky-blue;
border: 1px solid $color--marine;
content: attr(data-tooltip);
opacity: 0;
transition: opacity $transition;
}
&:hover {
&::before {
z-index: 10;
opacity: 1;
}
}
a {
color: $color--primary;
@include media-query($table-breakpoint) {
color: $color--dark-grey;
}
}
}
// project status label
Chris Lawton
committed
&.phase {
span {
display: inline-block;
font-size: 13px;
font-weight: $weight--bold;
color: $color--marine;
text-align: center;
background-color: $color--sky-blue;
@include media-query($table-breakpoint) {
width: 100%;
}
}
}
// comments
&.comments {
display: none;
@include media-query($table-breakpoint) {
display: table-cell;
font-size: 13px;
text-align: center;
vertical-align: middle;
background: url('./../../images/quote-outline.svg') transparent no-repeat center center;
background-size: 24px;
}
}
&.reviews_stats { // sass-lint:disable-line class-name-format
display: none;
@include media-query($table-breakpoint) {
display: table-cell;
}
}
// arrow to toggle project info - added via js
@include media-query($table-breakpoint) {
.arrow {
@include triangle(right, $color--primary, 6px);
position: relative;
display: inline-block;
transform: rotate(0);
&:hover {
cursor: pointer;
}
}
}
> span.mobile-label { // sass-lint:disable-line force-element-nesting
display: inline-block;
display: none;
}
@include media-query($table-breakpoint) {
display: none;
}
}
&__parent {
&.is-expanded {
background-color: $color--mist;
border-bottom: 1px solid $color--light-mid-grey;
+ #{$root}__child {
border-bottom: 1px solid $color--light-mid-grey;
}
+ #{$root}__child,
+ #{$root}__child + #{$root}__child {
display: table-row;
}
.arrow {
border-right-color: darken($color--dark-blue, 10%);
transform: rotate(90deg);
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
}
}
}
&__child {
display: none;
color: $color--mid-dark-grey;
vertical-align: top;
background-color: $color--mist;
border: 0;
border-bottom: 2px solid $color--light-grey;
&:hover {
box-shadow: none;
}
td {
padding: 10px;
}
p {
margin: 0;
font-weight: $weight--bold;
color: $color--default;
}
.title {
a {
visibility: hidden;
}
}
}
Chris Lawton
committed
&__toggle {
padding: 5px 0 5px 5px;
}