Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'style.css')
-rw-r--r--style.css34
1 files changed, 32 insertions, 2 deletions
diff --git a/style.css b/style.css
index 80bd232..ed68970 100644
--- a/style.css
+++ b/style.css
@@ -95,24 +95,54 @@ input {
outline: 2px solid deeppink;
}
+input + label {
+ border: 1px solid red;
+ display: none;
+}
+
input:first-of-type {
outline: none;
}
+label:first-of-type {
+ border: none;
+ display: inline;
+}
+
input:checked {
border: none;
outline: 2px solid deeppink;
}
-input:has(+ input:checked) {
+input:checked + label {
+ border: 1px solid red;
+ display: none;
+}
+
+input:has(+ label + input:checked) {
border: none;
outline: 2px solid deeppink;
}
-input[type="radio"]:checked + input {
+label:has(+ input:checked) {
+ border: 1px solid red;
+ display: none;
+}
+
+input[type="radio"]:checked + label + input {
outline: none;
}
+input:checked + label + input + label {
+ border: none;
+ display: inline;
+}
+
+input {
+ position: absolute;
+ opacity: 0;
+}
+
image#img1 {
transform: scale(3.41) rotate(-0.15deg);
/* opacity: 0.33; */