scss: move _basic to root

This commit is contained in:
Reorx 2023-02-08 23:19:07 +08:00
parent 47da5ace24
commit 23d50dab87
5 changed files with 34 additions and 38 deletions

View File

@ -1,5 +1,29 @@
/* basic elements */ /* basic elements and shared styles */
@use '../vars'; @use 'vars';
html,
body * {
font-family: var(--font-default);
}
html, body {
margin: 0;
padding: 0;
}
.logo {
font-weight: 700;
user-select: none;
a {
color: inherit;
}
.t-jsoncv {
display: inline-block; border: 1px solid #aaa; padding: 2px 4px;
}
.t-json {
color: #aaa;
}
}
input[type=text], input[type=text],
input[type=email] { input[type=email] {

View File

@ -1,23 +0,0 @@
/* shared styles */
@use 'vars';
html,
body * {
font-family: var(--font-default);
}
html, body {
margin: 0;
padding: 0;
}
.logo {
font-weight: 700;
user-select: none;
.t-jsoncv {
display: inline-block; border: 1px solid #aaa; padding: 2px 4px;
}
.t-json {
color: #aaa;
}
}

View File

@ -35,8 +35,8 @@
background-color: var(--grey-0); background-color: var(--grey-0);
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 2px; border-radius: 2px;
padding: 0px 8px; padding: 3px 8px;
line-height: 22px; // line-height: 22px;
&:hover { &:hover {
background-color: var(--grey-1); background-color: var(--grey-1);

View File

@ -1,6 +1,5 @@
@use 'basic'; @use '../basic';
@use 'json-editor'; @use 'json-editor';
@use '../shared';
button { button {
font-size: 13px; font-size: 13px;

View File

@ -1,5 +1,5 @@
@use 'vars'; @use 'vars';
@use 'shared'; @use 'basic';
html, body { html, body {
height: 100vh; height: 100vh;
@ -25,6 +25,10 @@ main {
footer { footer {
margin-top: var(--gap2); margin-top: var(--gap2);
color: var(--color-text-dim); color: var(--color-text-dim);
svg {
vertical-align: bottom;
}
} }
} }
@ -32,11 +36,3 @@ a {
color: #333; color: #333;
text-decoration: underline; text-decoration: underline;
} }
button {
@include vars.normal-button;
}
svg {
vertical-align: bottom;
}