MDL-55074 theme_boost: Only show activity edit menu on first page
[moodle.git] / theme / boost / scss / moodle / blocks.scss
CommitLineData
d7fbf722 1.blockmovetarget .accesshide {
536f0460 2 position: relative;
d7fbf722 3 left: initial;
536f0460 4}
270dd871
FM
5
6.block_search_forums .searchform {
7 /* Override plugin's default. */
8 text-align: left;
9}
400274bc
DW
10
11.block.block_navigation .block_tree ul,
12.block_settings .block_tree ul {
13 margin-left: 0;
14}
1149c235 15
60d17ecd 16.block .card-title {
137c289a 17 word-break: break-all;
60d17ecd
DW
18}
19
1149c235
FM
20.block .block-controls {
21 .dropdown-toggle {
22 /* So that the caret takes the colour of the icon. */
23 color: #999;
f4143537 24
1149c235 25 &::after {
132093f0 26 margin-left: 0;
1149c235
FM
27 }
28 }
29}
99061152
DW
30
31#nav-drawer.closed {
32 left: -285px;
33}
34#blocks-drawer.closed {
35 right: -285px;
36}
37
38/* Use a variable for the drawer background colors. */
39$drawer-bg: $gray-lighter !default;
40
41[data-region="drawer"] {
42 position: fixed;
43 padding: 20px;
44 width: 265px;
45 top: ($navbar-padding-y * 2) + ($navbar-brand-padding-y * 2) + $font-size-lg * 1.5;
46 height: 100%;
47 overflow-y: scroll;
48 -webkit-overflow-scrolling: touch;
49 z-index: 100;
50 background-color: $drawer-bg;
51 -webkit-transition: right 0.5s ease, left 0.5s ease;
52 -moz-transition: right 0.5s ease, left 0.5s ease;
53 transition: right 0.5s ease, left 0.5s ease;
54}
55#nav-drawer {
56 right: auto;
57 left: 0px;
58}
59#blocks-drawer {
60 left: auto;
61 right: 0px;
62}
63body.drawer-ease {
64 -webkit-transition: margin-left 0.5s ease, margin-right 0.5s ease;
65 -moz-transition: margin-left 0.5s ease, margin-right 0.5s ease;
66 transition: margin-left 0.5s ease, margin-right 0.5s ease;
67}
68
69body.drawer-open-left {
70 @include media-breakpoint-up(md) {
71 margin-left: 265px;
72 }
73}
74body.drawer-open-right {
75 @include media-breakpoint-up(md) {
76 margin-right: 265px;
77 }
78}