update scss

- for external an external repo
This commit is contained in:
Aliberk Sandıkçı 2024-01-03 17:44:27 +03:00
parent 764cb281d0
commit 3fc520bb02
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
6 changed files with 87 additions and 2 deletions

View file

@ -41,7 +41,7 @@
@mixin sections { @mixin sections {
margin-block-start: 10px; margin-block-start: 10px;
>.section { .section {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-self: center; align-self: center;

View file

@ -1,3 +1,4 @@
// EXTERNAL
@mixin copy{ @mixin copy{
.tooltip { .tooltip {
position: relative; position: relative;

16
assets/scss/_form.scss Normal file
View file

@ -0,0 +1,16 @@
@use "inputs" as in;
@mixin main {
display: flex;
flex-direction: column;
padding: 3%;
&.centered {
label {
text-align: center;
align-self: center;
}
}
@include in.moderncss;
}

View file

@ -5,6 +5,10 @@
align-items: center; align-items: center;
justify-content: left; justify-content: left;
&.centered {
justify-content: center;
}
padding: 0px 10px; padding: 0px 10px;
min-height: 60px; min-height: 60px;
@ -19,4 +23,10 @@
margin-top:5px; margin-top:5px;
padding:auto; padding:auto;
} }
h1.centered {
align-self: center;
margin:0px;
}
} }

52
assets/scss/_inputs.scss Normal file
View file

@ -0,0 +1,52 @@
// EXTERNAL: https://moderncss.dev/custom-css-styles-for-form-inputs-and-textareas/
@use "colors" as c;
@mixin moderncss {
*,
*::before,
*::after {
box-sizing: border-box;
}
.input {
font-size: 16px;
font-size: max(16px, 1em);
font-family: inherit;
padding: 0.25em 0.5em;
background-color: c.$text;
border: 2px solid c.$dark;
border-radius: 4px;
&:focus {
border-color: c.$light;
box-shadow: 0 0 0 3px c.$dark;
transition: 180ms box-shadow ease-in-out;
outline: 3px solid transparent;
}
// Extra
&:not(textarea) {
line-height: 1;
height: 2.25rem;
}
&[type="file"] {
font-size: 0.9em;
padding-top: 0.35rem;
}
&[readonly] {
border-style: dotted;
cursor: not-allowed;
color: #777;
}
&[disabled] {
--input-border: #ccc;
background-color: #eee;
cursor: not-allowed;
}
}
}

View file

@ -10,6 +10,8 @@
@use "article" as a; @use "article" as a;
@use "footer" as f; @use "footer" as f;
@use "form" as form;
.HIDDEN { .HIDDEN {
display: none; display: none;
} }
@ -45,6 +47,10 @@ body {
@include a.main; @include a.main;
form {
@include form.main;
}
&.plain { &.plain {
@include a.plain; @include a.plain;
} }