Newer
Older
thead {
display: none;
@include media-query($table-breakpoint) {
display: table-header-group;
}
th {
&.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);
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
}
}
}
&__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
&__empty {
text-align: center;
vertical-align: middle;
font-weight: $weight--bold;
color: $color--default;
td {
padding: 20px;
}
}
Chris Lawton
committed
&__toggle {
padding: 5px 0 5px 5px;
}
&__more {
display: flex;
justify-content: center;
background-color: $color--white;
padding: 20px 25px;
min-height: auto;
a {
margin: 0;
flex-basis: auto;
font-weight: $weight--semibold;
}
}