@digigov/css 0.31.0 → 0.32.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/css",
3
- "version": "0.31.0",
3
+ "version": "0.32.1",
4
4
  "description": "Digigov CSS - Tailwind CSS Components",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -49,12 +49,12 @@
49
49
  "tailwindcss": "2.2.6",
50
50
  "nodemon": "2.0.7",
51
51
  "next": "10.0.9",
52
- "@digigov/postcss-banner": "0.3.22",
52
+ "@digigov/postcss-banner": "0.3.23",
53
53
  "rimraf": "3.0.2",
54
54
  "postcss-js": "4.0.0",
55
55
  "postcss-load-config": "3.1.4",
56
56
  "publint": "0.1.8",
57
- "@digigov/cli": "0.6.5"
57
+ "@digigov/cli": "0.6.6"
58
58
  },
59
59
  "scripts": {
60
60
  "preutilities": "DIGIGOV_CSS_BUILD=TRUE postcss --config src/utilities src/utilities/index.css --base src --dir dist",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@fontsource/roboto": "4.4.0",
77
- "@digigov/cli-build-tailwind": "0.9.0",
77
+ "@digigov/cli-build-tailwind": "0.9.1",
78
78
  "publint": "0.1.8"
79
79
  }
80
80
  }
@@ -0,0 +1,6 @@
1
+ .govgr-bottom-info__container {
2
+ @apply w-full bg-gray50 border-t border-gray200 py-2;
3
+ }
4
+ /* .govgr-bottom-info__content {
5
+
6
+ } */
@@ -0,0 +1,30 @@
1
+ .govgr-hidden-xs--up {
2
+ @apply xs:hidden;
3
+ }
4
+ .govgr-hidden-sm--up {
5
+ @apply sm:hidden;
6
+ }
7
+ .govgr-hidden-md--up {
8
+ @apply md:hidden;
9
+ }
10
+ .govgr-hidden-lg--up {
11
+ @apply lg:hidden;
12
+ }
13
+ .govgr-hidden-xl--up {
14
+ @apply xl:hidden;
15
+ }
16
+ .govgr-hidden-xs {
17
+ @apply xsOnly:hidden;
18
+ }
19
+ .govgr-hidden-sm {
20
+ @apply smOnly:hidden;
21
+ }
22
+ .govgr-hidden-md {
23
+ @apply mdOnly:hidden;
24
+ }
25
+ .govgr-hidden-lg {
26
+ @apply lgOnly:hidden;
27
+ }
28
+ .govgr-hidden-xl {
29
+ @apply xlOnly:hidden;
30
+ }
@@ -1,6 +1,7 @@
1
1
  @import "./accordion.css";
2
2
  @import "./autocomplete.css";
3
3
  @import "./button.css";
4
+ @import "./bottom-info.css";
4
5
  @import "./form.css";
5
6
  @import "./checkboxes.css";
6
7
  @import "./dropdown.css";
@@ -40,3 +41,4 @@
40
41
  @import "./stepnav.css";
41
42
  @import "./dev-theme.css";
42
43
  @import "./kitchensink.css";
44
+ @import "./hidden.css";
@@ -44,15 +44,6 @@
44
44
  @apply transition-all;
45
45
  }
46
46
  }
47
- .govgr-svg-icon.govgr-burger-icon--hidden-s {
48
- @apply sm:hidden;
49
- }
50
- .govgr-svg-icon.govgr-burger-icon--hidden-m {
51
- @apply md:hidden;
52
- }
53
- .govgr-svg-icon.govgr-burger-icon--hidden-l {
54
- @apply lg:hidden;
55
- }
56
47
  #govgr-burger-icon__line-1 {
57
48
  x:2px;
58
49
  y:3px;
@@ -79,12 +70,12 @@
79
70
  transform-origin: 3px 16px
80
71
  }
81
72
  }
82
- /* --- HORIZONTAL --- */
73
+ /* --- HORIZONTAL NAV --- */
83
74
  .govgr-horizontal-nav {
84
75
  @apply sm:block !important;
85
76
  @apply xs:hidden fixed sm:relative w-3/4 sm:w-full h-full bg-white
86
77
  sm:h-auto sm:bg-white xs:text-content
87
- z-30 sm:z-auto sm:border-b sm:border-base150
78
+ z-30 sm:z-auto
88
79
  opacity-100 right-0 top-0 sm:top-auto overflow-x-scroll sm:overflow-visible;
89
80
  .govgr-horizontal-nav{
90
81
  @apply sm:border-b-0 static w-full z-1;
@@ -103,6 +94,9 @@
103
94
  @apply mb-0;
104
95
  }
105
96
  }
97
+ .govgr-nav-horizontal--border{
98
+ @apply sm:border-b sm:border-base150
99
+ }
106
100
  .govgr-nav-horizontal__container{
107
101
  @apply sm:border-b border-base150;
108
102
  }
@@ -150,7 +144,33 @@
150
144
  }
151
145
  }
152
146
 
