@semanticus/semanticus-css 0.3.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.
Files changed (122) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +53 -0
  3. package/README.md +151 -0
  4. package/dist/semanticus-semantics.css +2 -0
  5. package/dist/semanticus-utilities.css +7 -0
  6. package/dist/semanticus-variants.css +1 -0
  7. package/dist/semanticus.css +7 -0
  8. package/dist/semanticus.palette.amber.css +1 -0
  9. package/dist/semanticus.palette.blue.css +1 -0
  10. package/dist/semanticus.palette.cyan.css +1 -0
  11. package/dist/semanticus.palette.fuchsia.css +1 -0
  12. package/dist/semanticus.palette.green.css +1 -0
  13. package/dist/semanticus.palette.grey.css +1 -0
  14. package/dist/semanticus.palette.indigo.css +1 -0
  15. package/dist/semanticus.palette.jade.css +1 -0
  16. package/dist/semanticus.palette.lime.css +1 -0
  17. package/dist/semanticus.palette.orange.css +1 -0
  18. package/dist/semanticus.palette.pink.css +1 -0
  19. package/dist/semanticus.palette.pumpkin.css +1 -0
  20. package/dist/semanticus.palette.purple.css +1 -0
  21. package/dist/semanticus.palette.red.css +1 -0
  22. package/dist/semanticus.palette.sand.css +1 -0
  23. package/dist/semanticus.palette.slate.css +1 -0
  24. package/dist/semanticus.palette.violet.css +1 -0
  25. package/dist/semanticus.palette.yellow.css +1 -0
  26. package/dist/semanticus.palette.zinc.css +1 -0
  27. package/dist/semanticus.size.slim.css +1 -0
  28. package/package.json +102 -0
  29. package/src/_normalize.css +214 -0
  30. package/src/_variables.css +863 -0
  31. package/src/index.css +20 -0
  32. package/src/palettes/amber.css +56 -0
  33. package/src/palettes/blue.css +56 -0
  34. package/src/palettes/cyan.css +56 -0
  35. package/src/palettes/fuchsia.css +56 -0
  36. package/src/palettes/green.css +56 -0
  37. package/src/palettes/grey.css +56 -0
  38. package/src/palettes/indigo.css +56 -0
  39. package/src/palettes/jade.css +56 -0
  40. package/src/palettes/lime.css +56 -0
  41. package/src/palettes/orange.css +56 -0
  42. package/src/palettes/pink.css +56 -0
  43. package/src/palettes/pumpkin.css +56 -0
  44. package/src/palettes/purple.css +56 -0
  45. package/src/palettes/red.css +56 -0
  46. package/src/palettes/sand.css +56 -0
  47. package/src/palettes/slate.css +56 -0
  48. package/src/palettes/violet.css +56 -0
  49. package/src/palettes/yellow.css +56 -0
  50. package/src/palettes/zinc.css +56 -0
  51. package/src/semantics/_aria-busy.css +34 -0
  52. package/src/semantics/_article.css +6 -0
  53. package/src/semantics/_body.css +10 -0
  54. package/src/semantics/_button.css +106 -0
  55. package/src/semantics/_code.css +50 -0
  56. package/src/semantics/_details.css +292 -0
  57. package/src/semantics/_dialog.css +163 -0
  58. package/src/semantics/_document.css +18 -0
  59. package/src/semantics/_embedded.css +41 -0
  60. package/src/semantics/_figure.css +13 -0
  61. package/src/semantics/_hidden.css +7 -0
  62. package/src/semantics/_hr.css +10 -0
  63. package/src/semantics/_input.css +306 -0
  64. package/src/semantics/_links.css +33 -0
  65. package/src/semantics/_main.css +3 -0
  66. package/src/semantics/_nav.css +116 -0
  67. package/src/semantics/_progress.css +62 -0
  68. package/src/semantics/_role-group-search.css +129 -0
  69. package/src/semantics/_role-toolbar.css +17 -0
  70. package/src/semantics/_role-tooltip.css +138 -0
  71. package/src/semantics/_section.css +6 -0
  72. package/src/semantics/_table.css +28 -0
  73. package/src/semantics/_type-checkbox-radio.css +142 -0
  74. package/src/semantics/_type-color.css +22 -0
  75. package/src/semantics/_type-date.css +40 -0
  76. package/src/semantics/_type-file.css +26 -0
  77. package/src/semantics/_type-range.css +90 -0
  78. package/src/semantics/_type-search.css +34 -0
  79. package/src/semantics/_typography.css +137 -0
  80. package/src/semantics/index.css +14 -0
  81. package/src/semantics/modules.css +35 -0
  82. package/src/sizes/slim.css +12 -0
  83. package/src/utilities/_variables.css +244 -0
  84. package/src/utilities/borders/_border-radius.css +216 -0
  85. package/src/utilities/borders/_border-style.css +39 -0
  86. package/src/utilities/borders/_border-width.css +39 -0
  87. package/src/utilities/colors/_background-colors.css +209 -0
  88. package/src/utilities/colors/_border-colors.css +69 -0
  89. package/src/utilities/colors/_text-colors.css +371 -0
  90. package/src/utilities/display/_display.css +259 -0
  91. package/src/utilities/display/_overflow.css +47 -0
  92. package/src/utilities/display/_visibility.css +27 -0
  93. package/src/utilities/effects/_opacity.css +19 -0
  94. package/src/utilities/effects/_shadows.css +48 -0
  95. package/src/utilities/effects/_transforms.css +11 -0
  96. package/src/utilities/index.css +14 -0
  97. package/src/utilities/layout/_flexbox.css +846 -0
  98. package/src/utilities/layout/_grid.css +51 -0
  99. package/src/utilities/layout/_misc.css +77 -0
  100. package/src/utilities/media/_object-fit.css +139 -0
  101. package/src/utilities/modules.css +56 -0
  102. package/src/utilities/positioning/_floats.css +72 -0
  103. package/src/utilities/positioning/_inset.css +47 -0
  104. package/src/utilities/positioning/_position.css +108 -0
  105. package/src/utilities/positioning/_z-index.css +19 -0
  106. package/src/utilities/sizing/_height.css +31 -0
  107. package/src/utilities/sizing/_width.css +31 -0
  108. package/src/utilities/spacing/_gap.css +393 -0
  109. package/src/utilities/spacing/_margin.css +1030 -0
  110. package/src/utilities/spacing/_padding.css +885 -0
  111. package/src/utilities/typography/_font-family.css +7 -0
  112. package/src/utilities/typography/_font-sizes.css +38 -0
  113. package/src/utilities/typography/_font-weight.css +51 -0
  114. package/src/utilities/typography/_text-alignment.css +141 -0
  115. package/src/variants/_card.css +41 -0
  116. package/src/variants/_container.css +36 -0
  117. package/src/variants/_contrast.css +50 -0
  118. package/src/variants/_ghost.css +58 -0
  119. package/src/variants/_secondary.css +38 -0
  120. package/src/variants/_striped.css +10 -0
  121. package/src/variants/index.css +6 -0
  122. package/src/variants/modules.css +12 -0
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Grid
3
+ * Minimal grid system with auto-layout columns
4
+ */
5
+ .grid {
6
+ grid-column-gap: var(--grid-column-gap);
7
+ grid-row-gap: var(--grid-row-gap);
8
+ display: grid;
9
+ grid-template-columns: 1fr;
10
+
11
+ @media (min-width: 425px) {
12
+ grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
13
+ }
14
+
15
+ & > * {
16
+ min-width: 0;
17
+ }
18
+ }
19
+
20
+ .ratio {
21
+ position: relative;
22
+ width: 100%;
23
+ }
24
+ .ratio::before {
25
+ display: block;
26
+ padding-top: var(--aspect-ratio);
27
+ content: "";
28
+ }
29
+ .ratio > * {
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ width: 100%;
34
+ height: 100%;
35
+ }
36
+
37
+ .ratio-1x1 {
38
+ --aspect-ratio: 100%;
39
+ }
40
+
41
+ .ratio-4x3 {
42
+ --aspect-ratio: 75%;
43
+ }
44
+
45
+ .ratio-16x9 {
46
+ --aspect-ratio: 56.25%;
47
+ }
48
+
49
+ .ratio-21x9 {
50
+ --aspect-ratio: 42.8571428571%;
51
+ }
@@ -0,0 +1,77 @@
1
+ .clearfix::after {
2
+ display: block;
3
+ clear: both;
4
+ content: "";
5
+ }
6
+
7
+ .icon-link {
8
+ display: inline-flex;
9
+ gap: 0.375rem;
10
+ align-items: center;
11
+ -webkit-text-decoration-color: rgba(var(--link-color-rgb), var(--link-opacity, 0.5));
12
+ text-decoration-color: rgba(var(--link-color-rgb), var(--link-opacity, 0.5));
13
+ text-underline-offset: 0.25em;
14
+ -webkit-backface-visibility: hidden;
15
+ backface-visibility: hidden;
16
+ }
17
+ .icon-link > .bi {
18
+ flex-shrink: 0;
19
+ width: 1em;
20
+ height: 1em;
21
+ fill: currentcolor;
22
+ transition: 0.2s ease-in-out transform;
23
+ }
24
+ @media (prefers-reduced-motion: reduce) {
25
+ .icon-link > .bi {
26
+ transition: none;
27
+ }
28
+ }
29
+
30
+ .icon-link-hover:hover > .bi, .icon-link-hover:focus-visible > .bi {
31
+ transform: var(--icon-link-transform, translate3d(0.25em, 0, 0));
32
+ }
33
+
34
+
35
+ .stretched-link::after {
36
+ position: absolute;
37
+ top: 0;
38
+ right: 0;
39
+ bottom: 0;
40
+ left: 0;
41
+ z-index: 1;
42
+ content: "";
43
+ }
44
+
45
+ .vr {
46
+ display: inline-block;
47
+ align-self: stretch;
48
+ width: var(--border-width);
49
+ min-height: 1em;
50
+ background-color: currentcolor;
51
+ opacity: 0.25;
52
+ }
53
+
54
+ .user-select-all {
55
+ -webkit-user-select: all !important;
56
+ -moz-user-select: all !important;
57
+ user-select: all !important;
58
+ }
59
+
60
+ .user-select-auto {
61
+ -webkit-user-select: auto !important;
62
+ user-select: auto !important;
63
+ }
64
+
65
+ .user-select-none {
66
+ -webkit-user-select: none !important;
67
+ -moz-user-select: none !important;
68
+ user-select: none !important;
69
+ }
70
+
71
+ .pe-none {
72
+ pointer-events: none !important;
73
+ }
74
+
75
+ .pe-auto {
76
+ pointer-events: auto !important;
77
+ }
@@ -0,0 +1,139 @@
1
+ .object-fit-contain {
2
+ -o-object-fit: contain !important;
3
+ object-fit: contain !important;
4
+ }
5
+
6
+ .object-fit-cover {
7
+ -o-object-fit: cover !important;
8
+ object-fit: cover !important;
9
+ }
10
+
11
+ .object-fit-fill {
12
+ -o-object-fit: fill !important;
13
+ object-fit: fill !important;
14
+ }
15
+
16
+ .object-fit-scale {
17
+ -o-object-fit: scale-down !important;
18
+ object-fit: scale-down !important;
19
+ }
20
+
21
+ .object-fit-none {
22
+ -o-object-fit: none !important;
23
+ object-fit: none !important;
24
+ }
25
+
26
+ @media (min-width: 576px) {
27
+ .object-fit-sm-contain {
28
+ -o-object-fit: contain !important;
29
+ object-fit: contain !important;
30
+ }
31
+ .object-fit-sm-cover {
32
+ -o-object-fit: cover !important;
33
+ object-fit: cover !important;
34
+ }
35
+ .object-fit-sm-fill {
36
+ -o-object-fit: fill !important;
37
+ object-fit: fill !important;
38
+ }
39
+ .object-fit-sm-scale {
40
+ -o-object-fit: scale-down !important;
41
+ object-fit: scale-down !important;
42
+ }
43
+ .object-fit-sm-none {
44
+ -o-object-fit: none !important;
45
+ object-fit: none !important;
46
+ }
47
+ }
48
+
49
+ @media (min-width: 768px) {
50
+ .object-fit-md-contain {
51
+ -o-object-fit: contain !important;
52
+ object-fit: contain !important;
53
+ }
54
+ .object-fit-md-cover {
55
+ -o-object-fit: cover !important;
56
+ object-fit: cover !important;
57
+ }
58
+ .object-fit-md-fill {
59
+ -o-object-fit: fill !important;
60
+ object-fit: fill !important;
61
+ }
62
+ .object-fit-md-scale {
63
+ -o-object-fit: scale-down !important;
64
+ object-fit: scale-down !important;
65
+ }
66
+ .object-fit-md-none {
67
+ -o-object-fit: none !important;
68
+ object-fit: none !important;
69
+ }
70
+ }
71
+
72
+ @media (min-width: 992px) {
73
+ .object-fit-lg-contain {
74
+ -o-object-fit: contain !important;
75
+ object-fit: contain !important;
76
+ }
77
+ .object-fit-lg-cover {
78
+ -o-object-fit: cover !important;
79
+ object-fit: cover !important;
80
+ }
81
+ .object-fit-lg-fill {
82
+ -o-object-fit: fill !important;
83
+ object-fit: fill !important;
84
+ }
85
+ .object-fit-lg-scale {
86
+ -o-object-fit: scale-down !important;
87
+ object-fit: scale-down !important;
88
+ }
89
+ .object-fit-lg-none {
90
+ -o-object-fit: none !important;
91
+ object-fit: none !important;
92
+ }
93
+ }
94
+
95
+ @media (min-width: 1200px) {
96
+ .object-fit-xl-contain {
97
+ -o-object-fit: contain !important;
98
+ object-fit: contain !important;
99
+ }
100
+ .object-fit-xl-cover {
101
+ -o-object-fit: cover !important;
102
+ object-fit: cover !important;
103
+ }
104
+ .object-fit-xl-fill {
105
+ -o-object-fit: fill !important;
106
+ object-fit: fill !important;
107
+ }
108
+ .object-fit-xl-scale {
109
+ -o-object-fit: scale-down !important;
110
+ object-fit: scale-down !important;
111
+ }
112
+ .object-fit-xl-none {
113
+ -o-object-fit: none !important;
114
+ object-fit: none !important;
115
+ }
116
+ }
117
+
118
+ @media (min-width: 1400px) {
119
+ .object-fit-xxl-contain {
120
+ -o-object-fit: contain !important;
121
+ object-fit: contain !important;
122
+ }
123
+ .object-fit-xxl-cover {
124
+ -o-object-fit: cover !important;
125
+ object-fit: cover !important;
126
+ }
127
+ .object-fit-xxl-fill {
128
+ -o-object-fit: fill !important;
129
+ object-fit: fill !important;
130
+ }
131
+ .object-fit-xxl-scale {
132
+ -o-object-fit: scale-down !important;
133
+ object-fit: scale-down !important;
134
+ }
135
+ .object-fit-xxl-none {
136
+ -o-object-fit: none !important;
137
+ object-fit: none !important;
138
+ }
139
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Semanticus CSS Utilities Modules
3
+ * Just the utility classes (no global variables, no normalize)
4
+ * Used by the full version which imports global variables and normalize separately
5
+ */
6
+
7
+ @import './_variables.css';
8
+
9
+ /* borders */
10
+ @import './borders/_border-style.css';
11
+ @import './borders/_border-width.css';
12
+ @import './borders/_border-radius.css';
13
+
14
+ /* colors */
15
+ @import './colors/_background-colors.css';
16
+ @import './colors/_border-colors.css';
17
+ @import './colors/_text-colors.css';
18
+
19
+ /* display */
20
+ @import './display/_display.css';
21
+ @import './display/_overflow.css';
22
+ @import './display/_visibility.css';
23
+
24
+ /* effects */
25
+ @import './effects/_opacity.css';
26
+ @import './effects/_shadows.css';
27
+ @import './effects/_transforms.css';
28
+
29
+ /* layout */
30
+ @import './layout/_flexbox.css';
31
+ @import './layout/_grid.css';
32
+ @import './layout/_misc.css';
33
+
34
+ /* media */
35
+ @import './media/_object-fit.css';
36
+
37
+ /* positioning */
38
+ @import './positioning/_floats.css';
39
+ @import './positioning/_inset.css';
40
+ @import './positioning/_position.css';
41
+ @import './positioning/_z-index.css';
42
+
43
+ /* sizing */
44
+ @import './sizing/_height.css';
45
+ @import './sizing/_width.css';
46
+
47
+ /* spacing */
48
+ @import './spacing/_gap.css';
49
+ @import './spacing/_margin.css';
50
+ @import './spacing/_padding.css';
51
+
52
+ /* typography */
53
+ @import './typography/_font-family.css';
54
+ @import './typography/_font-sizes.css';
55
+ @import './typography/_font-weight.css';
56
+ @import './typography/_text-alignment.css';
@@ -0,0 +1,72 @@
1
+ .float-start {
2
+ float: left !important;
3
+ }
4
+
5
+ .float-end {
6
+ float: right !important;
7
+ }
8
+
9
+ .float-none {
10
+ float: none !important;
11
+ }
12
+
13
+ @media (min-width: 576px) {
14
+ .float-sm-start {
15
+ float: left !important;
16
+ }
17
+ .float-sm-end {
18
+ float: right !important;
19
+ }
20
+ .float-sm-none {
21
+ float: none !important;
22
+ }
23
+ }
24
+
25
+ @media (min-width: 768px) {
26
+ .float-md-start {
27
+ float: left !important;
28
+ }
29
+ .float-md-end {
30
+ float: right !important;
31
+ }
32
+ .float-md-none {
33
+ float: none !important;
34
+ }
35
+ }
36
+
37
+ @media (min-width: 992px) {
38
+ .float-lg-start {
39
+ float: left !important;
40
+ }
41
+ .float-lg-end {
42
+ float: right !important;
43
+ }
44
+ .float-lg-none {
45
+ float: none !important;
46
+ }
47
+ }
48
+
49
+ @media (min-width: 1200px) {
50
+ .float-xl-start {
51
+ float: left !important;
52
+ }
53
+ .float-xl-end {
54
+ float: right !important;
55
+ }
56
+ .float-xl-none {
57
+ float: none !important;
58
+ }
59
+ }
60
+
61
+ @media (min-width: 1400px) {
62
+ .float-xxl-start {
63
+ float: left !important;
64
+ }
65
+ .float-xxl-end {
66
+ float: right !important;
67
+ }
68
+ .float-xxl-none {
69
+ float: none !important;
70
+ }
71
+ }
72
+
@@ -0,0 +1,47 @@
1
+ .top-0 {
2
+ top: 0 !important;
3
+ }
4
+
5
+ .top-50 {
6
+ top: 50% !important;
7
+ }
8
+
9
+ .top-100 {
10
+ top: 100% !important;
11
+ }
12
+
13
+ .bottom-0 {
14
+ bottom: 0 !important;
15
+ }
16
+
17
+ .bottom-50 {
18
+ bottom: 50% !important;
19
+ }
20
+
21
+ .bottom-100 {
22
+ bottom: 100% !important;
23
+ }
24
+
25
+ .start-0 {
26
+ left: 0 !important;
27
+ }
28
+
29
+ .start-50 {
30
+ left: 50% !important;
31
+ }
32
+
33
+ .start-100 {
34
+ left: 100% !important;
35
+ }
36
+
37
+ .end-0 {
38
+ right: 0 !important;
39
+ }
40
+
41
+ .end-50 {
42
+ right: 50% !important;
43
+ }
44
+
45
+ .end-100 {
46
+ right: 100% !important;
47
+ }
@@ -0,0 +1,108 @@
1
+ .fixed-top {
2
+ position: fixed;
3
+ top: 0;
4
+ right: 0;
5
+ left: 0;
6
+ z-index: 1030;
7
+ }
8
+
9
+ .fixed-bottom {
10
+ position: fixed;
11
+ right: 0;
12
+ bottom: 0;
13
+ left: 0;
14
+ z-index: 1030;
15
+ }
16
+
17
+ .sticky-top {
18
+ position: sticky;
19
+ top: 0;
20
+ z-index: 1020;
21
+ }
22
+
23
+ .sticky-bottom {
24
+ position: sticky;
25
+ bottom: 0;
26
+ z-index: 1020;
27
+ }
28
+
29
+ @media (min-width: 576px) {
30
+ .sticky-sm-top {
31
+ position: sticky;
32
+ top: 0;
33
+ z-index: 1020;
34
+ }
35
+ .sticky-sm-bottom {
36
+ position: sticky;
37
+ bottom: 0;
38
+ z-index: 1020;
39
+ }
40
+ }
41
+ @media (min-width: 768px) {
42
+ .sticky-md-top {
43
+ position: sticky;
44
+ top: 0;
45
+ z-index: 1020;
46
+ }
47
+ .sticky-md-bottom {
48
+ position: sticky;
49
+ bottom: 0;
50
+ z-index: 1020;
51
+ }
52
+ }
53
+ @media (min-width: 992px) {
54
+ .sticky-lg-top {
55
+ position: sticky;
56
+ top: 0;
57
+ z-index: 1020;
58
+ }
59
+ .sticky-lg-bottom {
60
+ position: sticky;
61
+ bottom: 0;
62
+ z-index: 1020;
63
+ }
64
+ }
65
+ @media (min-width: 1200px) {
66
+ .sticky-xl-top {
67
+ position: sticky;
68
+ top: 0;
69
+ z-index: 1020;
70
+ }
71
+ .sticky-xl-bottom {
72
+ position: sticky;
73
+ bottom: 0;
74
+ z-index: 1020;
75
+ }
76
+ }
77
+ @media (min-width: 1400px) {
78
+ .sticky-xxl-top {
79
+ position: sticky;
80
+ top: 0;
81
+ z-index: 1020;
82
+ }
83
+ .sticky-xxl-bottom {
84
+ position: sticky;
85
+ bottom: 0;
86
+ z-index: 1020;
87
+ }
88
+ }
89
+
90
+ .position-static {
91
+ position: static !important;
92
+ }
93
+
94
+ .position-relative {
95
+ position: relative !important;
96
+ }
97
+
98
+ .position-absolute {
99
+ position: absolute !important;
100
+ }
101
+
102
+ .position-fixed {
103
+ position: fixed !important;
104
+ }
105
+
106
+ .position-sticky {
107
+ position: sticky !important;
108
+ }
@@ -0,0 +1,19 @@
1
+ .z-n1 {
2
+ z-index: -1 !important;
3
+ }
4
+
5
+ .z-0 {
6
+ z-index: 0 !important;
7
+ }
8
+
9
+ .z-1 {
10
+ z-index: 1 !important;
11
+ }
12
+
13
+ .z-2 {
14
+ z-index: 2 !important;
15
+ }
16
+
17
+ .z-3 {
18
+ z-index: 3 !important;
19
+ }
@@ -0,0 +1,31 @@
1
+ .h-25 {
2
+ height: 25% !important;
3
+ }
4
+
5
+ .h-50 {
6
+ height: 50% !important;
7
+ }
8
+
9
+ .h-75 {
10
+ height: 75% !important;
11
+ }
12
+
13
+ .h-100 {
14
+ height: 100% !important;
15
+ }
16
+
17
+ .h-auto {
18
+ height: auto !important;
19
+ }
20
+
21
+ .mh-100 {
22
+ max-height: 100% !important;
23
+ }
24
+
25
+ .vh-100 {
26
+ height: 100vh !important;
27
+ }
28
+
29
+ .min-vh-100 {
30
+ min-height: 100vh !important;
31
+ }
@@ -0,0 +1,31 @@
1
+ .w-25 {
2
+ width: 25% !important;
3
+ }
4
+
5
+ .w-50 {
6
+ width: 50% !important;
7
+ }
8
+
9
+ .w-75 {
10
+ width: 75% !important;
11
+ }
12
+
13
+ .w-100 {
14
+ width: 100% !important;
15
+ }
16
+
17
+ .w-auto {
18
+ width: auto !important;
19
+ }
20
+
21
+ .mw-100 {
22
+ max-width: 100% !important;
23
+ }
24
+
25
+ .vw-100 {
26
+ width: 100vw !important;
27
+ }
28
+
29
+ .min-vw-100 {
30
+ min-width: 100vw !important;
31
+ }