site-libsoc/Server/app/svelte/public/css/common.css

540 lines
8.8 KiB
CSS
Raw Normal View History

2023-06-15 01:41:54 +07:00
:root {
2023-07-30 17:04:15 +07:00
--red:#c52a28;
--gray: #5B6970;
2023-07-03 03:07:45 +07:00
--sans-serif: "OpenSans";
--serif: "Lora";
2023-06-15 01:41:54 +07:00
}
svg {
width: auto;
height: auto;
}
:not(svg *) {
margin: 0;
padding: 0;
box-sizing: border-box;
border: none;
font-size: 0;
}
html {
overflow-x: hidden;
font-size: 16px;
}
body {
position: relative;
min-height: 100vh;
max-width: 100vw;
overflow: hidden;
background: white;
}
#content {
position: relative;
2023-07-30 17:04:15 +07:00
display: grid;
grid-template-rows: max-content auto max-content;
2023-06-15 01:41:54 +07:00
height: 100%;
min-height: 100vh;
}
/*---Fonts---------------------------------------------------------*/
@font-face {
2023-07-03 03:07:45 +07:00
font-family: 'OpenSans';
2023-06-15 01:41:54 +07:00
font-weight: 400;
font-style: normal;
font-display: swap;
src: /*local('Space Grotesk Light'),
local('SpaceGroteskLight-Regular'),
local('Space Grotesk Light Regular'), */
2023-07-03 03:07:45 +07:00
url('/fonts/OpenSans/opensans.woff2') format('woff2'),
url('/fonts/OpenSans/opensans.woff') format('woff');
2023-06-15 01:41:54 +07:00
}
@font-face {
2023-07-03 03:07:45 +07:00
font-family: 'Lora';
2023-06-15 01:41:54 +07:00
font-weight: 400;
font-style: normal;
font-display: swap;
2023-07-03 03:07:45 +07:00
src:
2023-08-17 18:30:35 +07:00
url('/fonts/LoraSerif/Lora-Regular.woff2') format('woff'),
url('/fonts/LoraSerif/Lora-Regular.woff') format('woff'),
url('/fonts/LoraSerif/Lora-Regular.ttf') format('ttf');
2023-06-15 01:41:54 +07:00
}
.serif {
font-family: var(--serif)
}
.sans-serif {
font-family: var(--sans-serif)
}
/*---Text related------------------------------------------------------------------------------*/
b {
font-family: inherit;
font-size: inherit;
}
h1 {
font-family: var(--sans-serif, sans-serif);
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-15 01:41:54 +07:00
}
h2 {
2023-06-28 21:17:51 +07:00
font-size: 1.7rem;
2023-06-15 01:41:54 +07:00
font-family: var(--sans-serif, sans-serif);
font-weight: bold;
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-15 01:41:54 +07:00
}
h3 {
font-family: var(--sans-serif, sans-serif);
2023-06-28 18:00:41 +07:00
font-size: 1.5rem;
color: #222222;
2023-06-15 01:41:54 +07:00
}
h4 {
font-family: var(--sans-serif, sans-serif);
2023-06-28 18:00:41 +07:00
font-size: 1.3rem;
color: #222222;
2023-06-15 01:41:54 +07:00
}
span {
font-family: var(--serif, serif);
2023-07-03 03:07:45 +07:00
font-size: 1.15rem;
2023-06-15 01:41:54 +07:00
height: auto;
width: auto;
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-15 01:41:54 +07:00
}
p {
font-family: var(--serif, serif);
2023-07-03 03:07:45 +07:00
font-size: 1.15rem;
line-height: 160%;
2023-06-28 18:00:41 +07:00
color: #222222;
}
a {
font-family: var(--serif, serif);
2023-07-03 03:07:45 +07:00
font-size: 1.15rem;
2023-06-28 18:00:41 +07:00
color: #222222;
}
li {
font-family: var(--serif, serif);
2023-07-03 03:07:45 +07:00
font-size: 1.15rem;
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-28 21:26:07 +07:00
text-align: justify;
2023-06-15 01:41:54 +07:00
}
b,i,s {
font-family: inherit;
font-size: inherit;
line-height: inherit;
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-15 01:41:54 +07:00
}
label {
font-family: var(--serif, serif);
2023-06-28 18:00:41 +07:00
font-size: 1rem;
color: #222222;
2023-06-15 01:41:54 +07:00
}
sup {
2023-06-28 18:00:41 +07:00
font-size: inherit;
2023-06-15 01:41:54 +07:00
vertical-align: top;
position: relative;
top: -0.682rem;
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-15 01:41:54 +07:00
}
sub {
2023-06-28 18:00:41 +07:00
font-size: inherit;
2023-06-15 01:41:54 +07:00
vertical-align: top;
position: relative;
top: 0.34rem;
2023-06-28 18:00:41 +07:00
color: #222222;
2023-06-15 01:41:54 +07:00
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }
a:focus { text-decoration: none; }
.justify {
text-align: justify;
}
.center {
width: 100%;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.left {
text-align: left;
}
.bold {
font-weight: bold;
}
.margin-end {
margin-bottom: 1rem;
}
.margin-end2 {
margin-bottom: 2rem;
}
.text p, .text li {
font-size: 1.2rem;
font-family: var(--serif);
line-height: 170%;
}
.text li {
margin-left: 1.5rem;
margin-bottom: 0.5rem;
line-height: 140%;
}
.text ul p {
margin-bottom: 0.25rem;
}
.text h2 {
width: max-content;
position: relative;
text-align: center;
margin: auto;
margin-bottom: 1rem;
}
.title-highlight {
position: relative;
}
.title-highlight::before {
position: absolute;
margin-left: -0.68rem;
margin-top: -0.14rem;
width: 2.5rem;
height: 0rem;
content: "";
border-left: 0.19rem solid var(--pink);
border-top: 0.19rem solid var(--pink);
border-radius: 1rem;
}
.title-highlight::after {
position: absolute;
left:0;
top: 0;
margin-left: -0.68rem;
margin-top: -0.14rem;
width: 0rem;
height: 1.7rem;
content: "";
border-left: 0.19rem solid var(--pink);
border-top: 0.19rem solid var(--pink);
border-radius: 1rem;
}
.text h3 {
margin-top: 1rem;
margin-bottom: 0.5rem;
}
.text h4 {
margin-bottom: 0.5rem;
}
.text p {
margin-bottom: 1rem;
}
.text ul>ul>li {
margin-left: 2.5rem;
margin-bottom: 0.5rem;
line-height: 140%;
}
2023-08-12 18:32:17 +07:00
font {
font-size: inherit;
font-family: inherit;
}
2023-06-15 01:41:54 +07:00
/*---Button/input related--------------------------------------------------------------*/
button {
cursor: pointer;
}
button {
background: transparent;
}
button:focus {
outline:0;
}
input[type="text"],input[type="email"],input[type="password"],input[type="number"] {
font-family: var(--serif, serif);
background-color: white;
border-radius: 0.4rem;
border-color: black;
border: black solid 0.063rem;
padding-left: 0.5rem;
font: 1.15rem var(--serif, serif);
2023-06-15 01:41:54 +07:00
}
input[type="text"] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
color: #353535;
}
input[type="email"] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
font-weight: normal;
color: #353535;
height: 2.7rem;
padding-left: 0.34rem;
}
input[type="password"] {
padding-left: 0.34rem;
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
font-weight: normal;
color: #353535;
}
input[type="number"] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
color: #353535;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
}
/*---Scroll button---------------------------------------------------------------------*/
.scroll-button {
cursor: pointer;
background-color: #EBF7FB;
border-color: #EBF7FB;
height: 3.822rem;
width: 3.822rem;
border-radius: 3.822rem;
border: 0;
margin: 0;
padding-top: 0.505rem;
}
.scroll-button img {
width: 1.9rem;
padding-bottom: 0.4rem;
height: auto;
}
.next {
padding-left: 0.382rem;
}
.prev {
padding-right: 0.382rem;
}
/*---Grid related----------------------------------------------------------------------*/
.column {
display: grid;
grid-auto-flow: column
}
.center-items {
display: flex;
justify-content: center;
}
/*---Fillers-------------------------------------------------------------------------*/
.filler1 {
width: 100%;
height: 0.655rem;
display: inline-block;
}
.filler2 {
width: 100%;
height: 1.263rem;
display: inline-block;
}
.filler3 {
width: 100%;
height: 2.525rem;
display: inline-block;
}
.filler4 {
width: 100%;
height: 3.822rem;
display: inline-block;
}
.filler5 {
width: 100%;
height: 5.05rem;
display: inline-block;
}
.filler6 {
width: 100%;
height: 6.347rem;
display: inline-block;
}
/*---Margins------------------------------------------------------------------------*/
.bmargin1 {
margin-bottom: 0.5rem
}
.bmargin2 {
margin-bottom: 1rem
}
.bmargin3 {
margin-bottom: 1.5rem
}
.tmargin1 {
margin-top: 0.5rem
}
.tmargin2 {
margin-top: 1rem
}
.tmargin3 {
margin-top: 1.5rem
}
/*---Other-------------------------------------------------------------------------*/
.flex-column {
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
.flex-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.pane {
background: white;
2023-07-30 17:04:15 +07:00
border: 0.1rem solid rgb(187, 187, 187);
2023-06-15 01:41:54 +07:00
border-radius: 0.635rem;
}
.pane-container {
margin-top: min(3vw, 1rem);
margin-bottom: 3.1rem;
display: grid;
grid-auto-flow: column;
column-gap: 5rem;
}
.pane-centering {
display: flex;
justify-content: center;
}
.main-pane {
position: relative;
margin: auto;
height: min-content;
max-width: 66rem;
width: 66rem;
z-index: 1;
}
.clicked {
background-color: hsla(344, 73%, 57%, 0.25);
}
@media only screen and (max-width: 1117px) {
.main-pane {
width: 100%;
}
}
/*---Scaling-----------------------------------------------------------------------*/
html {
font-size: 16px;
}
@media only screen and (max-width: 660px) {
html {
2023-06-27 03:14:59 +07:00
font-size: 15px;
2023-06-15 01:41:54 +07:00
}
}
@media only screen and (max-width: 570px) {
html {
2023-06-27 03:14:59 +07:00
font-size: 14.5px;
2023-06-15 01:41:54 +07:00
}
}
2023-06-27 03:14:59 +07:00
2023-06-15 01:41:54 +07:00
@media only screen and (max-width: 470px) {
html {
2023-06-27 03:14:59 +07:00
font-size: 14px;
2023-06-15 01:41:54 +07:00
}
}
@media only screen and (max-width: 400px) {
html {
2023-06-27 03:14:59 +07:00
font-size: 13.5px;
2023-06-15 01:41:54 +07:00
}
}
@media only screen and (max-width: 360px) {
html {
2023-06-27 03:14:59 +07:00
font-size: 13px;
2023-06-15 01:41:54 +07:00
}
2023-06-27 03:14:59 +07:00
}