aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/stylesheets/scss/courseware/structural-element.scss
blob: 278c0db8e0a17def422bab2b1245e23a2b22c0fd (plain)
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
@use '../../mixins' as *;
@import './variables';

#course-courseware-index,
#contents-courseware-index,
#course-courseware-courseware,
#contents-courseware-courseware {
    form.default input[type=date] {
        max-width: 9em;
    }
}

.cw-structural-element {
    &.cw-structural-element-consumemode {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        padding: 0;
        background-color: var(--white);
        z-index: 1004;
        overflow-y: scroll;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--base-color) var(--dark-gray-color-5);
    }

    .cw-welcome-screen {
        .cw-welcome-screen-keyvisual {
            margin: 14px 0 42px 0;
            width: 100%;
            height: 400px;
            background-image: url('#{$image-path}/courseware-keyvisual.svg');
            background-repeat: no-repeat;
            background-position: center center;
        }

        header {
            padding: 0.5em 0;
            text-align: center;
            font-size: 2.25em;
        }

        .cw-welcome-screen-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
    }

    .cw-structural-element-feedback-wrapper,
    .cw-structural-element-comments-wrapper {
        max-width: calc(1095px - 2px);
        width: 100%;
        margin-bottom: 1em;
    }

    .cw-container-wrapper {
        max-width: $max-content-width;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: space-between;

        &.cw-container-wrapper-consume {
            margin: 0 auto;
        }
    }

    .cw-structural-element-description {
        width: 400px;
        height: 200px;
        overflow-y: auto;
        resize: none;
    }

    .cw-structural-element-color {
        color: var(--white);
        &.black {
            background-color: map-get($tile-colors, 'black');
        }
        &.charcoal {
            background-color: map-get($tile-colors, 'charcoal');
        }
        &.royal-purple {
            background-color: map-get($tile-colors, 'royal-purple');
        }
        &.iguana-green {
            background-color: map-get($tile-colors, 'iguana-green');
        }
        &.queen-blue {
            background-color: map-get($tile-colors, 'queen-blue');
        }
        &.verdigris {
            background-color: map-get($tile-colors, 'verdigris');
        }
        &.mulberry {
            background-color: map-get($tile-colors, 'mulberry');
        }
        &.pumpkin {
            background-color: map-get($tile-colors, 'pumpkin');
        }
        &.sunglow {
            background-color: map-get($tile-colors, 'sunglow');
        }
        &.apple-green {
            background-color: map-get($tile-colors, 'apple-green');
        }

        &.studip-blue {
            background-color: map-get($tile-colors, 'studip-blue');
        }
        &.studip-lightblue {
            background-color: map-get($tile-colors, 'studip-lightblue');
        }
        &.studip-red {
            background-color: map-get($tile-colors, 'studip-red');
        }
        &.studip-green {
            background-color: map-get($tile-colors, 'studip-green');
        }
        &.studip-yellow {
            background-color: map-get($tile-colors, 'studip-yellow');
        }
        &.studip-gray {
            background-color: map-get($tile-colors, 'studip-gray');
        }
    }

    .cw-structural-element-info {
        width: 600px;
        tr:first-child {
            width: 12em;
            vertical-align: top;
        }
    }

    .cw-companion-box-wrapper {
        width: 100%;
        max-width: $max-content-width;
    }
}

.cw-structural-element-dialog {
    input[type='text'] {
        width: 20em;
    }
}

.cw-structural-element-image-preview {
    display: block;
    max-height: 200px;
    max-width: 300px;
    width: auto;
    height: auto;
    margin: 0 auto;
    padding-bottom: 1em;
}

$cw-placeholder-image-size: 128px;
.cw-structural-element-image-preview-placeholder {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 300px;
    height: $cw-placeholder-image-size;
    margin: 0 auto;
    background-color: var(--color--image-placeholder-background);
    color: var(--color--image-placeholder-icon);
    @include icon(before, courseware, $size: $cw-placeholder-image-size);
    margin-bottom: 1em;
    padding: 36px 0;
}

.cw-element-permissions {
    label {
        display: block;
        padding: 6px 0;
    }
    table.default {
        > caption {
            padding: 0;
            font-size: 1.25em;
        }
        td.perm {
            input.right,
            input.date {
                cursor: pointer !important;
            }
        }
    }
    button.cw-add-persons {
        margin-left: 4px;
    }
    button.cw-permission-delete {
        width: 24px;
        height: 24px;
        border: none;
        background-color: transparent;
        @include icon(before, trash, $align: middle);
        cursor: pointer;
    }
}

.cw-element-export {
    label {
        input {
            vertical-align: middle;
        }

        span {
            vertical-align: middle;
        }
    }
}