scim-docs/themes/Indiiie/static/css/style.css

798 lines
13 KiB
CSS
Raw Normal View History

2024-08-29 10:10:19 +00:00
/****************************/
/* GENERAL */
/****************************/
2024-08-29 21:46:48 +00:00
/* GLOBAL */
2024-08-29 10:10:19 +00:00
:root {
width: 100%;
scroll-behavior: smooth;
--black:#102a2d;
--black-dark:#102a2d;
--white:#FFFDEA;
--yellow:#FFF468;
--yellow-dark:#FCBC3F;
--green:#D5E052;
--green-dark:#82AD29;
--blue-1: hsl(183, 90%, 85%);
--blue-1-dark:#06e5fe;
--blue-2:#3FC2D1;
--blue-2-dark:#0097BC;
--paper-color:var(--black);
--text-color:var(--white);
--marked-color:var(--yellow);
--marked-color-dark:var(--yellow-dark);
--second-marked-color:var(--blue-2);
color:var(--text-color);
background-color:var(--paper-color);
fill: var(--text-color);
height: inherit;
width: inherit;
font-size: 100%;
font-family: 'Source Code Pro';
}
p:not(:has(img)), ul, li, mark{
2024-10-03 19:43:59 +00:00
font-size: clamp(.875rem, 3.75vw, 1.1rem);
2024-08-29 10:10:19 +00:00
max-width: 36em;
2024-09-17 20:40:14 +00:00
font-weight: normal;
2024-08-29 10:10:19 +00:00
}
body{
margin:0;
}
/* TYPO */
@font-face {
font-family: 'Source Code Pro';
src: url("../fonts/SourceCodePro-Regular.ttf") format('truetype');
2024-09-17 20:40:14 +00:00
font-weight: normal;
font-display: swap;
2024-08-29 10:10:19 +00:00
}
@font-face {
font-family: 'Source Code Pro';
src: url("../fonts/SourceCodePro-Italic.ttf") format('truetype');
2024-09-17 20:40:14 +00:00
font-weight: normal;
2024-08-29 10:10:19 +00:00
font-style: italic;
2024-09-17 20:40:14 +00:00
font-display: swap;
2024-08-29 10:10:19 +00:00
}
@font-face {
font-family: 'Source Code Pro';
src: url("../fonts/SourceCodePro-SemiBold.ttf") format('truetype');
font-weight: 500;
2024-09-17 20:40:14 +00:00
font-display: swap;
2024-08-29 10:10:19 +00:00
}
@font-face {
font-family: 'Source Code Pro';
src: url("../fonts/SourceCodePro-Black.ttf") format('truetype');
font-weight: 1000;
2024-09-17 20:40:14 +00:00
font-display: swap;
2024-08-29 10:10:19 +00:00
}
2024-08-29 21:46:48 +00:00
/* TEXT */
2024-08-29 10:10:19 +00:00
h1{
2024-10-03 19:43:59 +00:00
font-size: 2.1em;
2024-08-29 10:10:19 +00:00
font-weight: 1000;
max-width: 16em;
padding: 0;
margin: 0;
width: fit-content;
text-align: center;
margin-bottom:1.2em;
}
h2{
2024-10-03 19:43:59 +00:00
font-size: 1.5em;
2024-08-29 10:10:19 +00:00
text-transform: uppercase;
font-weight: 1000;
2024-10-03 19:43:59 +00:00
text-align: center;
2024-08-29 10:10:19 +00:00
padding: 0;
margin: 0;
margin-bottom: .5em;
border-bottom: 3px solid var(--marked-color-dark);
}
h3{
font-size: 1.8em;
font-weight: 1000;
margin-top: 4rem;
}
h3:first-of-type{
margin-top: 0rem;
}
h3 .first-word{
color: var(--marked-color);
font-style: normal;
}
h4{
padding: .3em .3em;
border-radius: 2px;
background-color: var(--marked-color);
color: var(--paper-color);
margin-bottom: 0;
2024-10-03 19:43:59 +00:00
font-size: 1em;
2024-08-29 10:10:19 +00:00
font-weight: 500;
margin-top: 3em;
width: fit-content;
}
strong{
font-weight: 1000;
}
mark{
font-weight: 1000;
font-size: 1.2em;
line-height: 1.25em;
background-color: inherit;
color: inherit;
}
2024-09-17 21:14:22 +00:00
.marked-color{
color: var(--marked-color);
}
2024-08-29 10:10:19 +00:00
mark strong{
font-weight: 1000;
color: var(--marked-color);
text-shadow: none;
}
2024-08-29 21:46:48 +00:00
2024-08-29 10:10:19 +00:00
span.mark{
2024-09-17 20:40:14 +00:00
font-weight: normal;
2024-08-29 10:10:19 +00:00
background-color: var(--marked-color);
color: var(--paper-color);
line-height: 1.35em;
padding: 0 .25em;
font-size: .8em;
}
ul{
padding-left: 1em;
margin-bottom: 1em;
}
li{
padding-left: .25em;
margin-top: 0.5em;
max-width: 32em;
}
2024-08-29 21:46:48 +00:00
figcaption{
font-family: 'Courier New', Courier, monospace;
font-size: 1em;
line-height: 1.5em;
2024-08-29 10:10:19 +00:00
}
2024-08-29 21:46:48 +00:00
/* LINK */
2024-10-03 19:43:59 +00:00
a{color: inherit;cursor:default;font-size: inherit;}
2024-08-29 10:10:19 +00:00
a:not(.btn):not(.active):hover{
color: var(--marked-color);
cursor: pointer;
text-decoration: underline!important;
}
2024-08-29 21:46:48 +00:00
/* SVG */
2024-08-29 10:10:19 +00:00
svg{
height: auto;
}
.fill-second-color{
fill: var(--second-marked-color);
}
.fill-marked-color{
fill: var(--marked-color);
}
2024-08-29 21:46:48 +00:00
/* Arrow */
2024-08-29 10:10:19 +00:00
.arrow svg{
width: 1.2em;
height: auto;
}
2024-08-29 21:46:48 +00:00
.arrow-left svg{
2024-08-29 10:10:19 +00:00
transform: rotate(180deg);
}
.arrow-up svg{
transform: rotate(-90deg);
}
2024-08-29 21:46:48 +00:00
.arrow-down svg{
2024-08-29 10:10:19 +00:00
transform: rotate(90deg);
}
2024-08-29 21:46:48 +00:00
/* BUTTON */
2024-08-29 10:10:19 +00:00
.btn, button{
text-decoration: inherit;
font-weight: bolder;
font-size: 1.15rem;
2024-10-03 19:43:59 +00:00
padding: 1% 2.5%;
2024-08-29 10:10:19 +00:00
border-radius: 2px;
border: 2px solid var(--paper-color);
2024-10-03 19:43:59 +00:00
margin-bottom: .5em;
2024-08-29 10:10:19 +00:00
}
.btn:not(.active):hover{
transform:translateY(-2px) scale(1.01);
2024-08-29 21:46:48 +00:00
transition: 0.35s;
2024-08-29 10:10:19 +00:00
cursor: pointer;
}
.btn.lv1{
fill: var(--paper-color);
color: var(--paper-color);
background-color: var(--text-color);
box-shadow: 3px 3px 0px var(--marked-color);
}
.btn.lv1:not(.active):hover{
background: var(--marked-color);
box-shadow: 3px 3px 0px var(--text-color);
}
.btn.lv2{
border: 2px solid var(--text-color);
background-color: var(--paper-color);
color: var(--text-color);
}
.btn.lv2:not(.active):hover{
border: 2px solid var(--marked-color);
color: var(--marked-color);
box-shadow: 3px 3px 0px var(--marked-color);
}
.btn.active{
background-color: var(--marked-color);
color: var(--paper-color);
border: 2px solid var(--marked-color);
box-shadow: none;
}
2024-08-29 21:46:48 +00:00
/* TO USE CLASSES */
.flex{
display: flex;
flex-direction: column;
align-items: start;
}
.flex-row{
display: flex;
flex-direction: row;
align-items: start;
flex-wrap: wrap;
}
.align-center{
align-items: center;
}
.space-between{
justify-content: space-between;
}
.baseline{
align-items: baseline;
}
2024-10-03 19:43:59 +00:00
.w-100{
width: 100%;
}
.w-80{
width: 83%;
}
img{
2024-08-29 21:46:48 +00:00
width: 100%;
2024-10-03 19:43:59 +00:00
max-width: 720px;
}
picture{
width: 100%;
display: flex;
justify-content: center;
2024-08-29 21:46:48 +00:00
}
.float-right{
float: right;
margin-left: 2em;
width: 40%;
}
.float-left{
float: left;
margin-right: 2em;
width: 40%;
}
.underline{
text-decoration: underline;
}
.blue-1{
--marked-color:var(--blue-1);
--marked-color-dark:var(--blue-1-dark);
}
.blue-2{
--marked-color:var(--blue-2);
--marked-color-dark:var(--blue-2-dark);
}
.white{
--marked-color:var(--white);
--marked-color-dark:var(--yellow-dark);
}
.green{
--marked-color:var(--green);
--marked-color-dark:var(--green-dark);
}
.yellow{
--marked-color:var(--yellow);
--marked-color-dark:var(--yellow-dark);
}
.bck-marked{
background-color: var(--marked-color);
color: var(--black);
}
2024-08-29 10:10:19 +00:00
/****************************/
2024-08-29 21:46:48 +00:00
/* HEADER */
2024-08-29 10:10:19 +00:00
/****************************/
header{
width: 100%;
top: 0;
2024-10-03 19:43:59 +00:00
padding:1% 0%;
2024-08-29 10:10:19 +00:00
position: fixed;
z-index: 100;
--paper-color: var(--black-dark);
background-color: var(--paper-color);
margin-bottom: 4rem;
border-bottom: solid .1px var(--marked-color);
}
header>div{
width: 80%;
margin: auto;
}
#logo{
height: 1.2em;
padding: .3rem .75rem;
background-color: var(--black);
border: 1px solid var(--text-color);
border-radius: 2px;
margin-right: 2em;
width: fit-content;
}
#logo svg{
height: 100%;
width: auto;
}
2024-10-03 19:43:59 +00:00
#logo-menu{
height: 1.2em;
display: none;
}
#logo-menu svg{
height: 100%;
width: auto;
}
2024-08-29 10:10:19 +00:00
2024-08-29 21:46:48 +00:00
/* MENU */
2024-08-29 10:10:19 +00:00
#menu ul {
width: 100%;
list-style-type: none;
display: flex;
justify-content: space-between;
margin: 0;
flex-wrap: wrap;
padding: 0;
}
#menu ul li {
margin: 0;
margin-right: 2rem;
}
#menu a{
font-weight : normal;
text-decoration: none;
}
header .btn.lv2{
font-weight : normal;
padding: .2em .4em;
border: none;
2024-10-03 19:43:59 +00:00
background-color: var(--paper-color);
2024-08-29 10:10:19 +00:00
}
#menu a.active{
font-weight: bold;
color: var(--marked-color);
}
2024-08-29 21:46:48 +00:00
/****************************/
/* FOOTER */
/****************************/
footer{
border-top: 0.2px dashed var(--text-color);
width: 80%;
margin-right:auto;
margin-left:auto;
padding-top: 2em;
font-size: 0.8em;
padding-bottom: 2em;
}
footer img{
height: 1.5rem;
width: auto;
margin-right: 1rem;
margin-bottom: .5rem;
}
footer ul{
margin: 0;
padding: 0;
2024-09-17 20:40:14 +00:00
max-width: 100%;
2024-08-29 21:46:48 +00:00
}
footer h4{
margin-top: 0;
margin-bottom: 1rem;
}
.up-page{
position: fixed;
bottom: 2em;
right: 2em;
padding: 0.5em;
width: 2rem;
height: 2rem;
}
2024-08-29 10:10:19 +00:00
2024-08-29 21:46:48 +00:00
/****************************/
/* BODY */
/****************************/
2024-08-29 10:10:19 +00:00
main{
margin: auto;
margin-top: 3.4em;
margin-bottom: 4em;
position: relative;
}
.main-first{
width: fit-content;
margin: 2em auto;
max-width: 80%;
2024-10-03 19:43:59 +00:00
margin-bottom: 6em;
2024-08-29 10:10:19 +00:00
}
.main-first svg{
2024-10-03 19:43:59 +00:00
max-width: 50%;
2024-08-29 10:10:19 +00:00
margin-bottom: 4em;
overflow: visible;
2024-10-03 19:43:59 +00:00
margin-top: 3em;
2024-08-29 10:10:19 +00:00
}
/* SVG ANIM */
g.app{
transition: transform 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
transform-origin: right;
}
g.app.svg-active {
transform: scale(1.05);
--paper-color: var(--yellow);
--marked-color: var(--black);
}
g.app.svg-active rect:first-of-type {
fill: var(--marked-color-dark);
}
g.server{
transition: transform 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
transform-origin: left;
}
g.server.svg-active {
transform: scale(1.05);
--paper-color: var(--white);
--text-color: var(--black);
}
g.server.svg-active rect:first-of-type {
fill: var(--marked-color);
}
g.word{
border: solid 1px var(--paper-color);
}
2024-08-29 21:46:48 +00:00
/* CONTENT */
2024-08-29 10:10:19 +00:00
.section-home {
padding-bottom: 3rem;
}
.content {
width: 80%;
margin: auto;
position: relative;
}
.section-header{
2024-10-03 19:43:59 +00:00
width: 90%;
padding: 5%;
2024-08-29 10:10:19 +00:00
padding-top: 4em;
padding-bottom: 3em;
2024-10-03 19:43:59 +00:00
margin-bottom: 3.5em;
2024-08-29 10:10:19 +00:00
margin-top: 3em;
}
.subtitle{
max-width: 36rem;
text-align: center;
2024-10-03 19:43:59 +00:00
font-size: 1.15rem;
2024-08-29 10:10:19 +00:00
}
/* GRID */
.grid{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
grid-gap: 1.5em;
justify-content: center;
margin-top: 4em;
margin-bottom: 4em;
}
2024-08-29 21:46:48 +00:00
/* cards default */
2024-08-29 10:10:19 +00:00
.card{
border: .1px var(--text-color) solid;
border-radius: 2px;
position: relative;
padding: .5em 1rem;
}
.card svg{margin-top: 1em;}
.card h4{margin-top: 1.5em;}
2024-10-03 19:43:59 +00:00
.card p{
word-break: break-word;
margin-bottom: .5em;
}
2024-08-29 10:10:19 +00:00
2024-08-29 21:46:48 +00:00
/* cards implementation */
.implementation p{
margin-top: .3em;
margin-bottom: .3em;
}
.implementation h4{
margin-top: 1em;
}
2024-10-03 19:43:59 +00:00
.implementation .lv1, .implementation .draft{
2024-08-29 21:46:48 +00:00
padding: .1em .3em;
margin-top: .5em;
margin-bottom: 1em;
top: 1em;
}
/* ACTIVABLE TRIGGERS */
/* Switch-boxes */
2024-08-29 10:10:19 +00:00
#switch-box-trigger .btn{
margin-right: .5rem;
position: relative;
z-index: 1;
}
.switch-box{
display: none;
position: relative;
z-index: 0;
border: 2px solid var(--marked-color);
2024-10-03 19:43:59 +00:00
padding: .5em 4%;
2024-08-29 10:10:19 +00:00
border-radius: 2px;
background-color: var(--paper-color);
}
2024-08-29 21:46:48 +00:00
/* Implementation type */
.type{
font-weight: 1000;
font-size: .75em;
}
.server{
--marked-color: var(--blue-2);
--marked-color-dark:var(--blue-2-dark);
}
.client{
--marked-color: var(--yellow);
--marked-color-dark:var(--yellow-dark);
}
.server.client{
--marked-color: var(--blue-1);
--marked-color-dark:var(--blue-1-dark);
}
2024-08-29 10:10:19 +00:00
2024-08-29 21:46:48 +00:00
/* TABLE */
2024-08-29 10:10:19 +00:00
table{
table-layout: auto;
width: 100%;
border-collapse: collapse;
margin-top: 4em;
}
td svg{
display: inline-block;
}
th, td {
border: 1px solid var(--text-color);
padding: 1.5em 1em;
2024-10-03 19:43:59 +00:00
text-align: center!important;
2024-08-29 10:10:19 +00:00
}
td:first-of-type{
font-weight: bold;
}
thead{
color: var(--marked-color);
}
thead th, thead td {
border: 2px solid var(--marked-color);
border-radius: 2px;
padding: 1em;
}
thead > tr:first-child > th:first-child {
border: none;
}
table svg{
height: 1.5em;
width: auto;
}
table br{
margin-bottom: 0.5em;
}
table svg:nth-child(2){
margin-left: .75em;
}
/*********************/
/* MOBILE */
/*********************/
@media (max-width: 1024px) {
td em {
display: none;
}
2024-10-03 19:43:59 +00:00
.content, footer, header>div{
width: 85%;
}
header>div{
width: 92%;
}
.main-first svg{
max-width: 60%;
}
2024-08-29 10:10:19 +00:00
}
@media (max-width: 768px) {
td, th{
font-size: .8em;
}
2024-10-03 19:43:59 +00:00
.float-right{
float: none;
width: 95%;
margin-left: 2.5%;
}
.float-left{
float: none;
margin-right: 0;
width: 95%;
margin-left: 2.5%;
}
.w-60{
width: 60%!important;
margin: 2% 15%;
}
.main-first svg{
margin-top: 4em;
}
.content, footer{
width: 87%;
}
header>div{
width: 93%;
}
.main-first svg{
max-width: 66%;
}
header>div{
justify-content: space-between;
}
#menu{
--paper-color: var(--white);
--text-color: var(--black);
--marked-color:var(--blue-2-dark);
color: var(--text-color);
display: none;
position: absolute;
top:3em;
right:1em;
background-color: var(--paper-color);
border: .1px var(--marked-color) solid;
border-radius: .1em;
flex-direction: column;
width: fit-content;
padding:1em;
padding-top: .5em;
}
#menu.open {
display: flex;
}
#menu ul{
flex-direction: column;
line-height: 2em;
}
#logo-menu{
display: block;
}
2024-08-29 10:10:19 +00:00
}
@media (max-width: 425px) {
th, td, th {
border: 2px solid var(--marked-color);
border-radius: 2px;
padding: .5em;
}
td, th{
font-size: .7em;
}
2024-10-03 19:43:59 +00:00
.content, footer{
width: 92%;
}
header>div{
width: 95%;
}
.main-first svg{
max-width: 70%;
}
2024-08-29 10:10:19 +00:00
}
@media (max-width: 375px) {
th, td th {
border: 2px solid var(--marked-color);
border-radius: 2px;
padding: .2em;
}
td, th{
font-size: .6em;
}
2024-10-03 19:43:59 +00:00
.main-first svg{
max-width: 80%;
}
2024-08-29 10:10:19 +00:00
}