forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_components.scss
More file actions
145 lines (125 loc) · 3.14 KB
/
Copy path_components.scss
File metadata and controls
145 lines (125 loc) · 3.14 KB
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
136
137
138
139
140
141
142
143
144
145
//
// Copyright (C) 2014 - 2017 Instructure, Inc.
//
// This file is part of Canvas.
//
// Canvas is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License as published by the Free
// Software Foundation, version 3 of the License.
//
// Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
// A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
// details.
//
// You should have received a copy of the GNU Affero General Public License along
// with this program. If not, see <http://www.gnu.org/licenses/>.
//
.toolbar {
padding: $contentBoxPadding / 2;
@include fontSize($ic-font-size--small);
line-height: $baseLineHeight;
.header { @include fontSize($ic-font-size--medium); }
}
// List View
$ic-brand-course-nav-link--active: $ic-brand-primary;
.list-view {
overflow: auto;
& > header,
// oldskool compat
#section-tabs-header {
@include fontSize($ic-font-size--small);
font-weight: bold;
margin: 0 0 $ic-sp/2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#section-tabs-header-subtitle {
display: block;
@include fontSize(11px);
font-style: italic;
color: inherit;
}
& > *:first-child {
border-top: 0 !important; // oldskool important
}
& > ul,
// oldskool overrides
& > nav > ul {
list-style: none;
margin: 0;
padding: 0;
& > li {
padding: 0;
& > a {
display: block;
text-decoration: none;
color: $ic-font-color-dark;
border-radius: $baseBorderRadius;
padding: ($ic-sp - 4) $ic-sp;
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
line-height: $ic-label-line-height;
@if $use_high_contrast {
text-decoration: underline;
}
&:hover, &:focus {
background: lighten($ic-color-neutral, 5%);
}
& > span {
white-space: nowrap;
}
}
&:last-child > a {
border-bottom: 0;
}
}
}
// lists w/o headers still need a strong border
& > ul + ul {
border-top: 1px solid $ic-border-light;
}
a.active {
background-color: $ic-brand-course-nav-link--active;
font-weight: bold;
color: $ic-color-light;
&:hover, &:focus { background-color: $ic-brand-primary; }
.nav-badge {
background: $ic-color-light;
color: $ic-brand-primary;
}
}
}
.image-block {
display: flex; min-width: 1px;
.image-block-image {
margin-right: $ic-sp;
}
.image-block-content {
flex: 1;
min-width: 1px;
}
}
.box-shadow {
box-shadow: 0 2px 4px rgba(0,0,0,.25)
}
.page-action-list {
@include reset-list;
a {
display: block;
padding: 8px 0;
color: $ic-font-color-dark;
font-weight: bold;
border-bottom: 1px solid $ic-border-light;
&:hover, &:focus {
color: $ic-link-color;
}
@if $use_high_contrast { text-decoration: none; }
&:active {
color: $grayLight;
}
}
}
* + .page-action-list { margin-top: $ic-sp; }