forked from phc/website
style changes
This commit is contained in:
+90
-1
@@ -75,7 +75,7 @@ Controls - for things like buttons, input, select
|
||||
input[type='text'],
|
||||
input[type='password'] {
|
||||
width: 100%;
|
||||
height: 2.5rem;
|
||||
min-height: 1.75rem;
|
||||
|
||||
/* @include neo-brutalist-card; */
|
||||
border: 3px solid #222;
|
||||
@@ -89,6 +89,95 @@ Controls - for things like buttons, input, select
|
||||
}
|
||||
}
|
||||
|
||||
input[type='checkbox'] {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
|
||||
width: calc(1.5rem + 1px);
|
||||
height: calc(1.5rem + 1px);
|
||||
|
||||
background: #fff;
|
||||
border: 3px solid #222;
|
||||
border-radius: 4px;
|
||||
box-shadow: 3px 3px 0 0 #222;
|
||||
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
transition: all 64ms linear;
|
||||
|
||||
&:hover {
|
||||
transform: translate(-1px, -1px);
|
||||
box-shadow: 4px 4px 0 0 #222;
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translate(1px, 1px);
|
||||
box-shadow: 2px 2px 0 0 #222;
|
||||
}
|
||||
|
||||
&:checked {
|
||||
background: #1e6733;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
width: 0.8rem;
|
||||
height: 0.8rem;
|
||||
background: #1e6733;
|
||||
|
||||
clip-path: polygon(10% 55%, 35% 75%, 85% 25%, 90% 35%, 40% 95%, 5% 60%);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #2b8b47;
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
background: #eee;
|
||||
border-color: #888;
|
||||
box-shadow: 3px 3px 0 0 #888;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover {
|
||||
transform: none;
|
||||
box-shadow: 3px 3px 0 0 #888;
|
||||
}
|
||||
|
||||
&:checked {
|
||||
background: #aaa;
|
||||
|
||||
&::after {
|
||||
background: #666;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.star {
|
||||
&:checked::after {
|
||||
background: rgb(255, 197, 49);
|
||||
clip-path: polygon(
|
||||
50% 0%,
|
||||
61% 35%,
|
||||
98% 35%,
|
||||
68% 57%,
|
||||
79% 91%,
|
||||
50% 70%,
|
||||
21% 91%,
|
||||
32% 57%,
|
||||
2% 35%,
|
||||
39% 35%
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
form {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
|
||||
Reference in New Issue
Block a user