@digigov/css 0.13.0 → 0.15.0

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.
@@ -1,64 +1,64 @@
1
1
  .govgr-form {
2
- p {
3
- @apply mb-4;
4
- }
2
+ .govgr-body {
3
+ @apply mb-4;
4
+ }
5
5
  }
6
6
  .govgr-form--row {
7
- @apply flex flex-wrap gap-x-4;
7
+ @apply flex flex-wrap gap-x-4;
8
8
  }
9
9
  .govgr-field {
10
- @apply mb-8 md:mb-10;
10
+ @apply mb-8 md:mb-10;
11
11
  }
12
12
  .govgr-fieldset__legend {
13
- @apply md:text-lg text-base font-bold mx-0 lg:mb-4;
14
- @apply mb-4 !important;
13
+ @apply md:text-lg text-base font-bold mx-0 lg:mb-4;
14
+ @apply mb-4 !important;
15
15
  }
16
16
  .govgr-label {
17
- @apply md:text-lg text-base mb-2
18
- flex gap-y-3 flex-col;
19
- .govgr-heading-s, .govgr-heading-m, .govgr-heading-l, .govgr-heading-xl, .govgr-hint, .govgr-error-message {
20
- @apply mb-0;
21
- }
17
+ @apply md:text-lg text-base mb-2
18
+ flex gap-y-3 flex-col;
19
+ .govgr-heading-s, .govgr-heading-m, .govgr-heading-l, .govgr-heading-xl, .govgr-hint, .govgr-error-message {
20
+ @apply mb-0;
21
+ }
22
22
  }
23
23
  .govgr-input, .govgr-select, .govgr-textarea{
24
- @apply md:text-lg text-base w-full p-2 border-2 border-base-content bg-white;
25
- &:focus {
26
- outline: 4px solid var(--color-focus);
27
- outline-offset: 0;
28
- -webkit-box-shadow: inset 0 0 0 2px;
29
- box-shadow: inset 0 0 0 2px;
30
- }
24
+ @apply md:text-lg text-base w-full p-2 border-2 border-base-content bg-white;
25
+ &:focus {
26
+ outline: 4px solid var(--color-focus);
27
+ outline-offset: 0;
28
+ -webkit-box-shadow: inset 0 0 0 2px;
29
+ box-shadow: inset 0 0 0 2px;
30
+ }
31
31
  }
32
32
  .govgr-file-upload:focus {
33
- outline: 3px solid;
34
- box-shadow: 0 0 0 7px var(--color-focus);
33
+ outline: 3px solid;
34
+ box-shadow: 0 0 0 7px var(--color-focus);
35
35
  }
36
36
  .govgr-date-input {
37
- @apply flex;
38
- .form-group {
39
- @apply mr-4;
40
- }
37
+ @apply flex;
38
+ .form-group {
39
+ @apply mr-4;
40
+ }
41
41
  }
42
42
  .govgr-input--width-20 {
43
- max-width: 41ex;
43
+ max-width: 41ex;
44
44
  }
45
45
  .govgr-input--width-10 {
46
- max-width: 23ex;
46
+ max-width: 23ex;
47
47
  }
48
48
  .govgr-input--width-5 {
49
- max-width: 10.8ex;
49
+ max-width: 10.8ex;
50
50
  }
51
51
  .govgr-input--width-4 {
52
- max-width: 9ex;
52
+ max-width: 9ex;
53
53
  }
54
54
  .govgr-input--width-3 {
55
- max-width: 7.2ex;
55
+ max-width: 7.2ex;
56
56
  }
57
57
  .govgr-input--width-2 {
58
- max-width: 5.4ex;
58
+ max-width: 5.4ex;
59
59
  }
60
60
  .govgr-date-input__item {
61
- @apply mr-4;
61
+ @apply mr-4;
62
62
  }
63
63
  .govgr-\!-width-one-quarter,
64
64
  .govgr-\!-width-one-third,
@@ -66,30 +66,30 @@
66
66
  .govgr-\!-width-two-thirds,
67
67
  .govgr-\!-width-three-quarters,
68
68
  .govgr-\!-width-full-width {
69
- width: 100% !important;
69
+ width: 100% !important;
70
70
  }
