demarches-normaliennes/app/assets/stylesheets/new_design/table.scss

47 lines
720 B
SCSS
Raw Normal View History

2017-07-11 16:50:29 +02:00
@import "colors";
2017-07-06 16:25:51 +02:00
@import "constants";
@import "mixins";
2017-07-27 16:02:35 +02:00
.table { // TODO : tester de remplacer par l'élément table uniquement
2017-07-06 16:25:51 +02:00
width: 100%;
2017-07-27 16:02:35 +02:00
tbody tr {
border-top: 1px solid $border-grey;
}
2017-07-06 16:25:51 +02:00
td {
2017-07-27 16:02:35 +02:00
@include vertical-padding($default-spacer);
vertical-align: middle;
}
th {
text-align: left;
font-weight: bold;
padding: (3 * $default-spacer) 2px;
2017-07-06 16:25:51 +02:00
}
2017-07-27 16:27:29 +02:00
&.hoverable {
tbody tr:hover {
background: $light-grey;
}
}
&.vertical {
2017-10-16 17:39:01 +02:00
font-size: 16px;
line-height: 22px;
2017-07-11 16:50:29 +02:00
2017-07-27 16:02:35 +02:00
tr {
border-top: none;
}
th {
2017-07-27 16:02:35 +02:00
@include vertical-padding($default-spacer);
&.header-section {
color: $blue;
font-size: 20px;
}
2017-07-11 16:50:29 +02:00
}
2017-07-06 16:25:51 +02:00
}
}