formatic 0.4.0 → 0.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/assets/stylesheets/formatic/components/date.sass +9 -5
- data/app/assets/stylesheets/formatic/formatic.css +14 -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: 96c442b43352b31aa21caf5da1ebf3911bf48ab7bf3c8ded434f9c0add765458
|
|
4
|
+
data.tar.gz: c326491b2d4f2f3d6e66f5f1af3389d0b7a4d608405cc0b4912a91de8ec26614
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62a1ddd85e32c5e3073987cf9aae3799b17118e94b640a10c33531f789705eb92c8d463dca9fd3a6489d6a0b539b638c3349fd476b51f13352439336701e51c3
|
|
7
|
+
data.tar.gz: 57359dbbec57d205109cd7ba540306ae2d0bfc24b5c955d8413ff114904de14f7cc107acf592b33cdf1a930f0326a092717fd6facb2cf5ca9eb7a53131b7b07f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [0.4.1] 2026-09-14
|
|
2
|
+
|
|
3
|
+
- Clearly mark today
|
|
4
|
+
- Set text color for all link states
|
|
5
|
+
|
|
1
6
|
## [0.4.0] 2026-08-05
|
|
2
7
|
|
|
3
8
|
- `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,14 @@
|
|
|
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-image: linear-gradient(43deg, transparent 44%, colors.$paradise-pink 47%, colors.$paradise-pink 53%, transparent 53%), linear-gradient(133deg, transparent 47%, colors.$paradise-pink 47%, colors.$paradise-pink 53%, transparent 55%)
|
|
@@ -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,20 @@
|
|
|
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-image: linear-gradient(43deg, transparent 44%, rgb(240, 30, 80) 47%, rgb(240, 30, 80) 53%, transparent 53%), linear-gradient(133deg, transparent 47%, rgb(240, 30, 80) 47%, rgb(240, 30, 80) 53%, transparent 55%);
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
.c-formatic-wrapper.is-required .c-formatic-select {
|
|
@@ -182,7 +186,7 @@
|
|
|
182
186
|
}
|
|
183
187
|
.c-formatic-stepper__step {
|
|
184
188
|
display: inline-block;
|
|
185
|
-
border: 1px solid rgb(
|
|
189
|
+
border: 1px solid rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
186
190
|
vertical-align: middle;
|
|
187
191
|
padding-right: 1em;
|
|
188
192
|
padding-left: 1em;
|
|
@@ -212,7 +216,7 @@
|
|
|
212
216
|
margin-bottom: 0.8571rem;
|
|
213
217
|
}
|
|
214
218
|
.c-formatic-stepper ::placeholder {
|
|
215
|
-
color: rgb(
|
|
219
|
+
color: rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
.c-formatic-string__input.is-terminal {
|
|
@@ -299,7 +303,7 @@
|
|
|
299
303
|
position: relative;
|
|
300
304
|
vertical-align: middle;
|
|
301
305
|
transition: background 0.25s;
|
|
302
|
-
background: rgb(
|
|
306
|
+
background: rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
303
307
|
}
|
|
304
308
|
.c-formatic-toggle i:before {
|
|
305
309
|
display: block;
|
|
@@ -380,7 +384,7 @@
|
|
|
380
384
|
width: 100%;
|
|
381
385
|
outline-offset: 0;
|
|
382
386
|
outline-color: #ffd400;
|
|
383
|
-
border: 1px solid rgb(
|
|
387
|
+
border: 1px solid rgb(77.4509803922%, 77.4509803922%, 77.4509803922%);
|
|
384
388
|
height: 2em;
|
|
385
389
|
padding-top: 0.2em;
|
|
386
390
|
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;;;ACtEF;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.1
|
|
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
|