ode-bootstrap 1.0.0-framework.202111081808 → 1.0.0-framework.202111122107

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.
Files changed (30) hide show
  1. package/.gradle/4.5.1/fileHashes/fileHashes.bin +0 -0
  2. package/.gradle/4.5.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/4.5.1/taskHistory/taskHistory.bin +0 -0
  4. package/.gradle/4.5.1/taskHistory/taskHistory.lock +0 -0
  5. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/?/.gradle/caches/4.5.1/fileHashes/fileHashes.lock +0 -0
  7. package/?/.gradle/daemon/4.5.1/daemon-35.out.log +73 -73
  8. package/?/.gradle/daemon/4.5.1/daemon-37.out.log +73 -73
  9. package/?/.gradle/daemon/4.5.1/registry.bin +0 -0
  10. package/?/.gradle/daemon/4.5.1/registry.bin.lock +0 -0
  11. package/dist/index.css +2 -2
  12. package/dist/version.txt +1 -1
  13. package/package.json +1 -1
  14. package/scss/atoms/_.scss +4 -0
  15. package/scss/{tokens → atoms}/_display.scss +0 -0
  16. package/scss/{tokens → atoms}/_fonts.scss +0 -0
  17. package/scss/{tokens → atoms}/_icons.scss +0 -0
  18. package/scss/{tokens → atoms}/_typography.scss +0 -0
  19. package/scss/components/_.scss +21 -0
  20. package/scss/components/_buttons.scss +10 -0
  21. package/scss/components/_container-advanced.scss +18 -0
  22. package/scss/components/_toast.scss +15 -2
  23. package/scss/index.scss +3 -30
  24. package/scss/mixins/_text-truncate.scss +17 -0
  25. package/scss/variables/_.scss +2 -2
  26. package/scss/variables/{_var-bootstrap.scss → _variables-bootstrap.scss} +0 -0
  27. package/scss/variables/{_var-ode-bootstrap.scss → _variables-ode.scss} +0 -0
  28. package/scss/components/_applications.scss +0 -243
  29. package/scss/layout/_.scss +0 -1
  30. package/scss/layout/_navbar.scss +0 -137
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-bootstrap= 08/11/2021 19:08:36
1
+ ode-bootstrap= 12/11/2021 22:08:30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-bootstrap",
3
- "version": "1.0.0-framework.202111081808",
3
+ "version": "1.0.0-framework.202111122107",
4
4
  "description": "Open Digital Education CSS framework based on bootstrap",
5
5
  "scripts": {
6
6
  "copy-fonts": "cpr node_modules/entcore-generic-icons/fonts/ assets/fonts/generic-icons/ -o && cpr node_modules/@fortawesome/fontawesome-free/webfonts assets/fonts/fa/ -o",
@@ -0,0 +1,4 @@
1
+ @import "display";
2
+ @import "fonts";
3
+ @import "icons";
4
+ @import "typography";
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+ @import "container-advanced";
2
+ @import "avatar";
3
+ @import "buttons";
4
+ @import "modal";
5
+ @import "toast";
6
+ @import "dominos";
7
+ @import "dragndrop";
8
+ @import "dropdowns";
9
+ @import "emptyscreen";
10
+ @import "explorer";
11
+ @import "feed";
12
+ @import "filters";
13
+ @import "forms";
14
+ @import "media-library";
15
+ @import "sticky-toolbox";
16
+ @import "tables";
17
+ @import "table-lists";
18
+ @import "tree-structure";
19
+ @import "popover";
20
+
21
+ @import "widget/";
@@ -36,6 +36,16 @@
36
36
  border: 1px solid $third;
37
37
  }
38
38
 
39
+ &-light {
40
+ background-color: $gray-200;
41
+
42
+ @include add-transitions(color, background-color) {
43
+ color: $primary;
44
+ text-decoration: none;
45
+ background-color: $gray-200;
46
+ }
47
+ }
48
+
39
49
  &-circle {
40
50
  @include circle(2.5em);
41
51
  @include have-child-in-middle ();
@@ -55,18 +55,36 @@ $breakpoint-down: "lg";
55
55
  .container-advanced-wrapper {
56
56
  transform: translateX(0);
57
57
  }
58
+ &.hide {
59
+ .container-advanced-center > *,
60
+ .container-advanced-right > * {
61
+ display: none;
62
+ }
63
+ }
58
64
  }
59
65
 
60
66
  &.focus-right {
61
67
  .container-advanced-wrapper {
62
68
  transform: translateX(100 / 3 * 2% * -1);
63
69
  }
70
+ &.hide {
71
+ .container-advanced-center > *,
72
+ .container-advanced-left > * {
73
+ display: none;
74
+ }
75
+ }
64
76
  }