153
- /* --- VERTICAL --- */
147
+ /* --- VERTICAL NAV --- */
148
+ .govgr-vertical-nav__list {
149
+ @apply w-full m-0 max-w-5xl static xs:px-3
150
+ flex flex-wrap flex-col;
151
+ .govgr-section-break{
152
+ margin-top:31px !important;
153
+ @apply xs:hidden absolute left-0 right-0;
154
+ }
155
+ }
156
+ .govgr-vertical-nav__list-item {
157
+ @apply text-base-content
158
+ xs:py-1;
159
+ }
160
+ .govgr-vertical-nav-list__menu{
161
+ @apply flex z-1 w-full;
162
+ }
163
+ .govgr-vertical-nav-list__content-list{
164
+ @apply p-0 grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
165
+ }
166
+ .govgr-vertical-nav-list__container-title{
167
+ @apply mt-3;
168
+ }
169
+ .govgr-vertical-nav-list__container-title-heading{
170
+ @apply hidden;
171
+ }
172
+
173
+ /* --- VERTICAL LIST --- */
154
174
  .govgr-vertical-nav {
155
175
  @apply flex flex-wrap;
156
176
  }
@@ -158,12 +178,16 @@
158
178
  @apply w-full p-2 !important;
159
179
  }
160
180
  /* ---------- --- */
181
+
161
182
  .govgr-nav-list__menu{
162
183
  @apply flex sm:order-2 sm:left-0 sm:right-0 sm:relative sm:bg-white z-1 w-full;
163
184
  .govgr-main-wrapper {
164
185
  @apply xs:gap-y-2;
165
186
  }
166
187
  }
188
+ .govgr-nav-list__menu-hidden {
189
+ @apply hidden;
190
+ }
167
191
  .govgr-nav-list__content-list{
168
192
  @apply sm:grid-cols-2 sm:grid-rows-1 !important;
169
193
  @apply p-0 sm:grid grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
@@ -172,4 +196,3 @@
172
196
  .govgr-nav-list__content-list-item {
173
197
  @apply relative pt-0 pb-5 pr-3 pl-0 box-border;
174
198
  }
175
-
@@ -68,14 +68,14 @@ const buildOnly = !process.env["DIGIGOV_CSS_BUILD"]
68
68
  : {};
69
69
 
70
70
  const colorVariables = allColors.reduce((colorVars, color) => {
71
- if(['transparent', 'currentColor'].includes(color)) {
71
+ if (['transparent', 'currentColor'].includes(color)) {
72
72
  colorVars[color] = color;
73
73
  } else {
74
- colorVars[color] = ({opacityVariable, opacityValue}) => {
75
- if(opacityValue !== undefined) {
74
+ colorVars[color] = ({ opacityVariable, opacityValue }) => {
75
+ if (opacityValue !== undefined) {
76
76
  return `rgba(var(--color-${color}-rgb), ${opacityValue})`;
77
77
  }
78
- if(opacityVariable !== undefined) {
78
+ if (opacityVariable !== undefined) {
79
79
  return `rgba(var(--color-${color}-rgb), var(${opacityVariable}, 1))`;
80
80
  }
81
81
  return `rgb(var(--color-${color}-rgb))`;
@@ -88,7 +88,7 @@ module.exports = {
88
88
  ...buildOnly,
89
89
  darkMode: 'class',
90
90
  themes: {
91
- light: require.resolve('./defaultTheme'),
91
+ light: require.resolve('./defaultTheme'),
92
92
  },
93
93
  defaultTheme: 'light',
94
94
  theme: {
@@ -107,7 +107,12 @@ module.exports = {
107
107
  lg: "1024px",
108
108
  xl: "1280px",
109
109
  "2xl": "1280px",
110
- print: {raw: "print"},
110
+ print: { raw: "print" },
111
+ xsOnly: { 'min': '0px', 'max': '639.98px' },
112
+ smOnly: { 'min': '640px', 'max': '767.98px' },
113
+ mdOnly: { 'min': '768px', 'max': '1023.98px' },
114
+ lgOnly: { 'min': '1024px', 'max': '1279.98px' },
115
+ xlOnly: { 'min': '1280px', 'max': '1535.98px' },
111
116
  },
112
117
  fontFamily: {
113
118
  sans: ["Roboto", ...defaultTheme.fontFamily.sans],
@@ -118,8 +123,8 @@ module.exports = {
118
123
  },
119
124
  width: {
120
125
  fit: "fit-content",
121
- '2xl':'42rem' ,
122
- '4xl':'56rem' ,
126
+ '2xl': '42rem',
127
+ '4xl': '56rem',
123
128
  },
124
129
  maxWidth: {
125
130
  fit: "fit-content",
@@ -158,6 +163,11 @@ module.exports = {
158
163
  boxShadow: {
159
164
  thick: "0 0 30px rgba(0, 0, 0, 0.6)",
160
165
  },
166
+ borderColor: {
167
+ // TODO: fix this invalid value in the future
168
+ // Read more: https://gitlab.grnet.gr/devs/digigov/digigov-sdk/-/merge_requests/818
169
+ DEFAULT: 'reset',
170
+ }
161
171
  },
162
172
  },
163
173
  variants: {