@digigov/css 2.0.0-599965f0 → 2.0.0-5e7a6790

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": "2.0.0-599965f0",
3
+ "version": "2.0.0-5e7a6790",
4
4
  "description": "Digigov CSS - Tailwind CSS Components",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -39,7 +39,7 @@
39
39
  ]
40
40
  },
41
41
  "devDependencies": {
42
- "@digigov/cli": "2.0.0-599965f0",
42
+ "@digigov/cli": "2.0.0-5e7a6790",
43
43
  "autoprefixer": "10.4.16",
44
44
  "postcss-cli": "8.3.0",
45
45
  "postcss-import": "13.0.0",
@@ -48,16 +48,16 @@
48
48
  "tailwindcss": "3.4.13",
49
49
  "nodemon": "2.0.7",
50
50
  "next": "13.1.1",
51
- "@digigov/postcss-banner": "1.0.5-599965f0",
52
- "@digigov/cli-build-tailwind": "2.0.0-599965f0",
51
+ "@digigov/postcss-banner": "1.0.5-5e7a6790",
52
+ "@digigov/cli-build-tailwind": "2.0.0-5e7a6790",
53
53
  "rimraf": "3.0.2",
54
54
  "publint": "0.1.8",
55
55
  "stylelint": "15.11.0",
56
- "stylelint-plugin-digigov": "1.1.0-599965f0",
56
+ "stylelint-plugin-digigov": "1.1.0-5e7a6790",
57
57
  "prettier": "3.4.2"
58
58
  },
