ode-csslib 4.0.6 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- entcore-css-lib=4.0.6 27/01/2023 08:53:44
1
+ entcore-css-lib=4.0.7 17/02/2023 10:44:14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "Open Digital Education Legacy CSS framework",
5
5
  "scripts": {
6
6
  "copy-fonts": "cpr node_modules/entcore-generic-icons/fonts/ assets/fonts/generic-icons/ -o",
@@ -1,6 +1,7 @@
1
1
  $magneto-yellow: #ffb600;
2
2
  $magneto-yellow-ochre: #ecbe30;
3
3
  $magneto-white: #ffffff;
4
+ $magneto-lighter-light-grey: #f8f9fa;
4
5
  $magneto-lighter-grey: #ebebeb;
5
6
  $magneto-light-grey: #d6d6d6;
6
7
  $magneto-grey-blue: #f4fAfd;
@@ -20,6 +21,10 @@ $magneto-red: #e61610;
20
21
  $magneto-font-secondary: 'Comfortaa', cursive;
21
22
 
22
23
  $magneto-screen-mobile: 768px;
24
+ $magneto-screen-tablet: 1024px;
25
+ $magneto-screen-small-desktop: 1224px;
26
+ $magneto-screen-medium-desktop: 1536px;
27
+
23
28
 
24
29
 
25
30
 
@@ -29,12 +34,37 @@ $magneto-screen-mobile: 768px;
29
34
  }
30
35
  }
31
36
 
