@obosbbl/grunnmuren-tailwind 0.8.3 → 0.8.4
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 +2 -2
- package/tailwind-base.cjs +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obosbbl/grunnmuren-tailwind",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Grunnmuren Tailwind preset",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"tailwindcss": "3.2.4",
|
|
23
|
-
"postcss": "8.4.
|
|
23
|
+
"postcss": "8.4.19"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"tailwindcss": "^3.2"
|
package/tailwind-base.cjs
CHANGED
|
@@ -116,10 +116,13 @@ const radio = plugin(function ({ addComponents, theme }) {
|
|
|
116
116
|
borderRadius: '50%',
|
|
117
117
|
border: `2px solid ${theme('colors.gray.dark')}`,
|
|
118
118
|
cursor: 'pointer',
|
|
119
|
-
marginRight: '0.75rem',
|
|
120
119
|
// use grid to handle the checked:before styles
|
|
121
120
|
display: 'inline-grid',
|
|
122
121
|
placeContent: 'center',
|
|
122
|
+
// Prevent flex container from altering the size of the radio button
|
|
123
|
+
flex: '0 0 auto',
|
|
124
|
+
// magic number that tries to keep the input horizontally centered in relation to the first line of the label text
|
|
125
|
+
transform: 'translateY(0.095em)',
|
|
123
126
|
'&:checked': {
|
|
124
127
|
borderColor: theme('colors.green.DEFAULT'),
|
|
125
128
|
},
|