Files
notifications-admin/app/assets/stylesheets/components/table.scss
T

124 lines
1.7 KiB
SCSS
Raw Normal View History

2016-01-19 09:55:13 +00:00
.table {
margin-bottom: $gutter;
}
2015-12-17 11:14:19 +00:00
.table-heading {
text-align: left;
margin: 40px 0 $gutter-half 0;
2015-12-17 11:14:19 +00:00
}
2016-02-19 15:02:13 +00:00
.table-field-headings {
th {
padding: 0 0 5px 0;
}
}
2015-12-17 11:14:19 +00:00
%table-field,
.table-field {
vertical-align: top;
2015-12-17 11:14:19 +00:00
&:last-child {
padding-right: 0;
}
&-error {
border-left: 5px solid $error-colour;
padding-left: 7px;
display: block;
&-label {
display: block;
color: $error-colour;
font-weight: bold;
}
}
2015-12-17 11:14:19 +00:00
&-status {
&-default {
color: $secondary-text-colour;
}
&-error {
2016-01-19 09:55:13 +00:00
2015-12-17 11:14:19 +00:00
color: $error-colour;
font-weight: bold;
2016-01-19 09:55:13 +00:00
2016-02-08 11:11:55 +00:00
a {
&:link,
&:visited {
color: $error-colour;
}
2016-01-19 09:55:13 +00:00
}
2015-12-17 11:14:19 +00:00
}
2015-12-10 17:54:05 +00:00
2016-02-19 15:02:13 +00:00
&-yes,
&-no {
display: block;
text-indent: -999em;
background-size: 19px 19px;
background-repeat: no-repeat;
background-position: 50% 50%;
}
&-yes {
background-image: file-url('tick.png');
}
2015-12-10 17:54:05 +00:00
}
2016-04-05 11:16:29 +01:00
&-index {
width: 15px;
}
2016-04-12 15:05:27 +01:00
p {
margin: 0 0 5px 0;
}
2015-12-10 17:54:05 +00:00
}
2015-12-17 11:14:19 +00:00
.table-field-heading {
&:last-child {
padding-right: 0;
}
&-right-aligned {
display: block;
text-align: right;
}
}
.table-field-right-aligned {
2016-02-08 11:11:55 +00:00
@extend %table-field;
2015-12-17 11:14:19 +00:00
text-align: right;
}
.table-empty-message {
@include core-16;
color: $secondary-text-colour;
border-bottom: 1px solid $border-colour;
2016-01-26 16:20:57 +00:00
padding: 0.75em 0 0.5625em 0;
}
2016-02-04 17:13:57 +00:00
.table-show-more-link {
@include core-16;
color: $secondary-text-colour;
margin-top: -30px;
2016-04-18 11:10:47 +01:00
margin-bottom: $gutter * 1.3333;
2016-02-04 17:13:57 +00:00
border-bottom: 1px solid $border-colour;
padding: 0.75em 0 0.5625em 0;
2016-02-19 15:02:13 +00:00
text-align: center;
2016-02-04 17:13:57 +00:00
}
a.table-show-more-link {
color: $link-colour;
}