1
0
mirror of https://github.com/actix/actix-website synced 2024-11-28 02:22:57 +01:00
actix-website/public/css/styles.css
2018-01-07 11:00:34 +08:00

319 lines
5.3 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 {
border-top: 4px solid var(--orange);
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);
}
#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;
}
/* ----------------------------------------main----------------------------------------*/
section.docs 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 {
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 {
display: none;
}
section {
margin: 5rem auto 2rem ;
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;
}
main {
margin: 0 auto;
width: 88%;
}
section {
margin-top: 3rem;
padding: 2rem 0;
position: relative;
}
section.docs .inner {
display: flex;
}
section.docs aside {
flex: 0 1 30%;
}
section.docs 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;
}
main {
margin: 0 auto;
width: 77%;
}
section {
margin-top: 4rem;
padding: 2rem 0;
position: relative;
}
section.docs .inner {
display: flex;
}
section.docs aside {
flex: 0 1 30%;
}
section.docs aside p {
font-size: 1.3rem;
font-weight: bold;
}
section.docs 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;
}
}