Init
This commit is contained in:
143
src/styles/base.css
Normal file
143
src/styles/base.css
Normal file
@ -0,0 +1,143 @@
|
||||
:root {
|
||||
--background-color: #fff;
|
||||
--font-color: #000;
|
||||
--font-color-lighter: rgb(87, 89, 88);
|
||||
--font-size-main: 3.045rem;
|
||||
--font-size-description: 1.245rem;
|
||||
--lineheight-description: 1.845rem;
|
||||
--box-color: #f2f2f2;
|
||||
--working-color: #137333;
|
||||
--working-color-background: #e6f4ea;
|
||||
--error-color-background: #fce8e6;
|
||||
--error-color: #c5221f;
|
||||
--working-with-error-color: #b05a00;
|
||||
--working-with-error-color-background: #fef7e0;
|
||||
--linear-start-color: #f37335;
|
||||
--linear-end-color: #ff4200fc;
|
||||
--icon-size: 48px;
|
||||
}
|
||||
|
||||
h2,
|
||||
h1 {
|
||||
font-family: "Google Sans", Roboto, Noto Sans SC, sans-serif;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--linear-start-color),
|
||||
var(--linear-end-color)
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
div,
|
||||
p {
|
||||
font-family: Roboto, Noto Sans SC, sans-serif;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 6rem 5vw;
|
||||
font-family: Roboto, Noto Sans SC, sans-serif;
|
||||
color: var(--font-color);
|
||||
background-color: var(--background-color);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #1967d2;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
body {
|
||||
margin: 6rem 2vw;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-size-main: 2.5rem;
|
||||
--font-size-description: 1.045rem;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Fira Mono, monospace;
|
||||
}
|
||||
|
||||
none {
|
||||
display: none;
|
||||
}
|
||||
|
||||
icon {
|
||||
vertical-align: middle;
|
||||
font-size: 48px;
|
||||
font-family: "Material Icons Outlined";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-feature-settings: "liga";
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
background {
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
float: right;
|
||||
position: absolute;
|
||||
min-width: 100%;
|
||||
min-height: 75vh;
|
||||
background-size: cover;
|
||||
background-image: url(https://storage.186526.xyz/home-app/assets/background.png);
|
||||
z-index: -1;
|
||||
border-radius: 0 0 15px 15px;
|
||||
filter: blur(0.2px);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--font-color: #e8eaed;
|
||||
--font-color-lighter: #9aa0a6;
|
||||
--background-color: #121212;
|
||||
--box-color: rgb(40 40 40 / 73%);
|
||||
--working-color-background: rgba(129, 201, 149, 0.24);
|
||||
--error-color-background: rgba(242, 139, 130, 0.24);
|
||||
--working-with-error-color-background: rgba(253, 214, 99, 0.24);
|
||||
--working-color: #81c995;
|
||||
--error-color: #f28b82;
|
||||
--working-with-error-color: #fdd663;
|
||||
--linear-start-color: #0c8cca;
|
||||
--linear-end-color: #00bdff;
|
||||
}
|
||||
|
||||
background {
|
||||
filter: brightness(50%);
|
||||
}
|
||||
}
|
||||
|
||||
tooltiptext {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
font-family: "Google Sans", Roboto, Noto Sans SC, sans-serif;
|
||||
width: 120px;
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 5px 0;
|
||||
border-radius: 6px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.6s;
|
||||
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
:hover > tooltiptext {
|
||||
display: block;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
65
src/styles/contents.css
Normal file
65
src/styles/contents.css
Normal file
@ -0,0 +1,65 @@
|
||||
contents {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
top: 75vh;
|
||||
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
}
|
||||
|
||||
contents > group {
|
||||
display: flex;
|
||||
margin: 2.5vh 0;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
card {
|
||||
display: flex;
|
||||
background-color: var(--box-color);
|
||||
padding: 2rem;
|
||||
min-height: 3rem;
|
||||
border-radius: 10px;
|
||||
flex-grow: 1;
|
||||
margin-top: 1rem;
|
||||
margin-right: 0.5rem;
|
||||
margin-left: 0.5rem;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
card > a > img {
|
||||
max-height: 48px;
|
||||
max-width: 48px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
group#friend > card > a > img {
|
||||
max-height: 48px;
|
||||
max-width: 48px;
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
group#footer {
|
||||
display: block;
|
||||
margin: 0vh 2.5vw;
|
||||
align-self: flex-start;
|
||||
color: var(--font-color-lighter);
|
||||
font-size: calc(var(--font-size-description) - 0.4rem);
|
||||
}
|
||||
|
||||
group#footer > * {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
card#github > a > img {
|
||||
filter: invert(100%);
|
||||
}
|
||||
}
|
||||
66
src/styles/header.css
Normal file
66
src/styles/header.css
Normal file
@ -0,0 +1,66 @@
|
||||
header > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
align-content: stretch;
|
||||
}
|
||||
|
||||
header > div h1 {
|
||||
margin-block-start: 0em;
|
||||
margin-block-end: 0em;
|
||||
font-weight: normal;
|
||||
font-size: var(--font-size-main);
|
||||
line-height: var(--font-size-main);
|
||||
}
|
||||
|
||||
header > div description {
|
||||
font-family: "Google Sans", Roboto, Noto Sans SC, sans-serif;
|
||||
font-size: var(--font-size-description);
|
||||
line-height: var(--lineheight-description);
|
||||
color: var(--font-color-lighter);
|
||||
}
|
||||
|
||||
header > div description > * {
|
||||
max-width: 32px;
|
||||
max-width: 32px;
|
||||
}
|
||||
|
||||
header {
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(15px);
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
border-radius: 15px;
|
||||
border: 10px;
|
||||
padding: 20px 40px;
|
||||
}
|
||||
|
||||
header > img {
|
||||
margin-right: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
header > * {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
header {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
/* @media screen and (max-width: 480px) {
|
||||
|
||||
|
||||
} */
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
header {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user