ode-csslib 4.0.0-dev.202212011518 → 4.0.0-dev.202212011541

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-dev-SNAPSHOT 01/12/2022 15:18:20
1
+ entcore-css-lib=4.0-dev-SNAPSHOT 01/12/2022 15:41:30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.0-dev.202212011518",
3
+ "version": "4.0.0-dev.202212011541",
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,6 @@
1
1
  body.presences, .sniplet.presences {
2
2
  @import "components/index";
3
- @import "../../../sass/global/common";
3
+ @import "../presences-common/common";
4
4
 
5
5
  .pagination {
6
6
  float: right;
@@ -64,7 +64,7 @@ $box-shadow-2: 0 3px 3px rgba(0, 0, 0, 0.1);
64
64
  body.presences, .sniplet.presences {
65
65
  @import "generic/index";
66
66
  @import "components/index";
67
- @import "../../../sass/global/common";
67
+ @import "../presences-common/common";
68
68
 
69
69
  color: $presences-black;
70
70
 
@@ -0,0 +1,16 @@
1
+ $yellow-main: #ffb600;
2
+ $grey-white: #ffffff99;
3
+
4
+ @mixin mobile {
5
+ @media (max-width: 768px) {
6
+ @content;
7
+ }
8
+ }
9
+
10
+ @mixin mobileMini {
11
+ @media (max-width: 350px) {
12
+ @content;
13
+ }
14
+ }
15
+
16
+ @import "components/index";
@@ -0,0 +1,5 @@
1
+ export-form {
2
+ display: flex;
3
+ flex-direction: row;
4
+ justify-content: flex-end;
5
+ }
@@ -0,0 +1,36 @@
1
+ .menu {
2
+ .menu-item > a {
3
+ color: $black;
4
+ font-size: 18px;
5
+ padding: 0 10px;
6
+ text-align: center;
7
+ margin: 0 5px;
8
+ height: 50px;
9
+ display: inline-block;
10
+ box-sizing: border-box;
11
+ line-height: 50px;
12
+
13
+ &::after {
14
+ content: " ";
15
+ display: block;
16
+ height: 3px;
17
+ background: $yellow-main;
18
+ border-radius: 2px;
19
+ margin-top: -10px;
20
+ width: 0;
21
+ transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
22
+ }
23
+
24
+ &.current-state {
25
+ color: $yellow-main;
26
+ background-color: $grey-white;
27
+ border-top-right-radius: 7px;
28
+ border-top-left-radius: 7px;
29
+ font-weight: bold;
30
+
31
+ &::after {
32
+ width: 100%;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,66 @@
1
+ $white: #fff;
2
+ $black: #000000;
3
+ $dark-grey: #7a7a7a;
4
+ $yellow-main: #ffb600;
5
+
6
+ $width-size: 24px;
7
+
8
+ $font-size-item: 16px;
9
+ $font-size-arrow: 24px;
10
+
11
+ $line-heigh-size: 42px;
12
+
13
+
14
+ .pagination {
15
+ font-size: 0;
16
+ text-align: center;
17
+
18
+ &-item {
19
+ display: inline-block;
20
+ vertical-align: top;
21
+ font-size: $font-size-item;
22
+ font-weight: bold;
23
+ margin: 0 2px;
24
+
25
+ &.arrow > .pagination-item-link {
26
+ font-size: $font-size-arrow;
27
+ color: $black;
28
+
29
+ &:hover {
30
+ background-color: $yellow-main;
31
+ border-color: $yellow-main;
32
+ color: $white;
33
+ }
34
+ }
35
+
36
+ &-link {
37
+ position: relative;
38
+ display: block;
39
+ text-align: center;
40
+ min-width: $width-size;
41
+ line-height: $line-heigh-size;
42
+ color: $dark-grey;
43
+ transition: 0.3s;
44
+
45
+ &:hover {
46
+ background-color: $yellow-main;
47
+ border-color: $yellow-main;
48
+ color: $white;
49
+ }
50
+ }
51
+
52
+ &.active > .pagination-item-link {
53
+ background-color: $yellow-main;
54
+ border-color: $yellow-main;
55
+ color: $white;
56
+ }
57
+
58
+ &:nth-child(3), &:nth-child(5) {
59
+ pointer-events: none;
60
+ }
61
+ }
62
+ }
63
+
64
+ .pagination-item:empty::before {
65
+ display: none;
66
+ }
@@ -0,0 +1,33 @@
1
+ $presences-grey-light: #F0F0F0;
2
+
3
+ .presences-nav-bar {
4
+ @include mobile {
5
+ margin-left: 30px;
6
+ }
7
+
8
+ nav {
9
+ height: 80px !important;
10
+ }
11
+
12
+ nav[side-nav] {
13
+ position: fixed;
14
+ left: 0;
15
+ top: 50px;
16
+ z-index: 10001;
17
+ transition: all 250ms ease;
18
+ box-sizing: border-box;
19
+ width: 0;
20
+ overflow: hidden;
21
+ padding: 0;
22
+ background-color: $presences-grey-light;
23
+ border-radius: 2px;
24
+ border-left: none;
25
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
26
+
27
+ &.slide {
28
+ width: 155px;
29
+ padding: 0 10px;
30
+ overflow: unset;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,7 @@
1
+ .selected-child {
2
+ display: flex;
3
+
4
+ &-select {
5
+ margin: 0 15px 0 0;
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ option:disabled {
2
+ display: none;
3
+ }
@@ -0,0 +1,6 @@
1
+ @import "pagination";
2
+ @import "select";
3
+ @import "select-children";
4
+ @import "presences-nav-bar";
5
+ @import "menu";
6
+ @import "export-form";
@@ -12,7 +12,7 @@ $statistics-presences-light-purple: #f2c9fb;
12
12
  $statistics-presences-green: #72bb53;
13
13
 
14
14
  body.statistics-presences {
15
- @import "../../../sass/global/common";
15
+ @import "../presences-common/common";
16
16
  @import "components/index";
17
17
  @import "indicators/index";
18
18
  }