ode-csslib 4.0.0-dev.202212191021 → 4.0.0-dev.202301061451

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.2 19/12/2022 10:21:31
1
+ entcore-css-lib=4.0.2 06/01/2023 14:52:06
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.0-dev.202212191021",
3
+ "version": "4.0.0-dev.202301061451",
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,3 +1,14 @@
1
+ @font-face {
2
+ font-family: 'calendar-material-icons';
3
+ src: url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.eot');
4
+ src: url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.eot') format('embedded-opentype'),
5
+ url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.woff2') format('woff2'),
6
+ url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.woff2') format('woff'),
7
+ url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.ttf') format('truetype');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
1
12
  body.calendar {
2
13
  @import "mixins";
3
14
  @import "components/index";
@@ -1,9 +1,21 @@
1
1
  i {
2
2
  &.attachment::before {
3
3
  content: "\e805";
4
+ font-family: 'generic-icons';
4
5
  }
5
6
 
6
7
  &.cross::before {
7
8
  content: "\e866";
9
+ font-family: 'generic-icons';
10
+ }
11
+
12
+ &.sync::before {
13
+ content: "\F04E6";
14
+ font-family: 'calendar-material-icons';
15
+ }
16
+
17
+ &.loading::before {
18
+ content: '\e85a';
19
+ font-family: 'generic-icons';
8
20
  }
9
21
  }
@@ -8,6 +8,21 @@
8
8
  font-weight: normal;
9
9
  color: $calendar-white;
10
10
  padding-left: 10px !important;
11
+
12
+ &-sync {
13
+ transform: rotate(-45deg);
14
+ opacity: 1 !important;
15
+ }
16
+
17
+ &-sync-in-progress {
18
+ text-indent: unset !important;
19
+ opacity: 1 !important;
20
+ }
21
+
22
+ &-center-text {
23
+ text-align: center;
24
+ }
25
+
11
26
  }
12
27
  }
13
28
 
@@ -52,6 +67,10 @@
52
67
  top: 100%;
53
68
  left: 15%;
54
69
  }
70
+
71
+ &-text {
72
+ font-weight: initial !important;
73
+ }
55
74
  }
56
75
 
57
76
  }
@@ -330,6 +330,6 @@ body.formulaire section.main {
330
330
  }
331
331
  }
332
332
 
333
- body.formulaire section.lightbox {
334
- z-index: 10003;
335
- }
333
+ popover {
334
+ z-index: 2;
335
+ }
@@ -29,11 +29,11 @@
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  background: $formulaire-white;
32
-
32
+
33
33
  &.empty {
34
34
  background: $formulaire-blue;
35
35
  }
36
-
36
+
37
37
  img {
38
38
  max-height: 135px;
39
39
  }
@@ -12,8 +12,12 @@
12
12
  &-fixed {
13
13
  position: sticky;
14
14
  background: linear-gradient(to bottom right, $formulaire-grey-lighter, $formulaire-grey-very-light) fixed;
15
+ z-index: 3;
15
16
  top: 64px;
16
- z-index: 10003;
17
+
18
+ @media screen and (max-width: $formulaire-screen-tablet) {
19
+ top: 49px;
20
+ }
17
21
  }
18
22
 
