ode-bootstrap 1.0.0-framework.202110291007 → 1.0.0-framework.202111051001

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
- ode-bootstrap= 29/10/2021 12:07:34
1
+ ode-bootstrap= 05/11/2021 11:01:41
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-bootstrap",
3
- "version": "1.0.0-framework.202110291007",
3
+ "version": "1.0.0-framework.202111051001",
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",
@@ -90,7 +90,7 @@ $feed-spacing: 20px !default;
90
90
  position: absolute;
91
91
  top: 0;
92
92
  right: 0;
93
- z-index: 20;
93
+ z-index: 2;
94
94
  display: flex;
95
95
  flex-direction: column;
96
96
  align-items: start;
@@ -0,0 +1,104 @@
1
+ popover {
2
+ position: relative;
3
+ z-index: 100;
4
+ display: inline-block;
5
+
6
+ popover-content.hidden {
7
+ pointer-events: none;
8
+ opacity: 0;
9
+ }
10
+
11
+ popover-content {
12
+ position: absolute;
13
+ top: 100%;
14
+ left: 50%;
15
+ width: 250px;
16
+ text-align: center;
17
+ background: $white;
18
+ border: 1px solid $gray-300;
19
+ border-radius: 2px;
20
+ box-shadow: 0 .1rem 2rem rgba(0, 0, 0, .1);
21
+ transform: translate(-50%, 4%);
22
+
23
+ &::before {
24
+ content: "\25b2";
25
+ position: absolute;
26
+ top: -2rem;
27
+ left: 50%;
28
+ z-index: 0;
29
+ display: block;
30
+ width: 40px;
31
+ font-family: none;
32
+ font-size: 2rem;
33
+ color: $white;
34
+ transform: translateX(-50%);
35
+ }
36
+
37
+ .widget-applications {
38
+ .widget-body {
39
+ padding: 1.5rem;
40
+ max-height: 22rem;
41
+ overflow: auto;
42
+ }
43
+
44
+ .widget-footer-action & {
45
+ color: $gray-600;
46
+ }
47
+ }
48
+
49
+ .bookmarked-app {
50
+ padding: .5rem;
51
+ flex: 1 1 33%;
52
+ text-align: center;
53
+ border: 1px solid transparent;
54
+ border-radius: $border-radius;
55
+
56
+ @include add-transitions(border-color) {
57
+ border-color: $gray-200;
58
+ };
59
+
60
+ /* &:hover {
61
+ border-color: $gray-200;
62
+ } */
63
+
64
+ .application {
65
+ font-size: 3rem;
66
+ }
67
+ }
68
+
69
+ /* .more {
70
+ padding: 1rem;
71
+ text-align: center;
72
+ background-color: $gray-500;
73
+ transition: background-color 250ms ease;
74
+
75
+ &:hover {
76
+ background-color: $primary;
77
+ }
78
+ } */
79
+
80
+ .search-text {
81
+ .searchInput {
82
+ height: 30px;
83
+ margin: 1rem -0.2rem 1rem 0;
84
+ width: 80%;
85
+ border: 1px solid $gray-200;
86
+ }
87
+ .searchButton {
88
+ @extend .btn-primary;
89
+ width: 30px;
90
+ height: 30px;
91
+ padding: 0;
92
+ margin-top: 1rem;
93
+ line-height: 30px;
94
+ font-weight: 700;
95
+ text-transform: uppercase;
96
+ text-align: center;
97
+ border: none;
98
+ border-top-left-radius: 0;
99
+ border-top-right-radius: 0;
100
+ box-shadow: none;
101
+ }
102
+ }
103
+ }
104
+ }
@@ -3,20 +3,17 @@
3
3
  top: 100px;
4
4
  bottom: 0;
5
5
  right: 0;
6
- z-index: 10;
6
+ z-index: 22;
7
7
  color: $white;
8
8
  transform: translateX(100%);
9
9
 
10
10
  @include add-transitions(transform);
11
11
 
12
- &.open {
13
- transform: translateX(0);
14
- }
15
-
16
12
  .link-tool {
17
13
  position: absolute;
18
14
  width: 50px;
19
- padding: 5px 10px;
15
+ // padding: 5px 10px;
16
+ padding: 0.5rem 1.3rem;
20
17
  font-size: 1.5em;
21
18
  color: $white;
22
19
  cursor: pointer;
@@ -26,15 +23,16 @@
26
23
  transform: translate(-100%, 0);
27
24
  }
28
25
 
