mirror of
https://github.com/actix/actix-website
synced 2024-11-24 08:43:01 +01:00
320 lines
5.8 KiB
CSS
320 lines
5.8 KiB
CSS
:root {
|
|
--orange: #F1592A;
|
|
--dark-orange: #A12700;
|
|
--light-orange: #FF9C7C;
|
|
|
|
--dark-grey: #58585A;
|
|
--med-grey: #818285;
|
|
--light-grey: #D1D2D4;
|
|
--med-dark-grey: #6D6E71;
|
|
|
|
--black: #000;
|
|
--white: #fff;
|
|
|
|
--font-stack: helvetica, arial, sans-serif;
|
|
|
|
--breakpoint: 55rem;
|
|
}
|
|
|
|
*, *:before, *:after {
|
|
box-sizing: border-box;
|
|
padding:0px; margin:0px;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-stack);
|
|
line-height: 1.4rem;
|
|
}
|
|
|
|
a {
|
|
color: var(--orange);
|
|
/* color: inherit; */
|
|
text-decoration: none;
|
|
}
|
|
a:hover { color:#067a1f;text-decoration:underline; }
|
|
|
|
ul, ol, li {
|
|
list-style: none;
|
|
}
|
|
|
|
/* ----------------------------------------nav----------------------------------------*/
|
|
#lnav {
|
|
position: fixed;
|
|
width: 100%;
|
|
line-height: 60px;
|
|
zoom:1;
|
|
display: flex;
|
|
background-color: white;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #dfdcdc;
|
|
box-shadow: 0 3px 3px rgba(200, 216, 206, 0.12), 0 3px 3px rgba(97, 107, 100, 0.24);
|
|
}
|
|
#line {
|
|
position: fixed;
|
|
zoom:1;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 4px;
|
|
background-color: var(--orange);
|
|
}
|
|
#lnav h1 a {
|
|
font-size: 33px;
|
|
margin: auto 2vw;
|
|
font-weight: bold;
|
|
}
|
|
#lnav label {
|
|
float: right;
|
|
font-size: 26px;
|
|
font-weight: bold;
|
|
margin: auto 2vw;
|
|
}
|
|
|
|
/* ----------------------------------------section----------------------------------------*/
|
|
section.docs aside ul li a, section.blog aside ul li a {
|
|
display: inline-block;
|
|
margin-bottom: 0.25rem;
|
|
text-decoration: none;
|
|
transition: all 0.15s ease-in-out;
|
|
}
|
|
|
|
section.docs aside ul li a.active,
|
|
section.docs aside ul li a:hover,
|
|
section.docs aside ul li a:active,
|
|
section.docs aside ul li a:focus,
|
|
section.blog aside ul li a.active,
|
|
section.blog aside ul li a:hover,
|
|
section.blog aside ul li a:active,
|
|
section.blog aside ul li a:focus {
|
|
font-weight: bold;
|
|
background: var(--orange);
|
|
color: var(--white);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
pre {
|
|
display: block;
|
|
padding: 9.5px;
|
|
margin: 0 0 10px;
|
|
font-size: 13px;
|
|
line-height: 1.42857143;
|
|
color: var(--dark-grey);
|
|
word-break: break-all;
|
|
word-wrap: break-word;
|
|
background-color: #f5f5f5;
|
|
border: 1px solid #ccc;
|
|
text-shadow: none;
|
|
}
|
|
|
|
code {
|
|
padding: 2px 4px;
|
|
font-size: 90%;
|
|
background-color: #f5f5f5;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
color: var(--dark-grey);
|
|
text-shadow: none;
|
|
}
|
|
|
|
pre code {
|
|
padding: 0;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
white-space: pre-wrap;
|
|
background-color: transparent;
|
|
border-radius: 0;
|
|
border: 0;
|
|
}
|
|
|
|
/* ----------------------------------------footer----------------------------------------*/
|
|
footer {
|
|
text-align: center;
|
|
background-color: #f9f9f9;
|
|
justify-content: center;
|
|
}
|
|
|
|
footer p {
|
|
margin: 0;
|
|
font-weight: lighter;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
/* ----------------------------------------home page----------------------------------------*/
|
|
#top {
|
|
background-color: rgb(243, 225, 123);
|
|
padding: 2rem;
|
|
text-align: center;
|
|
line-height: 3rem;
|
|
}
|
|
#top h1 {
|
|
font-size: 3rem;
|
|
color: #b71fdd;
|
|
}
|
|
#top p {
|
|
font-size: 1.5rem;
|
|
color: rgb(240, 105, 60);
|
|
}
|
|
#top button {
|
|
margin-right: 15px;
|
|
font-size: 18px;
|
|
padding: 8px 30px;
|
|
background-color: rgb(21, 233, 109);
|
|
border: none;
|
|
}
|
|
|
|
#Features {
|
|
margin-top: 2rem;
|
|
padding: 0 1rem;
|
|
}
|
|
#Features #feature {
|
|
margin-bottom: 2rem;
|
|
}
|
|
#Features article h3 {
|
|
font-size: 1.5rem;
|
|
color: #b71fdd;
|
|
}
|
|
|
|
#Features article p {
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
|
|
/* ----------------------------------------mobile----------------------------------------*/
|
|
@media only screen and (max-width: 600px) {
|
|
#rnav {
|
|
padding-top: 4rem;
|
|
height: 0;
|
|
display: block;
|
|
overflow: hidden;
|
|
}
|
|
#rnav li a {
|
|
color: var(--orange);
|
|
display:block;
|
|
font-weight: bold;
|
|
border-bottom: 1px solid #d8d8d8;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
section {
|
|
margin: 0 auto ;
|
|
padding-top: 1rem;
|
|
width: 94%;
|
|
}
|
|
}
|
|
/* ----------------------------------------table----------------------------------------*/
|
|
@media only screen and (min-width: 600px) and (max-width: 1000px) {
|
|
#menu {
|
|
display: none;
|
|
}
|
|
#lnav h1 a {
|
|
font-size: 33px;
|
|
margin: auto 6vw;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#rnav {
|
|
position: fixed;
|
|
right: 0;
|
|
line-height: 60px;
|
|
padding-right: 6vw;
|
|
}
|
|
|
|
#rnav li {
|
|
display: inline-block;
|
|
}
|
|
#rnav li a {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
padding-left: 2vw;
|
|
}
|
|
section {
|
|
margin: 0 auto;
|
|
padding-top: 5rem;
|
|
width: 88%;
|
|
}
|
|
section.docs .inner, section.blog .inner {
|
|
display: flex;
|
|
}
|
|
section.docs aside, section.blog aside {
|
|
flex: 0 1 30%;
|
|
}
|
|
|
|
section.docs aside p, section.blog aside p {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
section.docs main, section.blog main {
|
|
flex: 0 1 70%;
|
|
}
|
|
|
|
.columns {
|
|
display: flex;
|
|
}
|
|
|
|
.columns.three > article {
|
|
flex: 0 1 33%;
|
|
margin-right: 1.5%;
|
|
}
|
|
|
|
.columns.three > article:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
/* ----------------------------------------desktop----------------------------------------*/
|
|
@media only screen and (min-width: 1000px) {
|
|
#menu {
|
|
display: none;
|
|
}
|
|
#lnav h1 a {
|
|
font-size: 33px;
|
|
margin: auto 11vw;
|
|
font-weight: bold;
|
|
}
|
|
#rnav {
|
|
position: fixed;
|
|
right: 0;
|
|
line-height: 60px;
|
|
padding-right: 10vw;
|
|
}
|
|
|
|
#rnav li {
|
|
display: inline-block;
|
|
}
|
|
#rnav li a {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
padding-left: 2vw;
|
|
}
|
|
section {
|
|
margin: 0 auto;
|
|
padding-top: 5.5rem;
|
|
width: 77%;
|
|
}
|
|
|
|
section.docs .inner, section.blog .inner {
|
|
display: flex;
|
|
}
|
|
section.docs aside, section.blog aside {
|
|
flex: 0 1 30%;
|
|
}
|
|
section.docs aside p, section.blog aside p {
|
|
font-size: 1.3rem;
|
|
}
|
|
section.docs main, section.blog main {
|
|
flex: 0 1 70%;
|
|
}
|
|
|
|
.columns {
|
|
display: flex;
|
|
}
|
|
|
|
.columns.three > article {
|
|
flex: 0 1 33%;
|
|
margin-right: 1.5%;
|
|
}
|
|
|
|
.columns.three > article:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|