65
77
 
66
78
  &.focus-center {
67
79
  .container-advanced-wrapper {
68
80
  transform: translateX(100 / 3 * 1% * -1);
69
81
  }
82
+ &.hide {
83
+ .container-advanced-left > *,
84
+ .container-advanced-right > * {
85
+ display: none;
86
+ }
87
+ }
70
88
  }
71
89
  }
72
90
 
@@ -1,12 +1,13 @@
1
1
  $toast-start-color: #f0f9fc;
2
2
  $toast-end-color: #dceff7;
3
+ $btn-border-radius: 0;
3
4
 
4
5
  .toast {
5
6
  &-container {
6
7
  position: fixed;
7
8
  right: 0;
8
9
  bottom: 0;
9
- z-index: 3;
10
+ z-index: 999;
10
11
  padding: 10px;
11
12
  font-size: 2em;
12
13
  }
@@ -18,6 +19,7 @@ $toast-end-color: #dceff7;
18
19
  > *,
19
20
  > * > * {
20
21
  border: 0;
22
+ border-radius: 0;
21
23
  }
22
24
 
23
25
  .toast-header {
@@ -26,7 +28,18 @@ $toast-end-color: #dceff7;
26
28
  background-color: transparent;
27
29
  }
28
30
  .toast-body {
29
- color: var(--bs-secondary);
31
+ color: $deep-blue;
30
32
  }
33
+
34
+ .btn {
35
+ border-radius: $btn-border-radius;
36
+
37
+ &-light {
38
+ &:hover {
39
+ color: $primary;
40
+ }
41
+ }
42
+ }
43
+
31
44
  }
32
45
  }
package/scss/index.scss CHANGED
@@ -6,37 +6,10 @@
6
6
  // --- IMPORT MIXINS ---
7
7
  @import "mixins/";
8
8
 
9
- // --- IMPORT TOKENS ---
9
+ // --- IMPORT ATOMS ---
10
10
  // Contient tous nos éléments de style les plus petits et les plus insécables
11
- @import "tokens/display";
12
- @import "tokens/fonts";
13
-
14
- @import "tokens/icons";
15
- @import "tokens/typography";
16
-
17
- // --- IMPORT LAYOUT ---
18
- @import "layout/";
11
+ @import "atoms/";
19
12
 
20
13
  // --- IMPORT COMPONENTS ---
21
14
  // Contient tous nos composants visuels, simple ou complexe
22
- @import "components/container-advanced";
23
- @import "components/applications";
24
- @import "components/avatar";
25
- @import "components/buttons";
26
- @import "components/modal";
27
- @import "components/toast";
28
- @import "components/dominos";
29
- @import "components/dragndrop";
30
- @import "components/dropdowns";
31
- @import "components/emptyscreen";
32
- @import "components/explorer";
33
- @import "components/feed";
34
- @import "components/filters";
35
- @import "components/forms";
36
- @import "components/media-library";
37
- @import "components/sticky-toolbox";
38
- @import "components/tables";
39
- @import "components/table-lists";
40
- @import "components/tree-structure";
41
- @import "components/widget/";
42
- @import "components/popover";
15
+ @import "components/";
@@ -13,4 +13,21 @@
13
13
  overflow: hidden;
14
14
  -webkit-line-clamp: $lines;
15
15
  -webkit-box-orient: vertical;
16
+ }
17
+
18
+ // Hack for multiline ellipsis
19
+ .text-truncate {
20
+ &.text-truncate--2 {
21
+ display: -webkit-box;
22
+ -webkit-line-clamp: 2;
23
+ -webkit-box-orient: vertical;
24
+ white-space: normal;
25
+ }
26
+
27
+ &.text-truncate--3 {
28
+ display: -webkit-box;
29
+ -webkit-line-clamp: 3;
30
+ -webkit-box-orient: vertical;
31
+ white-space: normal;
32
+ }
16
33
  }
@@ -1,4 +1,4 @@
1
1
  @import "colors";
2
- @import "var-bootstrap";
3
- @import "var-ode-bootstrap";
2
+ @import "variables-bootstrap";
3
+ @import "variables-ode";
4
4
  @import "icons";
