formatic 0.4.0 → 0.4.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/app/assets/stylesheets/formatic/components/date.sass +10 -5
- data/app/assets/stylesheets/formatic/formatic.css +15 -10
- data/app/assets/stylesheets/formatic/formatic.css.map +1 -1
- data/app/assets/stylesheets/formatic/tools/_link.sass +10 -0
- data/lib/formatic/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e3760b14dfc9ada06bc26e574096d2bcc2de6ea0535341b464ae0461bd42f40
|
|
4
|
+
data.tar.gz: 47ec92f48fe42b20ff6cac407bdc469ad88d59b7596f47b92fb5705c7ef3f050
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 042c1c0b08bccdebb97e1eff2c3004677e499dedba3a6a5dea9f6c0317e6794f8cc9b67f32cb21f0cbbbb4496dbce0a0d93d51922b40300ee5183301ff54d419
|
|
7
|
+
data.tar.gz: c74dc722ccc978558d690102faee42641f0d39916939f031de755f4123981af65077c039a886887688ec93c0f76b93ad477670aaa095ce782aed9a47fe63177c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [0.4.2] 2026-09-14
|
|
2
|
+
|
|
3
|
+
- Even more clearly mark today
|
|
4
|
+
|
|
5
|
+
## [0.4.1] 2026-09-14
|
|
6
|
+
|
|
7
|
+
- Clearly mark today
|
|
8
|
+
- Set text color for all link states
|
|
9
|
+
|
|
1
10
|
## [0.4.0] 2026-08-05
|
|
2
11
|
|
|
3
12
|
- `Formatic::File` now raises at render time when `attribute_name` does not exist on the model, so typos like `header_logo_for_light` (instead of the model's `header_logo_for_dark`) surface immediately instead of silently dropping the upload. The check is skipped when a manual `value:` is passed, the form builder has no object, or the object is not an ActiveModel/ActiveRecord record.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use "iglu/spacing"
|
|
4
4
|
@use "formatic/settings/colors"
|
|
5
5
|
@use "formatic/tools/terminal"
|
|
6
|
+
@use "formatic/tools/link"
|
|
6
7
|
@use "formatic/tools/mandatory"
|
|
7
8
|
|
|
8
9
|
.c-formatic-date
|
|
@@ -34,9 +35,10 @@
|
|
|
34
35
|
display: flex
|
|
35
36
|
flex-direction: column
|
|
36
37
|
justify-content: center
|
|
37
|
-
color: colors.$black
|
|
38
38
|
+spacing.margin-right--smaller
|
|
39
39
|
+spacing.padding--tiny
|
|
40
|
+
+link.states
|
|
41
|
+
color: colors.$black
|
|
40
42
|
|
|
41
43
|
&__clear
|
|
42
44
|
+font-size.large
|
|
@@ -59,12 +61,15 @@
|
|
|
59
61
|
background-color: color.adjust(#000, $lightness: 70%)
|
|
60
62
|
|
|
61
63
|
& .is-sunday
|
|
62
|
-
background-color: color.adjust(#000, $lightness:
|
|
63
|
-
|
|
64
|
+
background-color: color.adjust(#000, $lightness: 40%)
|
|
65
|
+
+link.states
|
|
66
|
+
color: colors.$white
|
|
64
67
|
|
|
65
68
|
& .is-holiday
|
|
66
|
-
|
|
69
|
+
+link.states
|
|
70
|
+
color: colors.$paradise-pink
|
|
67
71
|
|
|
68
72
|
& .is-today
|
|
69
|
-
border: 3px solid colors.$black
|
|
70
73
|
font-weight: bold
|
|
74
|
+
background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00)
|
|
75
|
+
background-size: 200% 200%
|
|
@@ -98,13 +98,12 @@
|
|
|
98
98
|
display: none;
|
|
99
99
|
}
|
|
100
100
|
.c-formatic-date__flick {
|
|
101
|
-
background-color: rgb(
|
|
101
|
+
background-color: rgb(96%, 96%, 96%);
|
|
102
102
|
text-align: center;
|
|
103
103
|
text-decoration: none;
|
|
104
104
|
display: flex;
|
|
105
105
|
flex-direction: column;
|
|
106
106
|
justify-content: center;
|
|
107
|
-
color: #222;
|
|
108
107
|
}
|
|
109
108
|
.c-formatic-date__flick {
|
|
110
109
|
margin-right: 0.5714rem;
|
|
@@ -112,6 +111,9 @@
|
|
|
112
111
|
.c-formatic-date__flick {
|
|
113
112
|
padding: 0.2857rem;
|
|
114
113
|
}
|
|
114
|
+
.c-formatic-date__flick, .c-formatic-date__flick:hover, .c-formatic-date__flick:active, .c-formatic-date__flick:visited {
|
|
115
|
+
color: #222;
|
|
116
|
+
}
|
|
115
117
|
.c-formatic-date__clear {
|
|
116
118
|
font-size: 1.0714rem;
|
|
117
119
|
}
|
|
@@ -140,18 +142,21 @@
|
|
|
140
142
|
font-size: 0.7857rem;
|
|
141
143
|
}
|
|
142
144
|
.c-formatic-date .is-saturday {
|
|
143
|
-
background-color: rgb(
|
|
145
|
+
background-color: rgb(70%, 70%, 70%);
|
|
144
146
|
}
|
|
145
147
|
.c-formatic-date .is-sunday {
|
|
146
|
-
background-color:
|
|
148
|
+
background-color: #666666;
|
|
149
|
+
}
|
|
150
|
+
.c-formatic-date .is-sunday, .c-formatic-date .is-sunday:hover, .c-formatic-date .is-sunday:active, .c-formatic-date .is-sunday:visited {
|
|
147
151
|
color: #fff;
|
|
148
152
|
}
|
|
149
|
-
.c-formatic-date .is-holiday {
|
|
153
|
+
.c-formatic-date .is-holiday, .c-formatic-date .is-holiday:hover, .c-formatic-date .is-holiday:active, .c-formatic-date .is-holiday:visited {
|
|
150
154
|
color: rgb(240, 30, 80);
|
|
151
155
|
}
|
|
152
156
|
.c-formatic-date .is-today {
|
|
153
|
-
border: 3px solid #222;
|
|
154
157
|
font-weight: bold;
|
|
158
|
+
background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
|
|
159
|
+
background-size: 200% 200%;
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
.c-formatic-wrapper.is-required .c-formatic-select {
|
|
@@ -182,7 +187,7 @@
|
|
|
182
187
|
}
|
|
183
188
|
.c-formatic-stepper__step {
|
|
184
189
|
display: inline-block;
|
|
185
|
-
border: 1px solid rgb(
|
|
190
|
+
border: 1px solid rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
186
191
|
vertical-align: middle;
|
|
187
192
|
padding-right: 1em;
|
|
188
193
|
padding-left: 1em;
|
|
@@ -212,7 +217,7 @@
|
|
|
212
217
|
margin-bottom: 0.8571rem;
|
|
213
218
|
}
|
|
214
219
|
.c-formatic-stepper ::placeholder {
|
|
215
|
-
color: rgb(
|
|
220
|
+
color: rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
216
221
|
}
|
|
217
222
|
|
|
218
223
|
.c-formatic-string__input.is-terminal {
|
|
@@ -299,7 +304,7 @@
|
|
|
299
304
|
position: relative;
|
|
300
305
|
vertical-align: middle;
|
|
301
306
|
transition: background 0.25s;
|
|
302
|
-
background: rgb(
|
|
307
|
+
background: rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
303
308
|
}
|
|
304
309
|
.c-formatic-toggle i:before {
|
|
305
310
|
display: block;
|
|
@@ -380,7 +385,7 @@
|
|
|
380
385
|
width: 100%;
|
|
381
386
|
outline-offset: 0;
|
|
382
387
|
outline-color: #ffd400;
|
|
383
|
-
border: 1px solid rgb(
|
|
388
|
+
border: 1px solid rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
384
389
|
height: 2em;
|
|
385
390
|
padding-top: 0.2em;
|
|
386
391
|
padding-right: 0.4em;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["generics/flip.sass","components/wrapper.sass","../../../../node_modules/iglu/iglu/font-size/tools/_sizing.sass","../../../../node_modules/iglu/iglu/spacing/tools/_margin.sass","settings/_colors.sass","components/checklist.sass","components/date.sass","tools/_mandatory.sass","../../../../node_modules/iglu/iglu/spacing/tools/_padding_immediate.sass","tools/_terminal.sass","tools/_cloud.sass","components/stepper.sass","components/time.sass","components/toggle.sass","utilities/container.sass","scopes/form.sass","tools/_theme.sass"],"names":[],"mappings":"AAAA;EACE;IACE;;;ACGJ;EACE;EACA;EACA;EACA;;ACGD;EACE;;ACiED;EACE;;AFlEF;EACE;;AAGA;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AAEJ;EAEE;;AAEF;EACE,OGpBY;;AHsBZ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;;AE8BF;EACE;;AD/DH;EACE;;ADmCD;EACE;EACA;EACA;;;AAEJ;EACE;IACE;IACA;IACA;IACA;;;AIlDJ;EACE;EACA;;;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["generics/flip.sass","components/wrapper.sass","../../../../node_modules/iglu/iglu/font-size/tools/_sizing.sass","../../../../node_modules/iglu/iglu/spacing/tools/_margin.sass","settings/_colors.sass","components/checklist.sass","components/date.sass","tools/_mandatory.sass","../../../../node_modules/iglu/iglu/spacing/tools/_padding_immediate.sass","tools/_link.sass","tools/_terminal.sass","tools/_cloud.sass","components/stepper.sass","components/time.sass","components/toggle.sass","utilities/container.sass","scopes/form.sass","tools/_theme.sass"],"names":[],"mappings":"AAAA;EACE;IACE;;;ACGJ;EACE;EACA;EACA;EACA;;ACGD;EACE;;ACiED;EACE;;AFlEF;EACE;;AAGA;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AAEJ;EAEE;;AAEF;EACE,OGpBY;;AHsBZ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;;AE8BF;EACE;;AD/DH;EACE;;ADmCD;EACE;EACA;EACA;;;AAEJ;EACE;IACE;IACA;IACA;IACA;;;AIlDJ;EACE;EACA;;;ACQA;EACE;EACA;EACA;;AH6DF;EACE;;AIxEF;EACE,mBHCY;EGAZ;;ADeF;EACE;EAEA;EACA;EACA;EACA;;AACA;EACE;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;;AHIF;EACE;;AKnCF;EACE;;ACNF;EHuCI,OFtCE;;AFcP;EACE;;AMHD;EACE;;ANHH;EACE;;AQZD;EACE;;AJgDF;EACE;;AJ/CH;EACE;;AIiDD;EACE;;AItDF;EACE;;AREH;EACE;;AIsDD;EACE;;AAEF;EACE;;AG9DF;EHgEI,OF9DE;;AKFN;EHoEI,OFhEU;;AEkEd;EACE;EACA;EACA;;;ACvEF;EACE,mBHCY;EGAZ;;AIJF;EAGE;EACA;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;;ACXJ;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AVIH;EACE;;AUFD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AVhBH;EACE;;ACyDD;EACE;;ASvCF;EACE,OR3BU;;;AMTZ;EACE;;ACDF;EAGE;EACA;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AJbF;EACE,mBHCY;EGAZ;;;AIJF;EAGE;EACA;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AJbF;EACE,mBHCY;EGAZ;;;AMCF;EACE;EACA;EACA;;AViEF;EACE;;AIxEF;EACE,mBHCY;EGAZ;;;AOFJ;EAGE;EACA;EACA;;AZID;EACE;;AYFD;EACE;EAGA;EACA;;AAEA;EACE;;AZXL;EACE;;AYaD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YVrBU;;AUuBV;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBVvCE;EUwCF;;AAGJ;EACE;EACA;;AAGA;EACE,kBV7CO;;AU+CP;EACE,kBVlDQ;;AUqDZ;EACE;EACA,kBVzDE;;AU4DJ;EACE;;AACF;EACE;;AAGF;EACE;;AACF;EACE;;AAGJ;EACE;EACA;EACA;EACA;;AAGF;AAAA;EAEE;EACA;EACA,OV7EW;;AFLd;AAAA;EACE;;AYsFD;EACE;EACA;EACA;;;AC9FJ;EACE;;;ACKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EASE;EACA;EACA;EACA;EACA;EACA,eZdU;EYeV;EACA;EACA;EACA;EACA;EACA;EACA;;AdfH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AKVD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE,mBHCY;EGAZ;;AS4BF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;;;AC3CF;ED+CE;IACE","file":"formatic.css"}
|
data/lib/formatic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: formatic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- halo
|
|
@@ -163,6 +163,7 @@ files:
|
|
|
163
163
|
- app/assets/stylesheets/formatic/scopes/form.sass
|
|
164
164
|
- app/assets/stylesheets/formatic/settings/_colors.sass
|
|
165
165
|
- app/assets/stylesheets/formatic/tools/_cloud.sass
|
|
166
|
+
- app/assets/stylesheets/formatic/tools/_link.sass
|
|
166
167
|
- app/assets/stylesheets/formatic/tools/_mandatory.sass
|
|
167
168
|
- app/assets/stylesheets/formatic/tools/_terminal.sass
|
|
168
169
|
- app/assets/stylesheets/formatic/tools/_theme.sass
|