-
Notifications
You must be signed in to change notification settings - Fork 0
/
_thtrm-table-layout.scss
85 lines (72 loc) · 1.43 KB
/
_thtrm-table-layout.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.thtrm-table-layout {
display: block;
width: 100%;
@include tablet {
display: table;
table-layout: fixed;
overflow: hidden;
border-collapse: collapse;
}
&--space {
margin-top: 3em;
}
&--slim-space {
margin-top: 1em;
}
&--filled {
background: #466473;
}
&--filled-space {
background: #384c54;
border-top: 2em solid #384c54;
}
&--filled-space + &--filled-space {
border-top: none;
}
&--filled-space.thtrm-table-layout--last {
border-bottom: 2em solid #384c54;
border-top: none;
}
}
.thtrm-table-layout-row {
@include tablet {
display: table-row;
overflow: hidden;
}
}
.thtrm-table-layout-cell {
vertical-align: top;
height: 100%;
@include tablet {
display: table-cell;
.thtrm-table-layout-row--with-two-columns & {
width: 50%;
&.thtrm-teaser-image {
padding-bottom: 0;
}
}
.thtrm-table-layout-row--with-two-columns.thtrm-table-layout-row--2-3 & {
width: 31.6%;
&:first-child {
width: 68.4%;
}
}
.thtrm-table-layout-row--with-three-columns & {
width: 33.333333%;
}
.thtrm-table-layout-row--with-four-columns & {
width: 25%;
}
}
&--bordered {
padding: 3em;
box-shadow: inset 0 0 0 20px #384c54, inset 0 0 0 22px #fff;
.thtrm-topic-box-content {
padding: 0;
border: none;
}
.thtrm-topic-box {
padding: 0;
}
}
}