@@ -1,243 +0,0 @@
1
- /* VARIABLES */
2
- $application-width: 150px;
3
- $application-height: 140px; // 170px sur le 1D
4
-
5
- $application-width-sm: 90px; // 95px sur le 1D
6
- $application-height-sm: 110px; // 120px sur le 1D
7
-
8
- $application-icon-size: 80px; //110px sur le 1D
9
- $application-icon-size-sm: 60px;
10
-
11
- /* COMPONENT */
12
- .applications {
13
- &-title {
14
- color: $secondary;
15
- }
16
- &-item {
17
- position: relative;
18
- display: flex;
19
- flex-direction: column;
20
- align-items: center;
21
- justify-content: center;
22
- width: $application-width;
23
- height: $application-height;
24
- padding: 5px;
25
- margin: 5px;
26
- color: $text-color;
27
- text-align: center;
28
- background-color: transparent;
29
- border: 1px solid transparent;
30
- border-radius: $border-radius-lg;
31
- transition: background-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border 0.35s ease-in-out;
32
-
33
- > i {
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- width: $application-icon-size;
38
- height: $application-icon-size;
39
- font-size: 5rem;
40
- // color: $text-color;
41
- }
42
-
43
- span {
44
- display: flex;
45
- flex: 1;
46
- align-items: center;
47
- padding-top: 5px;
48
- line-height: 1.3;
49
- font-size: 1.6rem;
50
- }
51
-
52
- img {
53
- max-width: 80px;
54
- padding: 10px;
55
- }
56
-
57
- // Only 2D
58
- &.add,
59
- &.remove {
60
- position: absolute;
61
- top: 10px;
62
- right: 20px;
63
- width: 40px;
64
- height: 40px;
65
- padding: 0;
66
- text-align: center;
67
- background-color: $secondary;
68
- border: 1px solid transparent;
69
- border-radius: 50%;
70
- box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
71
-
72
- i {
73
- font-size: 1.5rem;
74
- line-height: 30px;
75
- color: $white;
76
- }
77
-
78
- &:hover {
79
- background-color: $primary;
80
- }
81
- }
82
-
83
- &.no-hover {
84
- background-color: inherit;
85
- border-color: transparent;
86
- box-shadow: inherit;
87
- }
88
-
89
- .opacity-50 {
90
- opacity: 0.5;
91
- }
92
-
93
- &:hover {
94
- color: inherit;
95
- background-color: rgba($white, 0.5);
96
- border: 1px solid $gray-300;
97
- box-shadow: 5px 5px 15px rgba($black, 0.1);
98
- transition: background-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border 0.35s ease-in-out;
99
- }
100
-
101
- &:active {
102
- background-color: rgba($white, 0.8);
103
- box-shadow: 2px 2px 10px rgba($black, 0.1) inset;
104
- transition: background-color 0.25s ease-in-out, box-shadow 0.35s ease-in-out, border 0.15s ease-in-out;
105
- }
106
-
107
- &.blue-background-class {
108
- background-color: rgba($secondary, 0.15);
109
- }
110
-
111
- &.app-1d::before {
112
- font-family: "Roboto";
113
- font-size: 1.5rem;
114
- content: "1D";
115
- position: absolute;
116
- top: -5px;
117
- right: -5px;
118
- background-color: $primary;
119
- color: $white;
120
- width: 25px;
121
- height: 25px;
122
- border-radius: 50%;
123
- }
124
- }
125
- &-list {
126
- display: flex;
127
- flex-wrap: wrap;
128
- justify-content: center;
129
- }
130
-
131
- &-favorite {
132
- padding: 10px;
133
- background-color: rgba($white, 0.75);
134
- border: 1px solid $gray-300;
135
- border-radius: $border-radius-lg;
136
- box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.05);
137
-
138
- @extend .mt-3;
139
-
140
- h2 {
141
- font-size: 1.2rem;
142
- }
143
- }
144
-
145
- &-list,
146
- &-connector {
147
- h2 {
148
- @extend .mb-3;
149
-
150
- flex-basis: 100%;
151
- font-size: 1.2rem;
152
-
153
- span {
154
- padding-right: 10px;
155
- background-color: $gray-100;
156
- }
157
-
158
- &::after {
159
- display: block;
160
- margin-top: -10px;
161
- content: "";
162
- border-top: 1px solid $gray-300;
163
- }
164
- }
165
- }
166
- }
167
-
168
- @include media-breakpoint-down(sm) {
169
- .applications {
170
- &-item {
171
- width: $application-width-sm;
172
- height: $application-height-sm;
173
- margin: 5px;
174
-
175
- > i {
176
- width: $application-icon-size-sm;
177
- height: $application-icon-size-sm;
178
- font-size: 4rem;
179
- }
180
-
181
- img {
182
- max-width: 80px;
183
- max-height: 80px;
184
- }
185
-
186
- span {
187
- font-size: 1.4rem;
188
- }
189
-
190
- &.add,
191
- &.remove {
192
- top: 10px;
193
- right: 10px;
194
- }
195
- }
196
- &-list {
197
- justify-content: space-around;
198
- }
199
-
200
- &-favorite {
201
- padding: 10px;
202
- }
203
- }
204
- }
205
-
206
- // Add class for applications 1D
207
- .application {
208
- &.nom-appli {
209
- &::after {
210
- font-family: "Roboto";
211
- font-size: 0.9rem;
212
- content: "1D";
213
- position: absolute;
214
- top: -5px;
215
- right: -5px;
216
- background-color: $primary;
217
- color: $white;
218
- width: 25px;
219
- height: 25px;
220
- border-radius: 50%;
221
- }
222
- }
223
- }
224
-
225
- // Add class for applications 2D
226
- // .application {
227
- // &.nom-appli {
228
- // &::after {
229
- // font-family: "Fira Sans";
230
- // font-size: 0.9rem;
231
- // content: "2D";
232
- // position: absolute;
233
- // top: 0;
234
- // right: 10px;
235
- // background-color: $primary;
236
- // color: $white;
237
- // width: 25px;
238
- // height: 25px;
239
- // line-height: 25px;
240
- // border-radius: 50%;
241
- // }
242
- // }
243
- // }
@@ -1 +0,0 @@
1
- @import "navbar";
@@ -1,137 +0,0 @@
1
- .navbar {
2
- & {
3
- padding: 0 2rem;
4
- width: 100%;
5
- box-shadow: 0 .2rem .5rem rgba($black, .4);
6
- }
7
-
8
- .container {
9
- padding: 0;
10
- }
11
-
12
- .btn {
13
- color: $white;
14
- padding: .6rem .8rem;
15
- font-size: 3rem;
16
- border-radius: 0;
17
- align-items: center;
18
- border-bottom: 3px solid transparent;
19
-
20
- > a {
21
- color: inherit;
22
- }
23
-
24
- i {
25
- &.ic-help {
26
- font-size: 3.2rem;
27
- }
28
- }
29
-
30
- &:hover {
31
- border-bottom: 3px solid $primary;
32
- }
33
- }
34
-
35
- .navigation {
36
- display: inline-flex;
37
- align-items: center;
38
-
39
- .zimbra-btn {
40
- > a {
41
- @extend .btn;
42
-
43
- .new-mails {
44
- position: relative;
45
- top: -1.5rem;
46
- right: 1rem;
47
- display: inline-block;
48
- width: 20px;
49
- height: 20px;
50
- margin-right: -2rem;
51
- font-size: 1.2rem;
52
- font-weight: bold;
53
- line-height: 20px;
54
- text-align: center;
55
- background: $primary;
56
- border-radius: 50%;
57
- }
58
-
59
- &:hover {
60
- color: $white;
61
- }
62
- }
63
- }
64
-
65
- .btn {
66
- /* .new-mails {
67
- position: relative;
68
- top: -1.5rem;
69
- right: 1rem;
70
- display: inline-block;
71
- width: 20px;
72
- height: 20px;
73
- margin-right: -2rem;
74
- font-size: 1.2rem;
75
- font-weight: bold;
76
- line-height: 20px;
77
- text-align: center;
78
- background: $primary;
79
- border-radius: 50%;
80
- } */
81
-
82
- #my-photo {
83
- width: 25px;
84
- margin: .7rem 0;
85
- background-color: $white; // A retirer quand on aura refait l'avatar
86
- border-radius: 50%;
87
- }
88
- }
89
- }
90
-
91
- &-brand {
92
- padding: 0;
93
- margin-right: 0;
94
-
95
- .logo {
96
- display: inline-block;
97
- height: 44px;
98
- }
99
- }
100
- }
101
-
102
- @include media-breakpoint-down(md) {
103
- .navbar {
104
- .container {
105
- padding: 0;
106
- }
107
-
108
- .btn {
109
- padding: .5rem;
110
- font-size: 2rem;
111
-
112
- i {
113
- &.ic-help {
114
- font-size: 2.2rem;
115
- }
116
- }
117
- }
118
-
119
- .application-title {
120
- display: block;
121
- width: calc(100% - 300px); //A REVOIR
122
- color: $white;
123
- }
124
-
125
- .logo {
126
- height: 30px;
127
- }
128
-
129
- .dropdown {
130
- [class*="ic-"] {
131
- // margin-right: 1rem;
132
- font-size: 2rem;
133
- vertical-align: middle;
134
- }
135
- }
136
- }
137
- }