37
+ @mixin tablet {
38
+ @media (min-width: 769px) and (max-width: $magneto-screen-tablet) {
39
+ @content;
40
+ }
41
+ }
42
+
32
43
  @mixin desktop {
33
- @media (min-width: 769px) {
44
+ @media (min-width: 1025px) {
45
+ @content;
46
+ }
47
+ }
48
+
49
+ @mixin small-desktop {
50
+ @media (min-width: 1025px) and (max-width: $magneto-screen-small-desktop) {
34
51
  @content;
35
52
  }
36
53
  }
37
54
 
55
+ @mixin medium-desktop {
56
+ @media (min-width: 1225px) and (max-width: $magneto-screen-medium-desktop) {
57
+ @content;
58
+ }
59
+ }
60
+
61
+ @mixin large-desktop {
62
+ @media (min-width: 1441px) {
63
+ @content;
64
+ }
65
+ }
66
+
67
+
38
68
  @mixin paddingX($size) {
39
69
  padding-left: $size;
40
70
  padding-right: $size;
@@ -69,6 +69,11 @@ i {
69
69
  content: '\F0140'
70
70
  }
71
71
 
72
+ &.magneto-chevron-up::before {
73
+ font-family: 'magneto-mdi';
74
+ content: '\F0143'
75
+ }
76
+
72
77
  &.magneto-magnify::before {
73
78
  font-family: 'magneto-mdi';
74
79
  content: '\F0349';
@@ -180,8 +185,38 @@ i {
180
185
  content: '\F1682';
181
186
  }
182
187
 
188
+ &.magneto-display-free::before {
189
+ font-family: 'magneto-mdi';
190
+ content: '\F148E';
191
+ }
192
+
193
+ &.magneto-display-vertical::before {
194
+ font-family: 'magneto-mdi';
195
+ content: '\F1491';
196
+ }
197
+
198
+ &.magneto-display-horizontal::before {
199
+ font-family: 'magneto-mdi';
200
+ content: '\F1490';
201
+ }
202
+
183
203
  &.magneto-play::before {
184
204
  font-family: 'magneto-mdi';
185
205
  content: '\F040A';
186
206
  }
207
+
208
+ &.magneto-lock::before {
209
+ font-family: 'magneto-mdi';
210
+ content: '\F033E';
211
+ }
212
+
213
+ &.magneto-unlock::before {
214
+ font-family: 'magneto-mdi';
215
+ content: '\F033F';
216
+ }
217
+
218
+ &.magneto-user::before {
219
+ font-family: 'magneto-mdi';
220
+ content: '\F0009';
221
+ }
187
222
  }
@@ -5,3 +5,4 @@
5
5
  @import 'icons';
6
6
  @import 'toasts';
7
7
  @import 'lightbox';
8
+ @import 'scrollbar';
@@ -0,0 +1,17 @@
1
+ .scrollbar {
2
+ /* Mozilla firefox */
3
+ scrollbar-color: #aaa transparent;
4
+ scrollbar-width: thin;
5
+ }
6
+
7
+ /* Global */
8
+ .scrollbar::-webkit-scrollbar {
9
+ width: 12px;
10
+ height: 12px;
11
+ }
12
+
13
+ /* Ascenseur */
14
+ .scrollbar::-webkit-scrollbar-thumb {
15
+ background: rgba(227,228,229, 0.9);
16
+ border-radius: 8px;
17
+ }
@@ -1,4 +1,6 @@
1
1
  .board-read-container {
2
+
3
+
2
4
  display: flex;
3
5
  background: $magneto-white;
4
6
  min-height: calc(100vh - 124px);
@@ -40,4 +42,48 @@
40
42
  font-size: 24px;
41
43
  }
42
44
 
45
+ .nav-container {
46
+ background-color: #f1f5f8;
47
+ width: 60%;
48
+ border-bottom-right-radius: 24px;
49
+ border-top-right-radius: 24px;
50
+ box-shadow: 0 3px 12px rgb(0 0 0 / 25%);
51
+ line-height: 5vh;
52
+ padding: 16px;
53
+ }
54
+
55
+ .section-container {
56
+ width: 100%;
57
+ display: flex;
58
+ flex-direction: column;
59
+ }
60
+
61
+ .li-container {
62
+ position: relative;
63
+ font-size: 24px;
64
+ font-weight: bold;
65
+ }
66
+
67
+ .truncate {
68
+ width: 90%;
69
+ @include noTextOverflow(1);
70
+ font-size: 14px;
71
+ &:hover {
72
+ color: #ecbe30 !important;
73
+ }
74
+ }
75
+
76
+ .show-section {
77
+ position: absolute;
78
+ top: 0;
79
+ right: 0;
80
+ }
81
+
82
+ nav ul {
83
+ list-style-type: none;
84
+ margin: 0;
85
+ padding: 0;
86
+ overflow: hidden;
87
+ }
88
+
43
89
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  &-description {
26
26
  height: 64px;
27
- overflow-y: scroll;
27
+ overflow-y: auto;
28
28
  }
29
29
  }
30
30
 
@@ -54,7 +54,7 @@
54
54
 
55
55
  &-description {
56
56
  height: 64px;
57
- overflow-y: scroll;
57
+ overflow-y: auto;
58
58
  }
59
59
 
60
60
  .create-button {
@@ -66,7 +66,10 @@
66
66
  display: flex;
67
67
  border-top: solid 1px $magneto-white-blue;
68
68
  border-bottom: solid 1px $magneto-white-blue;
69
- background: $magneto-lighter-grey;
69
+ background-size: cover;
70
+ &.no-background-image {
71
+ background: $magneto-lighter-light-grey;
72
+ }
70
73
  position: absolute;
71
74
 
72
75
  @include mobile {
@@ -78,8 +81,9 @@
78
81
  }
79
82
 
80
83
  &-list {
81
- min-height: 650px;
84
+ min-height: 80vh;
82
85
  width: 100%;
86
+ overflow-x: auto;
83
87
 
84
88
  .empty-state {
85
89
  display: flex;
@@ -8,6 +8,9 @@
8
8
  &-body {
9
9
  display: flex;
10
10
  &-image-select {
11
+ &.small {
12
+ width: 120px !important;
13
+ }
11
14
  width: 240px;
12
15
  image-select {
13
16
  img {
@@ -29,5 +32,16 @@
29
32
  resize: none;
30
33
  }
31
34
  }
35
+
36
+ &-layout-container {
37
+ display: flex;
38
+ gap:30px;
39
+ }
32
40
  }
41
+
42
+ .display-icons {
43
+ font-size: 56px !important;
44
+ vertical-align: middle;
45
+ }
46
+
33
47
  }
@@ -35,16 +35,20 @@
35
35
  gap: 5px;
36
36
  align-items: center;
37
37
  display: flex;
38
+
38
39
  &.reduced-format {
39
40
  height: 20% !important;
40
41
  }
42
+
41
43
  &-creation {
42
44
  margin-right: 20px;
43
45
  display: flex;
44
46
  flex-direction: column;
47
+
45
48
  &-user {
46
49
  @include noTextOverflow(1);
47
50
  }
51
+
48
52
  &-date {
49
53
  color: $magneto-light-grey;
50
54
  font-size: 12px;
@@ -105,14 +109,13 @@
105
109
  background-color: $magneto-white;
106
110
  border: 5px solid $magneto-white;
107
111
  border-top-right-radius: 10px;
108
- border-bottom-left-radius: 5px;
109
112
  position: absolute;
110
113
  bottom: 0;
111
114
  left: 0;
112
115
  z-index: 1;
113
116
 
114
117
  i {
115
- font-size : $spacing-M;
118
+ font-size: $spacing-M;
116
119
  }
117
120
  }
118
121
 
@@ -127,26 +130,35 @@
127
130
  }
128
131
 
129
132
  &-infos {
130
- flex-direction: column;
131
133
  height: 20%;
132
134
 
133
135
  &-title {
134
136
  font-size: 16px;
135
137
  height: 10% !important;
136
138
  font-weight: bold;
139
+
137
140
  &-ellipsis {
138
141
  @include noTextOverflow(1);
139
142
  }
143
+
140
144
  &.reduced-format {
141
145
  height: 20% !important;
142
146
  }
143
147
  }
148
+
149
+ &-locked {
150
+ position: absolute;
151
+ bottom: 5px;
152
+ right: 5px;
153
+ font-size: 20px;
154
+ }
144
155
  }
145
156
 
146
157
  &-caption {
147
158
  color: $magneto-black;
148
159
  font-style: italic;
149
160
  font-size: 0.9em;
161
+ width: 90%;
150
162
  @include noTextOverflow(2);
151
163
  }
152
164
 
@@ -1,7 +1,27 @@
1
1
  .card-list {
2
- background: $magneto-lighter-grey;
2
+ &.no-background-image {
3
+ background: $magneto-lighter-light-grey;
4
+ }
3
5
  gap: 16px;
4
- justify-content: center;
6
+ flex-wrap: wrap;
7
+
8
+ &-free {
9
+ justify-content: center;
10
+ }
11
+
12
+ &-vertical {
13
+ justify-content: center;
14
+ overflow-y: auto;
15
+ overflow-x: hidden;
16
+ height: 85vh;
17
+ }
18
+
19
+ &-horizontal {
20
+ min-height: 75px;
21
+ overflow-x: auto;
22
+ flex-wrap: nowrap;
23
+ padding-bottom: 20px;
24
+ }
5
25
  padding-top: 15px;
6
26
 
7
27
  @include mobile {
@@ -8,6 +8,7 @@
8
8
  @import 'card-navbar';
9
9
  @import 'card-move-lightbox';
10
10
  @import 'card-duplicate-move-lightbox';
11
+ @import 'section-list';
11
12
  @import 'board-list-folder';
12
13
  @import 'board-manage-lightbox';
13
14
  @import 'search-bar';
@@ -0,0 +1,97 @@
1
+ .sections-list {
2
+ i.magneto-card-settings {
3
+ font-size: 25px;
4
+ position: absolute;
5
+ right: 5px;
6
+ }
7
+
8
+ display: flex;
9
+ justify-content: space-between;
10
+ overflow-y: hidden;
11
+
12
+ &-horizontal {
13
+ flex-direction: column;
14
+ }
15
+
16
+ &-content {
17
+ flex: 1;
18
+
19
+ &-horizontal {
20
+ overflow-y: unset;
21
+ height: 100% !important;
22
+ }
23
+
24
+ display: flex;
25
+
26
+ @include mobile {
27
+ min-width: 100%;
28
+ }
29
+
30
+ @include tablet {
31
+ min-width: 50%;
32
+ }
33
+
34
+ @include small-desktop {
35
+ min-width: 33%;
36
+ }
37
+
38
+ @include medium-desktop {
39
+ min-width: 25%;
40
+ }
41
+
42
+ @include large-desktop {
43
+ min-width: 20%;
44
+ }
45
+
46
+ flex-direction: column;
47
+
48
+ &-container {
49
+ padding: 10px;
50
+ margin-top: 10px;
51
+ background-color: #fff;
52
+ border-radius: 50px;
53
+ display: flex;
54
+ width: 85%;
55
+ height: auto;
56
+ position: relative;
57
+ align-items: center;
58
+ margin-left: auto;
59
+ margin-right: auto;
60
+ }
61
+
62
+ &-container:focus-within {
63
+ border-bottom: 1px solid #ff8500;
64
+ }
65
+
66
+ &-title {
67
+ width: 85%;
68
+ align-self: center;
69
+ text-align: center;
70
+ margin-left: auto;
71
+ margin-right: auto;
72
+ font-size: 20px;
73
+ &.input {
74
+ outline: none;
75
+ box-shadow: none;
76
+ border-bottom: none !important;
77
+ margin-bottom: 1px !important;
78
+ margin-top: 0 !important;
79
+ }
80
+
81
+ &-margin {
82
+ margin: auto !important;
83
+ margin-top: 10px !important;
84
+ }
85
+
86
+ &-truncate {
87
+ margin: auto;
88
+ width: 75%;
89
+ @include noTextOverflow(1);
90
+ }
91
+ }
92
+ }
93
+
94
+ &-content-vertical:not(:first-child) {
95
+ border-left: solid 2px rgba(211, 211, 211, .5);
96
+ }
97
+ }
@@ -43,11 +43,14 @@
43
43
 
44
44
  .reload {
45
45
  cursor: pointer;
46
+
46
47
  &:hover {
47
48
  color: $statistics-presences-main;
48
49
  }
50
+
49
51
  &.disabled {
50
52
  color: $statistics-presences-middle-grey;
53
+
51
54
  &:hover {
52
55
  color: $statistics-presences-middle-grey;
53
56
  }
@@ -56,8 +59,18 @@
56
59
 
57
60
  .flex-row {
58
61
  min-height: 0 !important;
59
- padding-top: 0 !important;
60
- padding-bottom: 0 !important;
62
+ }
63
+
64
+ .cell-values.tr {
65
+ align-items: stretch;
66
+
67
+ .td {
68
+ display: flex;
69
+ justify-content: center;
70
+ align-items: center;
71
+ height: revert;
72
+ padding: 5px
73
+ }
61
74
  }
62
75
 
63
76
  }