71
71
  @screen sm {
72
- .govgr-\!-width-one-quarter {
73
- width: 25% !important;
74
- }
75
- .govgr-\!-width-one-third {
76
- width: 33.33% !important;
77
- }
78
- .govgr-\!-width-one-half {
79
- width: 50% !important;
80
- }
81
- .govgr-\!-width-two-thirds {
82
- width: 66.66% !important;
83
- }
84
- .govgr-\!-width-three-quarters {
85
- width: 75% !important;
86
- }
87
- .govgr-\!-width-full-width {
88
- width: 100% !important;
89
- }
72
+ .govgr-\!-width-one-quarter {
73
+ width: 25% !important;
74
+ }
75
+ .govgr-\!-width-one-third {
76
+ width: 33.33% !important;
77
+ }
78
+ .govgr-\!-width-one-half {
79
+ width: 50% !important;
80
+ }
81
+ .govgr-\!-width-two-thirds {
82
+ width: 66.66% !important;
83
+ }
84
+ .govgr-\!-width-three-quarters {
85
+ width: 75% !important;
86
+ }
87
+ .govgr-\!-width-full-width {
88
+ width: 100% !important;
89
+ }
90
90
  }
91
91
  .govgr-select {
92
- @apply w-auto max-w-full;
92
+ @apply w-auto max-w-full;
93
93
  }
94
94
  /* error handling */
95
95
  .govgr-field__error {
@@ -107,5 +107,3 @@
107
107
  box-shadow: inset 0 0 0 1px var(--color-error);
108
108
  }
109
109
  }
110
-
111
-
@@ -0,0 +1,7 @@
1
+ .govgr-full-page-background {
2
+ @apply flex justify-center items-center content-center bg-opacity-50 bg-gray-900
3
+ fixed z-10 left-0 top-0 w-full h-full;
4
+ }
5
+ .govgr-loader__icon {
6
+ @apply h-fit-content w-fit;
7
+ }
@@ -1,7 +1,6 @@
1
1
  .govgr-header {
2
2
  @apply bg-primary border-b-8 border-secondary-600;
3
3
  border-bottom-style: solid;
4
-
5
4
  }