29
- .content {
26
+ .sticky-toolbox-content {
27
+ display: none;
30
28
  overflow: auto;
31
29
  width: 400px;
32
30
  height: 100%;
33
31
  padding: 20px 30px;
34
- background: $third;
32
+ background: $secondary;
35
33
  }
36
34
 
37
- .title {
35
+ .sticky-toolbox-title {
38
36
  margin: 0 0 10px;
39
37
  font-weight: 700;
40
38
 
@@ -43,18 +41,23 @@
43
41
  }
44
42
  }
45
43
 
46
- .bt {
44
+ .sticky-toolbox-item {
47
45
  display: block;
48
46
  color: $white;
49
47
  text-align: center;
50
48
  text-decoration: none;
51
- background: $cyan;
52
- border-radius: 0;
49
+ background: rgba($white, .10);
50
+ border-radius: 10px;
51
+ overflow: hidden;
53
52
 
54
- @include background-color-to(rgba($cyan, 0.6));
53
+ @include background-color-to($primary);
55
54
 
56
55
  &.selected {
57
56
  background: $primary;
57
+
58
+ &:hover {
59
+ background: rgba($white, .10);
60
+ }
58
61
  }
59
62
  }
60
63
 
@@ -71,13 +74,13 @@
71
74
  }
72
75
 
73
76
  .buttons-theme {
74
- .bt {
77
+ .sticky-toolbox-item {
75
78
  padding: 20px 10px;
76
79
  }
77
80
  }
78
81
 
79
82
  .buttons-widget {
80
- .bt {
83
+ .sticky-toolbox-item {
81
84
  .inner {
82
85
  position: relative;
83
86
  display: block;
@@ -88,6 +91,7 @@
88
91
  position: absolute;
89
92
  top: 0;
90
93
  font-size: 2em;
94
+ border-radius: 18px;
91
95
 
92
96
  @include have-child-in-middle();
93
97
  @include square(100%);
@@ -95,7 +99,13 @@
95
99
  }
96
100
  }
97
101
 
98
- .bt-lang {
102
+ .buttons-countries {
103
+ > div {
104
+ flex: 0 0 25%;
105
+ }
106
+ }
107
+
108
+ .sticky-toolbox-country {
99
109
  margin-bottom: 15px;
100
110
  color: $white;
101
111
  text-align: center;
@@ -123,4 +133,12 @@
123
133
  }
124
134
  }
125
135
  }
136
+
137
+ &.open {
138
+ transform: translateX(0);
139
+
140
+ .sticky-toolbox-content {
141
+ display: block;
142
+ }
143
+ }
126
144
  }
@@ -59,7 +59,7 @@
59
59
  }
60
60
 
61
61
  .button-list {
62
- padding: $widget-padding-x - 5;
62
+ padding: 1.6rem;
63
63
  padding-bottom: 0;
64
64
 
65
65
  > * {
package/scss/index.scss CHANGED
@@ -14,6 +14,9 @@
14
14
  @import "tokens/icons";
15
15
  @import "tokens/typography";
16
16
 
17
+ // --- IMPORT LAYOUT ---
18
+ @import "layout/";
19
+
17
20
  // --- IMPORT COMPONENTS ---
18
21
  // Contient tous nos composants visuels, simple ou complexe
19
22
  @import "components/container-advanced";
@@ -36,3 +39,4 @@
36
39
  @import "components/table-lists";
37
40
  @import "components/tree-structure";
38
41
  @import "components/widget/";
42
+ @import "components/popover";
@@ -0,0 +1 @@
1
+ @import "navbar";
@@ -0,0 +1,115 @@
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
+ &:first-child {
31
+ margin-right: auto;
32
+ }
33
+
34
+ &:hover {
35
+ border-bottom: 3px solid $primary;
36
+ }
37
+ }
38
+
39
+ .navigation {
40
+ display: inline-flex;
41
+ align-items: center;
42
+
43
+ .btn {
44
+ .new-mails {
45
+ position: relative;
46
+ top: -1.5rem;
47
+ right: 1rem;
48
+ display: inline-block;
49
+ width: 20px;
50
+ height: 20px;
51
+ margin-right: -2rem;
52
+ font-size: 1.2rem;
53
+ font-weight: bold;
54
+ line-height: 20px;
55
+ text-align: center;
56
+ background: $primary;
57
+ border-radius: 50%;
58
+ }
59
+
60
+ #my-photo {
61
+ width: 25px;
62
+ margin: .7rem 0;
63
+ background-color: $white; // A retirer quand on aura refait l'avatar
64
+ border-radius: 50%;
65
+ }
66
+ }
67
+ }
68
+
69
+ &-brand {
70
+ padding: 0;
71
+ margin-right: 0;
72
+
73
+ .logo {
74
+ display: inline-block;
75
+ height: 44px;
76
+ }
77
+ }
78
+ }
79
+
80
+ @include media-breakpoint-down(md) {
81
+ .navbar {
82
+ .container {
83
+ padding: 0;
84
+ }
85
+
86
+ .btn {
87
+ padding: .5rem;
88
+ font-size: 2rem;
89
+
90
+ i {
91
+ &.ic-help {
92
+ font-size: 2.2rem;
93
+ }
94
+ }
95
+ }
96
+
97
+ .application-title {
98
+ display: block;
99
+ width: calc(100% - 300px); //A REVOIR
100
+ color: $white;
101
+ }
102
+
103
+ .logo {
104
+ height: 30px;
105
+ }
106
+
107
+ .dropdown {
108
+ [class*="ic-"] {
109
+ // margin-right: 1rem;
110
+ font-size: 2rem;
111
+ vertical-align: middle;
112
+ }
113
+ }
114
+ }
115
+ }
@@ -54,6 +54,7 @@ $icons-applications: (
54
54
  "conversation": ( "color": $yellow, "glyph": "\e804"),
55
55
  "directory": ( "color": $teal, "glyph": "\e811"),
56
56
  "exercizer": ( "color": $purple, "glyph": "\e833"),
57
+ "qwant": ( "color": $pink, "glyph": "\e93d"),
57
58
  "forum": ( "color": $cyan, "glyph": "\e81e"),
58
59
  "library": ( "color": $yellow, "glyph": "\e94c"),
59
60
  "mindmap": ( "color": $cyan, "glyph": "\e859"),
@@ -9,3 +9,4 @@ $shadow-dark: rgba(#000, 0.8);
9
9
  // FONT PATHS
10
10
  $fonts-path: "fonts" !default;
11
11
  $fa-font-path: "#{$fonts-path}/fa" !default;
12
+ $dyslexic-font-path: "#{$fonts-path}/dyslexic" !default;