MDL-69170 task: Added timecreated field to adhoc task table
[moodle.git] / theme / boost / scss / moodle / blocks.scss
CommitLineData
d7fbf722 1.blockmovetarget .accesshide {
536f0460 2 position: relative;
d7fbf722 3 left: initial;
536f0460 4}
270dd871 5
54ff9a4b
SL
6.block:target {
7 padding-top: 0 !important; /* stylelint-disable declaration-no-important */
8 margin-top: 0 !important;
9}
10
270dd871
FM
11.block_search_forums .searchform {
12 /* Override plugin's default. */
13 text-align: left;
14}
400274bc
DW
15
16.block.block_navigation .block_tree ul,
17.block_settings .block_tree ul {
18 margin-left: 0;
19}
1149c235
FM
20
21.block .block-controls {
22 .dropdown-toggle {
23 /* So that the caret takes the colour of the icon. */
9d67a408 24 color: $body-color;
1149c235
FM
25 }
26}
99061152 27
63d0d9b4 28$blocks-column-width: 360px !default;
99061152 29
0a58ec24
DW
30[data-region="blocks-column"] {
31 width: $blocks-column-width;
32 float: right;
99061152
DW
33}
34
3ec69c2e 35$blocks-plus-gutter: $blocks-column-width + ( $grid-gutter-width / 2 );
0a58ec24 36
11774d90 37/* We put an absolutely positioned div in a relatively positioned div so it takes up no space */
92bc86e4
BB
38@include media-breakpoint-up(sm) {
39 #region-main-settings-menu {
40 position: relative;
41 float: left;
42 width: 100%;
43 }
44
45 #region-main-settings-menu > div {
46 position: absolute;
47 right: 0;
48 z-index: 100;
49 margin: 1rem;
50 }
51
52 .region_main_settings_menu_proxy {
53 width: 4rem;
54 height: 2rem;
55 background-color: $body-bg;
56 margin-left: $card-spacer-x / 2;
57 margin-bottom: $card-spacer-x / 2;
58 border-bottom-left-radius: 0.5rem;
59 float: right;
60 }
11774d90 61}
92bc86e4
BB
62
63@include media-breakpoint-down(sm) {
64 #region-main-settings-menu .menubar {
65 justify-content: flex-end;
66 }
d8cfd611 67}
4682f17c
DW
68
69// Required for IE11 to prevent blocks being pushed under the content.
11774d90 70#region-main-settings-menu.has-blocks,
0a58ec24
DW
71#region-main.has-blocks {
72 display: inline-block;
73 width: calc(100% - #{$blocks-plus-gutter});
42654589 74 @include media-breakpoint-down(lg) {
0a58ec24 75 width: 100%;
970bb713
P
76 /* MDL-63102 - Remove extra space at bottom.
77 If modifying make sure block-region is horizontally stacked when in full screen */
78 display: block;
99061152
DW
79 }
80}
a0bdffbd 81
c77d1ae4
RW
82.header-action {
83 #region-main-settings-menu {
84 position: unset;
85 float: none;
86 width: auto;
87
88 & > div {
89 position: unset;
90 right: auto;
91 margin: 0;
92 }
93 }
94}
95
a0bdffbd 96[data-region="blocks-column"] {
42654589 97 @include media-breakpoint-down(lg) {
a0bdffbd
DW
98 width: 100%;
99 }
100}
cab053f7 101
e4b4b9e7 102$card-gutter : $card-deck-margin * 2;
cab053f7 103
0ec60261 104.block .empty-placeholder-image-lg {
356bfb69 105 height: 5rem;
0ec60261
BB
106}
107
44b54926 108.block .block-cards {
e4b4b9e7
BB
109 .course-info-container {
110 padding: 0.8rem;
111 }
e4b4b9e7
BB
112 .progress {
113 height: 0.5rem;
114 }
e4b4b9e7
BB
115 .course-summaryitem {
116 border: $border-width solid $border-color;
117 background-color: $body-bg;
118 }
3cfff885
BB
119 .icon {
120 margin-right: 0;
121 }
1a972542
BB
122 .card .coursemenubtn {
123 margin-top: -0.5rem;
3cfff885 124 }
97593c37 125 a.coursename,
72bb9784 126 span.categoryname,
3cfff885
BB
127 .btn-link {
128 color: inherit;
129 }
f87181fd
BB
130 .multiline {
131 white-space: normal;
132 }
3cfff885 133 .btn.btn-link.btn-icon {
4fd6b770
BB
134 height: 36px;
135 width: 36px;
3cfff885
BB
136 padding: 0;
137 border-radius: 50%;
3cfff885
BB
138
139 @include hover-focus {
140 background-color: $gray-200;
141 }
3cfff885 142 }
fe149a99
LB
143}
144
44b54926
BB
145.dashboard-card-deck.one-row {
146 flex-flow: nowrap;
a6501e96 147 overflow-x: scroll;
0ec60261
BB
148}
149
fe149a99 150.summaryimage {
eecff277
BB
151 height: 5rem;
152 width: 5rem;
fe149a99
LB
153 background-position: center;
154 background-size: cover;
e4b4b9e7 155}
cab053f7 156
8c890dd5
RW
157.dashboard-card-deck {
158 .dashboard-card {
159 margin-bottom: $card-gutter;
160 flex-basis: auto;
161 width: 100%;
162 flex-grow: 0;
163 flex-shrink: 0;
164 .dashboard-card-img {
165 height: 7rem;
166 background-position: center;
167 background-size: cover;
168 }
169 .dashboard-card-footer {
170 padding: 0.8rem;
171 }
4fd6b770 172 }
8c890dd5
RW
173
174 &.fixed-width-cards {
175 .dashboard-card {
176 width: 300px;
177 }
4fd6b770
BB
178 }
179}
180
8c890dd5 181.dashboard-card-deck:not(.fixed-width-cards) {
c412ddc8 182 @media (min-width: 576px) {
4fd6b770 183 .dashboard-card {
4f42ca11 184 width: calc(50% - #{$card-gutter});
e4b4b9e7 185 }
4fd6b770 186 }
c412ddc8 187 @media (min-width: 840px) {
4fd6b770 188 .dashboard-card {
4f42ca11 189 width: calc(33.33% - #{$card-gutter});
e4b4b9e7 190 }
4fd6b770 191 }
c412ddc8 192 @media (min-width: 1100px) {
4fd6b770 193 .dashboard-card {
4f42ca11 194 width: calc(25% - #{$card-gutter});
e4b4b9e7 195 }
4fd6b770 196 }
c412ddc8 197 @media (min-width: 1360px) {
4fd6b770 198 .dashboard-card {
4f42ca11 199 width: calc(20% - #{$card-gutter});
4fd6b770
BB
200 }
201 }
202}
203
204#region-main.has-blocks {
8c890dd5 205 .dashboard-card-deck:not(.fixed-width-cards) {
c412ddc8 206 @media (min-width: 1200px) {
4fd6b770 207 .dashboard-card {
4f42ca11 208 width: calc(33.33% - #{$card-gutter});
e4b4b9e7
BB
209 }
210 }
c412ddc8 211 @media (min-width: 1470px) {
4fd6b770 212 .dashboard-card {
4f42ca11 213 width: calc(25% - #{$card-gutter});
e4b4b9e7 214 }
cab053f7
RW
215 }
216 }
217}
0eb85562 218
c412ddc8 219body.drawer-open-left {
8c890dd5 220 .dashboard-card-deck:not(.fixed-width-cards) {
c412ddc8
BB
221 @media (min-width: 768px) {
222 .dashboard-card {
223 width: calc(100% - #{$card-gutter});
224 }
225 }
226 @media (min-width: 861px) {
227 .dashboard-card {
228 width: calc(50% - #{$card-gutter});
229 }
230 }
231 @media (min-width: 1122px) {
4fd6b770 232 .dashboard-card {
4f42ca11 233 width: calc(33.33% - #{$card-gutter});
4fd6b770 234 }
e4b4b9e7 235 }
c412ddc8 236 @media (min-width: 1381px) {
4fd6b770 237 .dashboard-card {
4f42ca11 238 width: calc(25% - #{$card-gutter});
4fd6b770 239 }
e4b4b9e7 240 }
cbd3c4fe 241 }
7243eef9 242}
57ea73d0 243
c412ddc8 244body.drawer-open-left #region-main.has-blocks {
8c890dd5 245 .dashboard-card-deck:not(.fixed-width-cards) {
c412ddc8
BB
246 @media (min-width: 1200px) {
247 .dashboard-card {
248 width: calc(100% - #{$card-gutter});
249 }
250 }
251 @media (min-width: 1236px) {
252 .dashboard-card {
253 width: calc(50% - #{$card-gutter});
254 }
255 }
256 @media (min-width: 1497px) {
257 .dashboard-card {
258 width: calc(33.33% - #{$card-gutter});
259 }
260 }
261 }
262}
263
4fd6b770
BB
264@media (min-width: 1200px) {
265 #block-region-side-pre {
8c890dd5 266 .dashboard-card-deck:not(.fixed-width-cards) {
c412ddc8
BB
267 margin-left: 0;
268 margin-right: 0;
4fd6b770 269 .dashboard-card {
c412ddc8 270 width: calc(100% - #{$card-gutter}) !important;
4fd6b770 271 }
3cfff885
BB
272 }
273 }
c8cc25ca
BB
274}
275
3edde4fb
RW
276.block_recentlyaccessedcourses {
277 .paging-bar-container {
278 margin-top: -2.4rem;
279 justify-content: flex-end;
280 }
281
282 @include media-breakpoint-down(xs) {
283 .paging-bar-container {
284 margin-top: 0;
285 }
286 }
287}
288
289#block-region-side-pre {
290 .block_recentlyaccessedcourses {
291 .paging-bar-container {
292 margin-top: 0;
293 }
294 }
295}
296
44b54926
BB
297.block_recentlyaccesseditems {
298 img.icon {
3db7a65e
FR
299 height: 24px;
300 width: 24px;
44b54926
BB
301 margin-right: 6px;
302 }
303}
304
356bfb69
BB
305.block_myoverview {
306 .content {
307 min-height: 19.35rem;
308 }
309 .paged-content-page-container {
310 min-height: 13rem;
311 }
312}
313
57ea73d0
DW
314// Show expand collapse with font-awesome.
315.block_settings .block_tree [aria-expanded="true"],
316.block_settings .block_tree [aria-expanded="true"].emptybranch,
317.block_settings .block_tree [aria-expanded="false"],
318.block_navigation .block_tree [aria-expanded="true"],
319.block_navigation .block_tree [aria-expanded="true"].emptybranch,
320.block_navigation .block_tree [aria-expanded="false"] {
321 background-image: none;
322}
323.block_settings .block_tree [aria-expanded="true"]:before,
324.block_navigation .block_tree [aria-expanded="true"]:before {
325 content: $fa-var-angle-down;
326 margin-right: 0;
da26d7b6 327 @include fa-icon();
57ea73d0 328 font-size: 16px;
57ea73d0
DW
329 width: 16px;
330}
331
332.block_settings .block_tree [aria-expanded="false"]:before,
333.block_navigation .block_tree [aria-expanded="false"]:before {
334 content: $fa-var-angle-right;
57ea73d0 335 margin-right: 0;
da26d7b6
BB
336 @include fa-icon();
337 font-size: 16px;
57ea73d0
DW
338 width: 16px;
339}
340.dir-rtl {
341 .block_settings .block_tree [aria-expanded="false"]:before,
342 .block_navigation .block_tree [aria-expanded="false"]:before {
343 content: $fa-var-angle-left;
344 }
345}
346
347.block_navigation .block_tree p.hasicon,
348.block_settings .block_tree p.hasicon {
349 text-indent: -3px;
350
351 .icon {
352 margin-right: 2px;
353 }
8c890dd5 354}
c906aed8
BB
355
356.block.invisibleblock .card-title {
357 color: $text-muted;
92bc86e4
BB
358}
359
360@include media-breakpoint-down(sm) {
361 .block.card {
362 border-left: 0;
363 border-right: 0;
364 }
c906aed8 365}