6
5
  .govgr-header__container {
7
6
  @apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center;
@@ -15,7 +14,6 @@
15
14
  .govgr-header-title {
16
15
  @apply text-2xl font-bold align-middle text-base-100 leading-10 tracking-wide w-auto hover:text-base-100 hover:no-underline;
17
16
  }
18
-
19
17
  .govgr-header-title:focus {
20
18
  text-decoration:none;
21
19
  outline: 4px solid var(--color-focus) !important;
@@ -37,7 +35,7 @@
37
35
  .govgr-masthead {
38
36
  @apply bg-secondary-600 text-content-dark;
39
37
  .govgr-grid-column-two-thirds >*:last-child {
40
- @apply mb-0;
38
+ @apply mb-0;
41
39
  }
42
40
  .govgr-body {
43
41
  @apply text-content-dark;
@@ -26,3 +26,5 @@
26
26
  @import "./modal.css";
27
27
  @import "./svg-icons.css";
28
28
  @import "./pagination.css";
29
+ @import "./loader.css";
30
+ @import "./full-page-background.css";
@@ -10,42 +10,42 @@
10
10
  }
11
11
 
12
12
  .govgr-width-container {
13
- @apply max-w-5xl box-border mx-auto px-3 md:px-6 w-full;
14
- flex: 1 1 0%;
13
+ @apply max-w-5xl box-border mx-auto px-3 md:px-6 w-full;
14
+ flex: 1 1 0%;
15
15
  }
16
16
  .govgr-full-width-container {
17
17
  @apply max-w-full box-border mx-auto px-3 md:px-6 w-full;
18
- flex: 1 1 0%;
18
+ flex: 1 1 0%;
19
19
  }
20
20
  .govgr-main-wrapper {
21
- @apply grid py-4 md:grid-cols-3 md:gap-12 grid-cols-1 gap-y-16;
21
+ @apply grid py-4 md:grid-cols-3 md:gap-12 grid-cols-1 gap-y-16;
22
22
  }
23
23
  .govgr-grid-column-two-thirds {
24
- @apply col-span-2;
24
+ @apply col-span-2;
25
25
  }
26
26
  .govgr-grid-column-one-third {
27
- @apply col-span-1 flex flex-wrap flex-col md:sticky md:top-8 h-fit-content;
27
+ @apply col-span-1 flex flex-wrap flex-col md:sticky md:top-8 h-fit-content;
28
28
  }
29
29
  .govgr-top {
30
- @apply mb-4;
30
+ @apply mb-4;
31
31
  }
32
32
  .govgr-bottom {
33
- @apply w-full flex flex-wrap box-border;
33
+ @apply w-full flex flex-wrap box-border;
34
34
  }
35
35
  .govgr-button-group {
36
- @apply flex flex-wrap gap-4 mb-6;
37
- &>.govgr-link {
38
- @apply flex mb-8 text-lg;
39
- }
40
- .govgr-btn {
41
- @apply mb-0;
42
- }
36
+ @apply flex flex-wrap gap-4 mb-6;
37
+ &>.govgr-link {
38
+ @apply flex mb-8 text-lg;
39
+ }
40
+ .govgr-btn {
41
+ @apply mb-0;
42
+ }
43
43
  }
44
44
  .govgr-section-break {
45
- @apply m-auto px-4 py-2 border-0 w-full;
45
+ @apply m-auto px-4 py-2 border-0 w-full;
46
46
  }
47
47
  .govgr-section-break--visible {
48
- @apply border-t border-gray-50;
48
+ @apply border-t border-gray-50;
49
49
  }
50
50
  .govgr-section-break--m {
51
51
  @apply mb-5;
@@ -0,0 +1,47 @@
1
+ :root {
2
+ --full-length: 470;
3
+ }
4
+ .govgr-loader__container {
5
+ @apply h-fit-content w-fit;
6
+ }
7
+ .govgr-loader {
8
+ animation: rotate 10s linear infinite;
9
+ width: 3rem;
10
+ height: 3rem;
11
+ }
12
+ .govgr-loader__circle {
13
+ fill: none;
14
+ stroke-miterlimit: 10;
15
+ stroke-width: 42px;
16
+ }
17
+ .govgr-loader__circle--1 {
18
+ stroke: var(--color-secondary);
19
+ }
20
+ .govgr-loader__circle--2 {
21
+ stroke: var(--color-primary);
22
+ stroke-dasharray: var(--full-length);
23
+ stroke-dashoffset: 0;
24
+ animation: dash 4s ease-in-out 0s forwards infinite;
25
+ }
26
+ @keyframes dash {
27
+ 0% {
28
+ stroke-dashoffset: 0;
29
+ }
30
+ 40% {
31
+ stroke-dashoffset: var(--full-length);
32
+ }
33
+ 50% {
34
+ stroke-dashoffset: var(--full-length);
35
+ }
36
+ 90% {
37
+ stroke-dashoffset: 0;
38
+ }
39
+ 100% {
40
+ stroke-dashoffset: 0;
41
+ }
42
+ }
43
+ @keyframes rotate {
44
+ to {
45
+ transform: rotate(360deg);
46
+ }
47
+ }
@@ -13,7 +13,6 @@
13
13
  }
14
14
  .govgr-warning-text {
15
15
  @apply flex pl-0 pr-0;
16
-
17
16
  .govgr-warning-text__icon {
18
17
  @apply text-white font-bold bg-base-content text-3xl leading-10 text-center rounded-3xl min-h-10 min-w-10 h-fit-content mr-6 mt-2;
19
18
  }
@@ -73,7 +72,6 @@ span.govgr-caret-left {
73
72
  }
74
73
  }
75
74
  }
76
-
77
75
  .govgr-visually-hidden {
78
76
  @apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
79
77
  width: 1px !important;
@@ -1,10 +1,8 @@
1
- /* icon and transition of the burger icon */
2
1
  .govgr-header {
3
2
  .govgr-burger-icon {
4
- fill: var(--color-white) ;
3
+ fill: var(--color-white) ;
5
4
  }
6
5
  }
7
-
8
6
  .govgr-burger-icon {
9
7
  fill: var(--color-base-content) ;
10
8
  @apply w-8 h-8 float-right cursor-pointer transition-all z-30
@@ -50,49 +48,45 @@
50
48
  }
51
49
 
52
50
  /* --- HORIZONTAL --- */
53
-
54
51
  .govgr-horizontal-nav {
55
- @apply fixed w-3/4 sm:w-full h-full bg-secondary-800 text-content-dark
56
- sm:relative sm:h-auto sm:bg-white sm:text-content
57
- z-30 sm:z-auto
58
- opacity-10 sm:opacity-100 sm:block transition-all duration-1000 sm:transition-none
59
- -right-3/4 sm:right-auto top-0 sm:top-auto overflow-x-scroll sm:overflow-visible
60
- border-b border-base-150
61
- ;
52
+ @apply fixed w-3/4 sm:w-full h-full bg-secondary-800 text-content-dark
53
+ sm:relative sm:h-auto sm:bg-white sm:text-content
54
+ z-30 sm:z-auto
55
+ opacity-10 sm:opacity-100 sm:block transition-all duration-1000 sm:transition-none
56
+ -right-3/4 sm:right-auto top-0 sm:top-auto overflow-x-scroll sm:overflow-visible
57
+ border-b border-base-150
58
+ ;
62
59
  }
63
60
  .govgr-horizontal-nav__container {
64
- @apply w-full m-0 max-w-5xl sm:mx-auto px-4 sm:px-4 sm:py-2
65
- flex flex-wrap flex-col sm:flex-row gap-4 sm:gap-2;
61
+ @apply w-full m-0 max-w-5xl sm:mx-auto px-4 sm:px-4 sm:py-2
62
+ flex flex-wrap flex-col sm:flex-row gap-4 sm:gap-2;
66
63
  }
67
64
  .govgr-horizontal-nav--active {
68
- @apply block opacity-100 right-0;
69
- .govgr-horizontal-nav__container {
70
- @apply mt-24 sm:mt-auto;
71
- }
72
- > * {
73
- @apply py-4 md:py-1;
74
- }
65
+ @apply block opacity-100 right-0;
66
+ .govgr-horizontal-nav__container {
67
+ @apply mt-24 sm:mt-auto;
68
+ }
69
+ > * {
70
+ @apply py-4 md:py-1;
71
+ }
75
72
  }
76
73
  .govgr-horizontal-nav__item {
77
- @apply p-1 text-xl
78
- sm:py-1 sm:px-1 sm:text-base
79
- no-underline hover:underline;
80
-
74
+ @apply p-1 text-xl
75
+ sm:py-1 sm:px-1 sm:text-base
76
+ no-underline hover:underline;
81
77
  }
82
-
83
78
  .govgr-horizontal-nav__item:focus {
84
79
  @apply bg-focus text-base-content outline-none;
85
- box-shadow: 0 -2px var(--color-focus), 0 4px #0b0c0c;
80
+ box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
86
81
  }
87
82
  .govgr-horizontal-nav__item-active, .govgr-vertical-nav__item--active {
88
- @apply font-semibold;
83
+ @apply font-semibold;
89
84
  }
90
85
 
91
86
  /* --- VERTICAL --- */
92
-
93
87
  .govgr-vertical-nav {
94
- @apply flex flex-wrap;
88
+ @apply flex flex-wrap;
95
89
  }
96
90
  .govgr-vertical-nav__item {
97
- @apply w-full p-2;
91
+ @apply w-full p-2;
98
92
  }
@@ -36,9 +36,9 @@
36
36
  text-decoration-thickness: 2px;
37
37
  }
38
38
  &:focus {
39
- background-color: var(--color-focus);
40
- box-shadow: 0 -2px var(--color-focus), 0 4px #0b0c0c;
41
- text-decoration:none;
42
- outline: none;
39
+ background-color: var(--color-focus);
40
+ box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
41
+ text-decoration:none;
42
+ outline: none;
43
43
  }
44
44
  }
@@ -1,10 +1,10 @@
1
- .govgr-pagination{
2
- @apply flex flex-wrap items-center justify-items-center md:text-lg text-base;
1
+ .govgr-pagination {
2
+ @apply flex flex-wrap items-center justify-items-center justify-between md:text-base text-sm;
3
3
  }
4
- .govgr-pagination__list{
5
- @apply flex-grow;
4
+ .govgr-pagination__list {
5
+ @apply flex items-center;
6
6
  }
7
- .govgr-pagination__item--active, .govgr-pagination__item--dots{
7
+ .govgr-pagination__item--current, .govgr-pagination__item--dots {
8
8
  @apply font-bold;
9
9
  }
10
10
  .govgr-pagination__item {
@@ -12,20 +12,21 @@
12
12
  @apply flex no-underline;
13
13
  }
14
14
  @apply inline-block p-2;
15
-
16
15
  &:first-child {
17
16
  @apply pl-0
18
17
  }
19
18
  &:last-child {
20
19
  @apply pr-0
21
20
  }
22
-
23
21
  }
24
- .govgr-pagination__item--inactive{
22
+ .govgr-pagination__label {
23
+ @apply text-base-content md:text-base md:leading-normal text-sm;
24
+ }
25
+ .govgr-pagination__item--inactive {
25
26
  .govgr-link {
26
- @apply flex text-gray-600 cursor-not-allowed no-underline;
27
+ @apply flex text-gray-600 cursor-not-allowed no-underline font-normal;
27
28
  }
28
- .govgr-arrow--left, .govgr-arrow--right{
29
+ .govgr-arrow--left, .govgr-arrow--right {
29
30
  fill:var(--color-gray-600);
30
31
  }
31
32
  }
@@ -1,11 +1,9 @@
1
1
  .govgr-phase-banner {
2
2
  @apply py-2 mb-4;
3
3
  }
4
-
5
4
  .govgr-phase-banner__underline {
6
5
  @apply border-base-200 border-b;
7
6
  }
8
-
9
7
  .govgr-phase-banner__content {
10
8
  @apply table;
11
9
  }
@@ -1,7 +1,6 @@
1
1
  .govgr-radios__item {
2
2
  @apply block relative mb-4 pl-12;
3
3
  min-height: 40px;
4
-
5
4
  }
6
5
  .govgr-radios--inline {
7
6
  .govgr-radios__item {
@@ -18,7 +18,6 @@
18
18
  @apply h-6 w-6;
19
19
  }
20
20
  }
21
-
22
21
  .govgr-link {
23
22
  .govgr-svg-icon {
24
23
  fill:var(--color-link);
@@ -32,7 +31,6 @@
32
31
  .govgr-svg-icon {
33
32
  fill:var(--color-link-active);
34
33
  }
35
-
36
34
  }
37
35
  }
38
36
  .govgr-svg-icon--dark {
@@ -62,7 +60,6 @@
62
60
  .govgr-svg-icon--link {
63
61
  fill: var(--color-link) !important;
64
62
  }
65
-
66
63
  .govgr-svg-icon--s {
67
64
  @apply h-3 w-3;
68
65
  }
@@ -13,41 +13,32 @@
13
13
  .govgr-table--with-vertical-lines {
14
14
  .govgr-table__cell {
15
15
  @apply border-l border-r border-solid border-gray-50 !important;
16
- }
17
-
18
-
16
+ }
19
17
  }
20
-
21
18
  .govgr-table--with-vertical-lines.govgr-table--light {
22
19
  th, td {
23
20
  @apply px-4 !important;
24
21
  }
25
22
  }
26
-
27
23
  .govgr-table--dark, .govgr-table--zebra {
28
24
  th, td {
29
25
  @apply px-4 !important;
30
26
  }
31
27
  }
32
-
33
28
  .govgr-table--with-vertical-lines.govgr-table--light .govgr-table__body .govgr-table__header {
34
29
  @apply border-l border-solid border-gray-50 !important;
35
30
  }
36
-
37
31
  .govgr-table--with-vertical-lines.govgr-table--dense.govgr-table--dark {
38
- .govgr-table__head .govgr-table__row .govgr-table__header:first-child{
39
- @apply border-b-0 border-l border-solid border-primary !important;
40
- }
32
+ .govgr-table__head .govgr-table__row .govgr-table__header:first-child {
33
+ @apply border-b-0 border-l border-solid border-primary !important;
34
+ }
41
35
  }
42
-
43
-
44
36
  .govgr-table--with-vertical-lines.govgr-table--dark{
45
- .govgr-table__head .govgr-table__row .govgr-table__header:last-child{
37
+ .govgr-table__head .govgr-table__row .govgr-table__header:last-child {
46
38
  @apply border-b-0 border-r border-solid border-primary !important;
47
39
  }
48
40
  }
49
-
50
- .govgr-table--dark{
41
+ .govgr-table--dark {
51
42
  th {
52
43
  @apply border-none bg-primary text-white;
53
44
  }
@@ -58,7 +49,6 @@
58
49
  @apply border-r border-solid border-gray-50 !important;
59
50
  }
60
51
  }
61
-
62
52
  .govgr-table--zebra {
63
53
  .govgr-table__body {
64
54
  .govgr-table__row:nth-child(even) {
@@ -12,16 +12,16 @@
12
12
  @apply float-left relative md:border md:border-base-100 md:bg-base-100 md:rounded-t-sm md:px-4 md:py-2 m-0 md:mr-2 shadow-none
13
13
  cursor-pointer;
14
14
  &.govgr-tabs__list-item-selected {
15
- @apply no-underline md:border-base-150 bg-white z-20 md:border-b-0;
16
- margin-top: -5px;
17
- margin-bottom: -1px;
18
- padding-top: 14px;
19
- padding-right: 19px;
20
- padding-bottom: 16px;
21
- padding-left: 19px;
22
- border: 1px solid #b1b4b6;
23
- border-bottom: 0;
24
- background-color: #fff;
15
+ @apply no-underline md:border-base-150 bg-white z-20 md:border-b-0;
16
+ margin-top: -5px;
17
+ margin-bottom: -1px;
18
+ padding-top: 14px;
19
+ padding-right: 19px;
20
+ padding-bottom: 16px;
21
+ padding-left: 19px;
22
+ border: 1px solid var(--color-gray-200);
23
+ border-bottom: 0;
24
+ background-color: var(--color-white);
25
25
  &:hover {
26
26
  text-decoration-thickness: 2px;
27
27
  }
@@ -93,7 +93,6 @@
93
93
 
94
94
  .govgr-link {
95
95
  @apply text-link hover:text-link-hover focus:text-link-active underline items-center cursor-pointer flex gap-2;
96
-
97
96
  .right-arrow::after {
98
97
  content: "";
99
98
  @apply w-06rem h-06rem bg-primary rounded-xl border-white block border-t-2_5 border-r-2_5 ml-3 transform rotate-45;
@@ -102,10 +101,10 @@
102
101
  text-decoration-thickness: 2px;
103
102
  }
104
103
  &:focus {
105
- background-color: var(--color-focus);
106
- box-shadow: 0 -2px var(--color-focus), 0 4px #0b0c0c;
107
- text-decoration:none;
108
- outline: none;
104
+ background-color: var(--color-focus);
105
+ box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
106
+ text-decoration:none;
107
+ outline: none;
109
108
  }
110
109
  }
111
110
  .govgr-link--no-underline {
@@ -129,13 +128,13 @@
129
128
  width: fit-content;
130
129
  @apply text-base-content underline flex items-center mb-4 cursor-pointer;
131
130
  &:hover {
132
- text-decoration-thickness: 2px;
133
- }
131
+ text-decoration-thickness: 2px;
132
+ }
134
133
  &:focus {
135
- background-color: var(--color-focus);
136
- box-shadow: 0 -2px var(--color-focus), 0 4px #0b0c0c;
137
- text-decoration:none;
138
- outline: none;
134
+ background-color: var(--color-focus);
135
+ box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
136
+ text-decoration:none;
137
+ outline: none;
139
138
  }
140
139
  .govgr-caret--left {
141
140
  fill:var(--color-base-content);
@@ -144,7 +143,7 @@
144
143
  }
145
144
  .govgr-background-dark {
146
145
  .govgr-back-link {
147
- @apply text-white;
146
+ @apply text-white;
148
147
  }
149
148
  }
150
149