-
Notifications
You must be signed in to change notification settings - Fork 11
/
styles.css
135 lines (120 loc) · 4.06 KB
/
styles.css
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Improved styling on tabbed view to add space between tab bar and content. */
.block_multiblock .multiblock-tabbed-list .tab-pane {
padding-top: 1rem;
}
/* Reduce excessive spacing on accordion selectors. */
.block_multiblock .multiblock-accordion .card-header [data-toggle="collapse"] {
padding: 0;
}
/* But make sure there is some spacing in the inner container. */
.block-region .block.card .multiblock-accordion [id^="multiblock-content"] .card-body {
padding: 1.25rem;
}
/* Make dropdown full width */
.block_multiblock .multiblock-dropdown > .nav {
margin: 0 0 1rem 0;
}
.block_multiblock .multiblock-dropdown .nav-item.dropdown {
width: 100%;
text-align: center;
}
/* Make 2-column layout not broken, generically. */
.multiblock-columns-2 .col-md-6:nth-of-type(odd) section {
margin-left: 1rem;
margin-right: 0.5rem;
}
.multiblock-columns-2 .col-md-6:nth-of-type(even) section {
margin-left: 0.5rem;
margin-right: 1rem;
}
.multiblock-columns-2-66-33 .col-md-8 section {
margin-left: 1rem;
margin-right: 0.5rem;
}
.multiblock-columns-2-66-33 .col-md-4 section {
margin-left: 0.5rem;
margin-right: 1rem;
}
.multiblock-columns-2-33-66 .col-md-4 section {
margin-left: 1rem;
margin-right: 0.5rem;
}
.multiblock-columns-2-33-66 .col-md-8 section {
margin-left: 0.5rem;
margin-right: 1rem;
}
/* Fix the multiblock 2/3 column layout to hide the parent container and remove its padding. */
/* Some of the rules are specified again in more selective versions for different themes. */
.multiblock-columns-2-parent[id^="inst"],
.multiblock-columns-3-parent[id^="inst"] {
background: transparent;
border: transparent;
}
.multiblock-columns-2-parent[id^="inst"] .multiblock > .container,
.multiblock-columns-3-parent[id^="inst"] .multiblock > .container {
padding: 0;
max-width: 100%;
}
.multiblock-columns-2-parent[id^="inst"] .multiblock > .container > .row > [class*="col-md-"],
.multiblock-columns-3-parent[id^="inst"] .multiblock > .container > .row > [class*="col-md-"] {
padding: 0;
}
.multiblock-columns-2-parent[id^="inst"] > .card-body,
.multiblock-columns-3-parent[id^="inst"] > .card-body {
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
border: transparent !important; /* stylelint-disable-line declaration-no-important */
}
.multiblock-columns-2-parent[id^="inst"] > .card-body > .card-text,
.multiblock-columns-3-parent[id^="inst"] > .card-body > .card-text {
margin-top: 0 !important; /* stylelint-disable-line declaration-no-important */
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
}
.multiblock-columns-2-parent > .card-body > .card-title + .card-text,
.multiblock-columns-2-parent[id^="inst"] > .card-body > .block-controls + .card-text,
.multiblock-columns-3-parent > .card-body > .card-title + .card-text,
.multiblock-columns-3-parent[id^="inst"] > .card-body > .block-controls + .card-text {
margin-top: 0.75rem !important; /* stylelint-disable-line declaration-no-important */
}
/* Additional tweaks for 3-column specifically. */
.multiblock-columns-3 .col-md-4:nth-of-type(3n+1) section {
margin-left: 1rem;
margin-right: 0.5rem;
}
.multiblock-columns-3 .col-md-4:nth-of-type(3n+2) section {
margin-left: 0.5rem;
margin-right: 0.5rem;
}
.multiblock-columns-3 .col-md-4:nth-of-type(3n+3) section {
margin-left: 0.5rem;
margin-right: 1rem;
}
/* Style fixes for multiblock. */
.multiblock-carousel {
padding-bottom: 70px;
}
.multiblock-carousel a.carousel-control {
top: auto;
bottom: 5px;
height: 40px;
background: #fff;
border: 1px solid #ddd;
margin-bottom: -70px;
opacity: 1;
}
.multiblock-carousel a.carousel-control span {
color: #000;
}
.multiblock-carousel-bootstrap3 a.carousel-control > .carousel-control {
position: relative;
}
.multiblock-carousel .flex-icon::before {
font-size: 1.7em;
}
.multiblock-carousel-bootstrap3 .carousel-control-prev {
left: 0;
right: auto;
}
.multiblock-carousel-bootstrap3 .carousel-control-next {
right: 0;
left: auto;
}