aboutsummaryrefslogtreecommitdiffstats
path: root/styles/main/_userForm.scss
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-09-04 11:20:34 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-09-04 11:20:34 +0200
commit6c54c9d57d5fa4c52aa454ed3ca09060b0674ad3 (patch)
tree0d236ccdf51f264cced4c8adbad24d1dba065ddf /styles/main/_userForm.scss
parenta28b952eafc83ac6f6fc1a3d99805866bc41fde9 (diff)
downloadmy_apps-6c54c9d57d5fa4c52aa454ed3ca09060b0674ad3.tar.gz
my_apps-6c54c9d57d5fa4c52aa454ed3ca09060b0674ad3.tar.bz2
my_apps-6c54c9d57d5fa4c52aa454ed3ca09060b0674ad3.zip
split scss into partials
Diffstat (limited to 'styles/main/_userForm.scss')
-rw-r--r--styles/main/_userForm.scss104
1 files changed, 104 insertions, 0 deletions
diff --git a/styles/main/_userForm.scss b/styles/main/_userForm.scss
new file mode 100644
index 0000000..5cf0653
--- /dev/null
+++ b/styles/main/_userForm.scss
@@ -0,0 +1,104 @@
+.userForm {
+ padding: 2em;
+
+ label,
+ & {
+ display: flex;
+ flex-flow: column;
+ }
+
+ label > span {
+ font-weight: 600;
+ }
+
+ input[type=email],
+ input[type=password] {
+ color: var(--color-text-alt);
+ background: var(--color-window-content);
+ padding: .5em;
+ margin: .5em 0;
+ border: 1px dashed var(--color-decor);
+ border-radius: .5px;
+ }
+
+
+ input[type=password]:nth-of-type(2) {
+ margin-top: 1em;
+ }
+
+ p {
+ text-align: center;
+ color: var(--color-error);
+ margin: 1rem 0 0;
+ }
+
+ legend {
+ font-size: .8em;
+ padding: 2em 0 1.5em;
+ }
+
+ & > fieldset:nth-of-type(1) {
+ fieldset {
+ display: inline-block;
+ }
+
+ input {
+ display: none;
+ }
+
+ label {
+ padding: 0 .75em;
+ transition: .3s color;
+ display: inline-block;
+ color: var(--color-decor);
+ margin-bottom: .5em;
+
+ &:hover {
+ color: #666;
+ }
+ }
+
+ input:checked + label {
+ font-weight: 600;
+ color: var(--color-text);
+ }
+ }
+
+ & > fieldset:nth-of-type(2) {
+ fieldset {
+ display: inline-block;
+ }
+
+ input {
+ display: none;
+ }
+
+ label {
+ width: 2em;
+ height: 2em;
+ display: inline-block;
+ margin: 0 1em 1em;
+ outline-offset: 4px;
+ }
+
+ fieldset:nth-of-type(1) label {
+ background-color: #53e3a6;
+ }
+
+ fieldset:nth-of-type(2) label {
+ background-color: #2986b3;
+ }
+
+ fieldset:nth-of-type(3) label {
+ background-color: #000;
+ }
+
+ input:checked + label {
+ outline: 3px solid var(--color-window-buttons);
+ }
+ }
+
+ input[type=submit] {
+ margin-top: 1.5em;
+ }
+}