59
59
  "dependencies": {
60
- "@digigov/theme-default": "1.0.0-599965f0",
60
+ "@digigov/theme-default": "1.0.0-5e7a6790",
61
61
  "@fontsource/roboto": "4.4.0",
62
62
  "cssnano": "4.1.10",
63
63
  "publint": "0.1.8",
@@ -1,7 +1,6 @@
1
1
  @import './accordion.common.css';
2
2
 
3
3
  .ds-accordion {
4
- @apply mb-4 md:mb-8;
5
4
  &.ds-accordion--no-border {
6
5
  .ds-accordion__section {
7
6
  @apply border-0 !important;
@@ -9,6 +9,6 @@
9
9
  line-height: var(--blockquote-line-height);
10
10
  }
11
11
  .util-blockquote--dense {
12
- @apply mb-3 md:mb-6 p-3 border-l-6;
12
+ @apply mt-3 md:mb-6 p-3 border-l-6;
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  .ds-breadcrumbs {
2
- @apply block font-normal text-base-content mb-2 md:mb-4;
2
+ @apply block font-normal text-base-content mb-2;
3
3
  }
4
4
  .ds-breadcrumbs__list {
5
5
  @apply block m-0 p-0 list-none;
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer utilities {
4
4
  .util-card {
5
- @apply mb-4 md:mb-8 text-base-content max-w-full bg-base-100;
5
+ @apply mb-7 text-base-content max-w-full bg-base-100;
6
6
  border-radius: var(--card-border-radius);
7
7
  }
8
8
  .util-card--border {
@@ -1,6 +1,8 @@
1
1
  .ds-code-block__container {
2
- @apply mb-4 md:mb-8 p-4 bg-base-200 border border-base-300 w-full overflow-x-auto relative;
3
- max-height: 95vh; /* experimental to see if it's disturbing */
2
+ @apply p-4 bg-base-200 border border-base-300 w-full overflow-x-auto relative;
3
+
4
+ /* experimental to see if it's disturbing */
5
+ max-height: 95vh;
4
6
  & > pre {
5
7
  @apply bg-transparent p-0 m-0;
6
8
  font: inherit;
@@ -31,7 +33,6 @@
31
33
  }
32
34
 
33
35
  /* copied styles from 'highlight.js/styles/github.css' */
34
- /* stylelint-disable-next-line digigov/enforce-class-selector-namespace */
35
36
  .ds-code--doctag,
36
37
  .ds-code--keyword,
37
38
  .ds-code--meta .ds-code--keyword,
@@ -42,7 +43,6 @@
42
43
  /* prettylights-syntax-keyword */
43
44
  color: var(--color-red-300) !important;
44
45
  }
45
- /* stylelint-disable-next-line digigov/enforce-class-selector-namespace */
46
46
  .ds-code--title,
47
47
  .ds-code--title.class_,
48
48
  .ds-code--title.class_.inherited__,
@@ -118,7 +118,6 @@
118
118
  color: var(--color-red-500);
119
119
  background-color: rgba(var(--color-red-100-rgb), 0.3);
120
120
  }
121
- /* stylelint-disable-next-line digigov/enforce-class-selector-namespace */
122
121
  .ds-code--char.escape_,
123
122
  .ds-code--link,
124
123
  .ds-code--params,
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer utilities {
4
4
  .util-details {
5
- @apply mb-4 md:mb-8;
5
+ @apply md:mb-8 mb-4;
6
6
  }
7
7
  .util-details-text {
8
8
  @apply md:text-lg;
@@ -53,7 +53,7 @@
53
53
  }
54
54
  }
55
55
  .ds-drawer__heading {
56
- @apply p-0 mb-2 md:mb-4 flex justify-between align-baseline;
56
+ @apply p-0 mb-4 flex justify-between align-baseline;
57
57
  .ds--drawer__close-icon {
58
58
  @apply m-0;
59
59
  }
@@ -9,7 +9,7 @@
9
9
  }
10
10
  .util-dropdown__content {
11
11
  @apply border-base-400 bg-base-100
12
- max-w-xs min-w-full absolute transition z-3 mr-4 mt-0 md:-mt-4;
12
+ max-w-xs min-w-full absolute transition z-3 mr-4 -mt-4;
13
13
  box-shadow:
14
14
  0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
15
15
  0 -2px 0 var(--color-base-500);
@@ -1,5 +1,5 @@
1
1
  .ds-fillable-text {
2
- @apply mb-4 md:mb-8 p-4 border-l-6 border-base-300 bg-base-200
2
+ @apply lg:mb-8 mb-4 md:mb-8 p-4 border-l-6 border-base-300 bg-base-200
3
3
  text-base-content md:text-lg leading-relaxed text-base;
4
4
  }
5
5
  .ds-labeled-text {
@@ -83,14 +83,14 @@
83
83
  @apply flex flex-wrap mb-4 md:mb-8 justify-between gap-x-2 gap-y-4;
84
84
  }
85
85
  .ds-input__search-btn {
86
- @apply shadow-none mb-0 !important;
86
+ @apply shadow-none !important;
87
87
  @apply px-4 py-2 w-min m-0 ml-3 flex gap-2;
88
88
  }
89
89
  .ds-search {
90
- @apply flex w-full max-w-3xl mb-4 md:mb-8;
90
+ @apply flex w-full max-w-3xl;
91
91
  }
92
92
  .ds-results__action-bar {
93
- @apply py-2 mb-4 md:mb-8 flex flex-wrap justify-start gap-4 items-baseline;
93
+ @apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
94
94
  > * {
95
95
  @apply mb-0;
96
96
  }
@@ -99,7 +99,7 @@
99
99
  @apply flex flex-wrap justify-between items-baseline gap-x-2;
100
100
  }
101
101
  .ds-results__actions {
102
- @apply flex flex-wrap gap-4 justify-start min-w-min mb-2 md:mb-4;
102
+ @apply flex flex-wrap gap-4 justify-start min-w-min mb-4;
103
103
  }
104
104
  .ds-link-filters {
105
105
  @apply block md:hidden;
@@ -174,7 +174,7 @@
174
174
 
175
175
  /* error handling */
176
176
  .ds-error-message {
177
- @apply md:text-lg text-base block mb-4 md:mb-8 text-error-text font-semibold;
177
+ @apply md:text-lg text-base block mb-4 text-error-text font-semibold;
178
178
  }
179
179
  /* stylelint-disable-next-line digigov/nest-related-rules */
180
180
  .ds-input--error {
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer utilities {
4
4
  .util-panel {
5
- @apply mb-4 md:mb-8 p-8 border-5 border-transparent
5
+ @apply mb-4 p-8 border-5 border-transparent
6
6
  print:p-4 print:border-4 print:text-base-content print:bg-white;
7
7
  border-radius: var(--panel-border-radius);
8
8
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  @layer utilities {
7
7
  .util-phase-banner {
8
- @apply py-2 mb-4 md:mb-8;
8
+ @apply py-2 mb-4;
9
9
  }
10
10
  .util-phase-banner--underline {
11
11
  @apply border-b border-base-500;
@@ -1,5 +1,5 @@
1
1
  .ds-step-nav {
2
- @apply mb-4 md:mb-8;
2
+ @apply mb-8 md:mb-12;
3
3
  &.ds-step-nav--dense,
4
4
  .ds-dense & {
5
5
  @apply mb-4 md:mb-8;
@@ -151,7 +151,7 @@
151
151
  -0.1em 0 0 var(--color-white);
152
152
  }
153
153
  .ds-nav-step__accordion__content {
154
- @apply md:pt-2 mb-4 md:mb-8 pt-1 mx-0;
154
+ @apply md:pt-2 mb-6 pt-1 mx-0;
155
155
  > *:last-child {
156
156
  @apply mb-0;
157
157
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  @layer utilities {
5
5
  .util-summary-list {
6
- @apply m-0 mb-4 sm:mb-8 w-full sm:w-full;
6
+ @apply m-0 mb-6 sm:mb-8 w-full sm:w-full;
7
7
  }
8
8
  .util-summary-list-text {
9
9
  font-size: var(--summary-list-font-size);
@@ -1,20 +1,20 @@
1
1
  .ds-table__caption {
2
- @apply table-caption text-left font-bold mx-0 antialiased;
2
+ @apply table-caption text-left font-bold;
3
3
  &.ds-table__caption--sm {
4
- @apply text-lg md:text-xl mb-3 md:mb-5;
4
+ @apply md:text-2xl text-lg font-bold mx-0 md:mb-6 mb-4 antialiased;
5
5
  }
6
6
  &.ds-table__caption--md {
7
- @apply text-xl md:text-2xl mb-6 md:mb-8;
7
+ @apply md:text-3xl text-xl font-bold mx-0 md:mb-8 mb-6 antialiased;
8
8
  }
9
9
  &.ds-table__caption--lg {
10
- @apply text-2xl md:text-4xl mb-8 md:mb-10;
10
+ @apply md:text-4xl text-2xl font-bold mx-0 md:mb-9 mb-7 antialiased;
11
11
  }
12
12
  &.ds-table__caption--xl {
13
- @apply text-3xl md:text-5xl md:leading-tight leading-tight mb-8 md:mb-10 max-w-2xl;
13
+ @apply md:text-5xl md:leading-tight text-3xl leading-tight font-bold mx-0 md:mb-10 mb-8 max-w-2xl antialiased;
14
14
  }
15
15
  }
16
16
  .ds-table-container {
17
- @apply w-full overflow-x-auto mb-4 md:mb-8;
17
+ @apply w-full overflow-x-auto md:mb-10 mb-6;
18
18
  &.ds-table-container--border {
19
19
  @apply border border-base-300 p-2;
20
20
  }
@@ -23,8 +23,8 @@
23
23
  }
24
24
  }
25
25
  .ds-table {
26
- @apply w-full border-collapse table
27
- mb-4 md:mb-8 text-base-content md:text-lg text-base font-normal antialiased;
26
+ @apply w-full border-collapse table;
27
+ @apply md:mb-10 mb-6 text-base-content md:text-lg text-base font-normal antialiased;
28
28
  border-spacing: 0;
29
29
  &.ds-table--vertical-lines {
30
30
  .ds-table__cell.ds-table__cell--border,
@@ -1,5 +1,4 @@
1
1
  .ds-tabs {
2
- @apply mb-4 md:mb-8;
3
2
  scroll-behavior: smooth;
4
3
  &.ds-tabs--dense,
5
4
  .ds-dense & {
@@ -1,26 +1,20 @@
1
1
  .ds-task-list {
2
- @apply mb-4 md:mb-8 pl-6 pb-2;
3
- &.ds-task-list--dense,
4
- .ds-dense & {
5
- .ds-task-list__item {
6
- @apply mb-3 md:mb-6;
7
- }
8
- }
2
+ @apply mb-4 pl-6 pb-2;
9
3
  }
10
4
  .ds-task-list__item {
11
- @apply mb-10 md:mb-12;
5
+ @apply mb-8 md:mb-10;
12
6
  }
13
7
  .ds-task-list__heading {
14
- @apply text-2xl md:text-3xl font-bold mx-0 mb-3 md:mb-6;
8
+ @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2;
15
9
  &.ds-task-list__heading--md {
16
- @apply text-xl md:text-2xl mb-2 md:mb-4;
10
+ @apply md:text-2xl text-xl md:mb-4 mb-2;
17
11
  }
18
12
  &.ds-task-list__heading--sm {
19
- @apply text-base md:text-lg mb-1 md:mb-3;
13
+ @apply md:text-lg text-base md:mb-3 mb-1;
20
14
  }
21
15
  }
22
16
  .ds-task-list__content {
23
- @apply mb-2 md:mb-4;
17
+ @apply mb-4;
24
18
  }
25
19
  .ds-task-list__content__tag {
26
20
  @apply px-2 py-1 mr-2 inline-block font-sans text-sm uppercase tracking-widest print:border-2 print:bg-white print:mr-4;
@@ -39,6 +33,7 @@
39
33
 
40
34
  .ds-task-list--dense {
41
35
  .ds-task-list__item {
36
+ @apply mb-4 md:mb-6;
42
37
  .ds-summary-list {
43
38
  @apply mb-4 md:mb-6;
44
39
  }
@@ -1,10 +1,10 @@
1
1
  .ds-timeline {
2
- @apply mb-4 md:mb-8 pl-6 pb-2 border-l-4 border-secondary;
2
+ @apply mb-4 pl-6 pb-2 border-l-4 border-secondary;
3
3
  &.ds-timeline--dense,
4
4
  .ds-dense & {
5
5
  @apply pb-0 border-l-3;
6
6
  .ds-timeline__item {
7
- @apply mb-3 md:mb-6;
7
+ @apply mb-4 md:mb-6;
8
8
  }
9
9
  .ds-timeline__heading {
10
10
  @apply mb-2;
@@ -20,7 +20,7 @@
20
20
  @apply mb-10 md:mb-12;
21
21
  }
22
22
  .ds-timeline__heading {
23
- @apply text-2xl md:text-3xl font-bold mx-0 mb-3 md:mb-6 relative;
23
+ @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2 relative;
24
24
  &::before {
25
25
  @apply block absolute top-4 -left-6 w-4
26
26
  border-b-4 border-secondary;
@@ -28,22 +28,22 @@
28
28
  }
29
29
  }
30
30
  .ds-timeline__heading-md {
31
- @apply text-xl md:text-2xl mb-2 md:mb-4;
31
+ @apply md:text-2xl text-xl md:mb-4 mb-2;
32
32
  &::before {
33
33
  @apply top-3 w-3;
34
34
  }
35
35
  }
36
36
  .ds-timeline__heading-sm {
37
- @apply text-base md:text-lg mb-1 md:mb-3;
37
+ @apply md:text-lg text-base md:mb-3 mb-1;
38
38
  &::before {
39
39
  @apply top-2.5 w-3;
40
40
  }
41
41
  }
42
42
  .ds-timeline__content {
43
- @apply mb-2 md:mb-4;
43
+ @apply mb-4;
44
44
  }
45
45
  .ds-timeline__actions {
46
- @apply flex flex-wrap items-center gap-4 mb-0;
46
+ @apply flex flex-wrap items-center gap-4 mb-6;
47
47
  }
48
48
 
49
49
  /* overrides */
@@ -54,7 +54,6 @@
54
54
  }
55
55
  }
56
56
  .ds-timeline__actions {
57
- .ds-btn-group,
58
57
  .ds-btn,
59
58
  .ds-link {
60
59
  @apply mb-0;
@@ -112,7 +112,7 @@
112
112
 
113
113
  /* List */
114
114
  .util-list {
115
- @apply mb-4 md:mb-8 mt-4 text-base-content;
115
+ @apply md:mb-8 mb-4 mt-4 text-base-content;
116
116
  }
117
117
  .util-list-bullet {
118
118
  @apply pl-4;
@@ -4,7 +4,7 @@
4
4
 
5
5
  @layer utilities {
6
6
  .util-warning-text {
7
- @apply flex mb-4 md:mb-8;
7
+ @apply flex;
8
8
  }
9
9
  .util-warning-text-text {
10
10
  font-size: var(--warning-text-font-size);
@@ -5,7 +5,6 @@
5
5
  font-size: var(--warning-text-font-size);
6
6
  &.ds-warning-text--dense,
7
7
  .ds-dense & {
8
- @apply mb-3 md:mb-6;
9
8
  .ds-warning-text__icon {
10
9
  @apply mr-4 md:mr-5;
11
10
  }