19
23
  &-title {
@@ -8,4 +8,5 @@
8
8
  @import "prop-form";
9
9
  @import "respond-question";
10
10
  @import "result-form";
11
- @import "sortable";
11
+ @import "sortable";
12
+ @import 'containers/index';
@@ -0,0 +1 @@
1
+ @import 'cursor/index';
@@ -0,0 +1 @@
1
+ @import './question-type-cursor';
@@ -0,0 +1,202 @@
1
+ .formulaire-cursor {
2
+
3
+ &-form {
4
+ display: flex;
5
+ flex-direction: column;
6
+
7
+ .cursor-line {
8
+ display: flex;
9
+
10
+ @media screen and (max-width: $formulaire-screen-tablet) {
11
+ flex-direction: column;
12
+ margin-top: 3%;
13
+ }
14
+
15
+ .cursor-value-min, .cursor-value-max, .cursor-value-step {
16
+ display: flex;
17
+
18
+ @media screen and (min-width: $formulaire-screen-tablet) {
19
+ width: 20%;
20
+ }
21
+ }
22
+ }
23
+
24
+ em {
25
+ color: $formulaire-red;
26
+ }
27
+
28
+ input[type="number"] {
29
+ width: 40px;
30
+ height: 20px;
31
+ text-align: center;
32
+ -moz-appearance: textfield;
33
+ margin-left: 10px;
34
+ }
35
+
36
+ input::-webkit-outer-spin-button,
37
+ input::-webkit-inner-spin-button {
38
+ -webkit-appearance: none;
39
+ margin: 0;
40
+ }
41
+ }
42
+
43
+ &-input {
44
+ &-wrapper {
45
+ display: flex;
46
+ justify-content: space-between;
47
+ margin-bottom: 2%;
48
+ }
49
+
50
+ &-range {
51
+ display: flex;
52
+ flex-direction: column;
53
+ flex-grow: 1;
54
+ margin: 0 2%;
55
+
56
+ .range-slider {
57
+ position: relative;
58
+
59
+ &::before {
60
+ content: var(--min);
61
+ pointer-events: none;
62
+ position: absolute;
63
+ bottom: 0;
64
+ left: 0;
65
+ }
66
+
67
+ &::after {
68
+ content: var(--max);
69
+ pointer-events: none;
70
+ position: absolute;
71
+ bottom: 0;
72
+ right: 0;
73
+ }
74
+ }
75
+
76
+ /***** Remove old Styles *****/
77
+ input[type="range"] {
78
+ -webkit-appearance: none;
79
+ appearance: none;
80
+ background: transparent;
81
+ }
82
+
83
+ /***** Track Styles *****/
84
+ /* Chrome, Safari, Opera, and Edge Chromium */
85
+ input[type="range"]::-webkit-slider-runnable-track {
86
+ background: transparent;
87
+ z-index: 5;
88
+ }
89
+
90
+ /* Firefox */
91
+ input[type="range"]::-moz-range-track {
92
+ background: transparent;
93
+ z-index: 5;
94
+ }
95
+
96
+
97
+ /***** Thumb Styles *****/
98
+ /* Chrome, Safari, Opera, and Edge Chromium */
99
+ input[type="range"]::-webkit-slider-thumb, {
100
+ -webkit-appearance: none; /* Override default look */
101
+ appearance: none;
102
+ margin-top: -4px; /* Centers thumb on the track with formula (track height in pixels / 2) - (thumb height in pixels /2) - border size*/
103
+ background-color: $formulaire-grey-very-light;
104
+ border: $formulaire-grey-dark 1px solid;
105
+ border-radius: 100px;
106
+ height: 16px;
107
+ width: 16px;
108
+ cursor: grabbing;
109
+ z-index: 2;
110
+ }
111
+
112
+ /* Firefox */
113
+ input[type="range"]::-moz-range-thumb {
114
+ background-color: $formulaire-grey-very-light;
115
+ border: $formulaire-grey-dark 1px solid;
116
+ border-radius: 100px;
117
+ height: 16px;
118
+ width: 16px;
119
+ cursor: grabbing;
120
+ z-index: 2;
121
+ }
122
+
123
+ /***** Removes default focus *****/
124
+ /* Removes default focus */
125
+ input[type="range"]:focus {
126
+ outline: none;
127
+ }
128
+
129
+ /* Chrome, Safari, Opera, and Edge Chromium */
130
+ input[type="range"]:focus::-webkit-slider-thumb {
131
+ outline: none;
132
+ }
133
+
134
+ /* Firefox */
135
+ input[type="range"]:focus::-moz-range-thumb {
136
+ outline: none;
137
+ }
138
+
139
+ /***** Pin cursor styles *****/
140
+ .pin {
141
+ position: absolute;
142
+ left: calc((((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%) - 10px);
143
+ bottom: 35px;
144
+ width: 20px;
145
+ height: 20px;
146
+ background-color: $formulaire-blue;
147
+
148
+ &-content {
149
+ text-align: center;
150
+ font-size: 10px;
151
+ color: white;
152
+ }
153
+
154
+ &::after {
155
+ position: absolute;
156
+ left: 0;
157
+ top: 20px;
158
+ width: 0;
159
+ height: 0;
160
+ border-left: 10px solid transparent;
161
+ border-right: 10px solid transparent;
162
+ border-top: 10px solid $formulaire-blue;
163
+ content: '';
164
+ }
165
+ }
166
+
167
+ /***** Progress bar styles *****/
168
+ .filler {
169
+ &::before {
170
+ position: absolute;
171
+ height: 10px;
172
+ width: calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%);
173
+ bottom: 9px;
174
+ left: 3px;
175
+ background-color: $formulaire-blue;
176
+ border-radius: 5px;
177
+ content: '';
178
+ z-index: 2;
179
+ }
180
+
181
+ &::after {
182
+ position: absolute;
183
+ height: 10px;
184
+ width: calc(100% - 3px);
185
+ bottom: 8px;
186
+ left: 3px;
187
+ background-color: #efefef;
188
+ border-radius: 5px;
189
+ border: #4a4a4a 1px solid;
190
+ content: '';
191
+ z-index: 1;
192
+ }
193
+ }
194
+
195
+ &-values {
196
+ display: flex;
197
+ justify-content: space-between;
198
+ margin: 0 5px;
199
+ }
200
+ }
201
+ }
202
+ }