Newer
Older
background: $white;
border-left: 0;
display: inline-block;

Thomas Hackl
committed
height: max-content;
margin-bottom: $page-margin + 35px;
margin-top: 15px;
padding: 0 5px 7px 15px;

Thomas Hackl
committed
width: $sidebar-width;
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
height: 60px;
max-height: 60px;
background-image: url("#{$image-path}/sidebar/noicon-sidebar.png");
background-size: cover;
position: relative;
&-with-context {
margin-bottom: 0px;
}
display: flex;
align-items: flex-end;
}
.sidebar-context {
flex: 0;
background-color: rgba(255, 255, 255, 1);
border: 0px solid $base-color-20;
padding: 0px;
max-height: 60px;
}
.sidebar-title {
flex: 1;
box-sizing: border-box;
max-height: 60px;
padding: 12px 15px 0;
border-bottom: 12px solid transparent;
color: $white;
font-size: 1.2em;
overflow: hidden;
word-break: break-word;
position: relative;
line-height: 1.1;
text-align: left;
text-overflow: ellipsis;
/* it may happen that some browser does not support the following, then (...) won't appear */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.sidebar-widget.sidebar-widget-has-extra {
display: grid;
grid-template-areas: "swh swx" "swc swc";
grid-template-rows: auto;
grid-template-columns: 1fr min-content;
.sidebar-widget-header {
grid-area: swh;
}
.sidebar-widget-extra {
grid-area: swx;
}
.sidebar-widget-content {
grid-area: swc;
}
}
.course-avatar-medium,
.stream-avatar-medium,
.avatar-medium {
max-width: 60px;
height: 60px;
}
.sidebar-widget,
.sidebar-widget-placeholder {
background: $white;
border: 1px solid $content-color-40;
.sidebar-widget-header,
.sidebar-widget-extra {
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
background: $content-color-20;
color: $base-color;
font-weight: bold;
padding: 4px;
}
// Links inside the sidebar
a.link-intern {
@include icon(before, link-intern, clickable, 16px, 2px);
}
a.link-extern {
@include icon(before, link-extern, clickable, 16px, 2px);
}
// Prevent selects from growing too large
select {
max-width: 100%;
}
}
ul.widget-list {
list-style: none;
margin: 0;
padding: 0;
> li {
background-repeat: no-repeat;
background-position: 0 1px;
background-size: 16px 16px;
word-wrap: break-word;
}
}
div#sidebar-navigation {
div.sidebar-widget-header {
display: none;
}
div.sidebar-widget-content {
border-top: 0px;
}
}
.widget-links {
margin: 5px;
> li img {
vertical-align: text-top;
}
a {
display: block;
}
.widget-content a:only-child {
box-sizing: border-box;
line-height: 16px;
}
span[disabled],
a[disabled] {
color: $dark-gray-color-80;
cursor: not-allowed;
font-weight: lighter;
}
&.sidebar-navigation > li.active {
background-color: $base-color;
margin-left: -4px;
//#arrow > .right-border(14px, $content-color-20, 1px, $content-color-40, -5px);
@include arrow-right-border(14px, $base-color, 1px, $base-color, -5px);
a {
color: $white;
padding-left: 4px;
}
}
&.sidebar-views > li.active {
background: $activity-color-40;
margin-left: -5px;
box-shadow: inset 0 0 0 1px $activity-color;
@include arrow-right-border(14px, $activity-color-40, 1px, $activity-color, -5px);
}
}
&.sidebar-navigation > li,
&.sidebar-views > li {
padding-left: 5px;
&.active {
line-height: 2em;
&:before, &:after {
margin-left: -1px;
}
display: block;
// Obtuse angle looks kinda ugly with borders
&:before {
border-left-width: floor(calc(14px * 2 / 3));
border-left-width: floor(calc(14px * 2 / 3 - 1px));
button {
background: transparent;
border: 0;
color: $base-color;
margin: 0;
padding: 0;
text-align: left;
width: 100%;
&:hover {
color: $active-color;
cursor: pointer;
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
}
}
}
.sidebar-widget-cloud {
margin: 0px;
padding: 0px;
max-width: 100%;
overflow: hidden;
> li { display: inline-block; }
a.weigh-1 { font-size: 0.7em; }
a.weigh-2 { font-size: 0.8em; }
a.weigh-3 { font-size: 0.9em; }
a.weigh-4 { font-size: 1.0em; }
a.weigh-5 { font-size: 1.1em; }
a.weigh-6 { font-size: 1.3em; }
a.weigh-7 { font-size: 1.5em; }
a.weigh-8 { font-size: 1.7em; }
a.weigh-9 { font-size: 1.9em; }
a.weigh-10 { font-size: 2.1em; }
}
.sidebar-widget {
background: $white;
.widget-options {
list-style: none;
margin: 0;
padding: 0;
> li {
line-height: 1.5em;
margin-left: 0;
padding-left: 0;
}
.options-checkbox {
background-repeat: no-repeat;
background-position: left 2px;
display: block;
padding-left: 20px;
&.options-checked {
@include background-icon(checkbox-checked);
}
&.options-unchecked {
@include background-icon(checkbox-unchecked);
}
}
.options-radio {
background-repeat: no-repeat;
background-position: left 2px;
display: block;
padding-left: 20px;
&.options-checked {
@include background-icon(radiobutton-checked);
}
&.options-unchecked {
@include background-icon(radiobutton-unchecked);
}
}
}
}
.sidebar-widget-content {
border-top: 1px solid $content-color-40;
overflow-wrap: break-word;
padding: 4px;
transition: all 0.5s;
}
// TODO: These two should be combined into one widget
select.sidebar-selectlist {
overflow-y: auto;
width: 100%;
}
.selector-widget select {
cursor: pointer;
padding: 0;
option {
padding: 0 0.5em;
}
}
.sidebar-search {

Thomas Hackl
committed
.needles {
list-style: none;
margin: 0;
padding: 0;

Thomas Hackl
committed

Thomas Hackl
committed
display: flex;

Thomas Hackl
committed
&:last-child {
margin-bottom: 0;
}

Thomas Hackl
committed
.input-group {
margin-bottom: 0;
margin-top: 0;
input[type=text] {
box-sizing: border-box;
border: 1px solid $dark-gray-color-30;

Thomas Hackl
committed
border-right: none;
flex: 1;

Thomas Hackl
committed
width: 100%;
}

Thomas Hackl
committed
.submit-search {

Thomas Hackl
committed
background-color: $content-color-20;
border: 1px solid $dark-gray-color-30;

Thomas Hackl
committed
border-left-color: $light-gray-color-40;
border-radius: 0;
color: transparent;
cursor: pointer;
font: 0/0 a;
text-shadow: none;
}
.reset-search {

Thomas Hackl
committed
background-color: transparent;
border: 1px solid var(--dark-gray-color-30);

Thomas Hackl
committed
border-left: 0;
border-right: 0;
display: inline-block;
padding-right: 5px;
padding-top: 4px;
cursor: pointer;
}
}

Thomas Hackl
committed