1
0
mirror of https://github.com/actix/actix-website synced 2024-11-30 19:14:36 +01:00
actix-website/public/css/styles.css

328 lines
6.0 KiB
CSS
Raw Normal View History

2018-01-07 04:00:34 +01:00
:root {
2018-01-08 04:21:33 +01:00
--grey: #f5f5f5;
2018-01-13 07:45:30 +01:00
--text-color: #413e3e;
2018-01-07 04:00:34 +01:00
--black: #000;
--white: #fff;
2018-01-08 04:21:33 +01:00
--new: rgb(82, 29, 79);
2018-01-07 04:00:34 +01:00
--font-stack: helvetica, arial, sans-serif;
}
*, *:before, *:after {
box-sizing: border-box;
padding:0px; margin:0px;
}
body {
font-family: var(--font-stack);
line-height: 1.4rem;
2018-01-13 07:45:30 +01:00
color: var(--text-color);
2018-01-07 04:00:34 +01:00
}
2018-01-13 07:45:30 +01:00
a {
color: var(--text-color);
text-decoration: none;
2018-01-07 04:00:34 +01:00
}
2018-01-08 04:21:33 +01:00
a:hover { color: var(--new) ;text-decoration:none; }
2018-01-07 04:00:34 +01:00
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);
}
2018-01-07 06:44:13 +01:00
#line {
position: fixed;
zoom:1;
display: flex;
width: 100%;
height: 4px;
2018-01-08 04:21:33 +01:00
background-color: var(--black);
2018-01-07 06:44:13 +01:00
}
2018-01-07 12:00:28 +01:00
#lnav h1 #home {
2018-01-07 04:00:34 +01:00
font-size: 33px;
2018-01-07 11:47:08 +01:00
margin: auto 1vw;
2018-01-07 04:00:34 +01:00
font-weight: bold;
}
#lnav label {
float: right;
font-size: 26px;
font-weight: bold;
margin: auto 2vw;
}
2018-01-07 07:08:18 +01:00
/* ----------------------------------------section----------------------------------------*/
2018-01-08 04:21:33 +01:00
section {
min-height: 100vh;
}
2018-01-07 11:14:51 +01:00
section.docs aside ul li a, section.blog aside ul li a {
2018-01-07 04:00:34 +01:00
display: inline-block;
2018-01-08 04:21:33 +01:00
margin-left: 0.8rem;
2018-01-07 04:00:34 +01:00
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,
2018-01-07 11:14:51 +01:00
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 {
2018-01-08 04:21:33 +01:00
color: var(--new);
border-left: 3px solid var(--new);
2018-01-07 04:00:34 +01:00
padding: 0.25rem 0.5rem;
2018-01-08 04:21:33 +01:00
}
section.docs aside p, section.blog aside p {
font-size: 1.2rem;
font-weight: bold;
2018-01-07 04:00:34 +01:00
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
2018-01-08 04:21:33 +01:00
color: var(--new);
2018-01-07 04:00:34 +01:00
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;
2018-01-08 04:21:33 +01:00
color: var(--new);
2018-01-07 04:00:34 +01:00
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----------------------------------------*/
2018-01-13 07:45:30 +01:00
footer{
2018-01-07 04:00:34 +01:00
text-align: center;
justify-content: center;
2018-01-08 04:21:33 +01:00
border-top: 2px solid var(--new);
2018-01-07 04:00:34 +01:00
}
2018-01-13 07:45:30 +01:00
footer a {
color: var(--new);
font-weight: bold;
}
2018-01-07 04:00:34 +01:00
footer p {
margin: 0;
font-weight: lighter;
padding: 1rem 0;
}
/* ----------------------------------------home page----------------------------------------*/
#top {
padding: 2rem;
text-align: center;
line-height: 3rem;
2018-01-08 04:21:33 +01:00
background-color: var(--grey);
2018-01-07 04:00:34 +01:00
}
#top h1 {
2018-01-08 04:21:33 +01:00
font-size: 2.2rem;
2018-01-07 04:00:34 +01:00
}
#top p {
2018-01-08 04:21:33 +01:00
font-size: 1.1rem;
2018-01-07 04:00:34 +01:00
}
#top button {
margin-right: 15px;
font-size: 18px;
padding: 8px 30px;
2018-01-08 04:21:33 +01:00
background-color: rgb(190, 241, 211);
2018-01-07 04:00:34 +01:00
border: none;
}
#Features {
2018-01-08 04:50:40 +01:00
margin: 2rem auto;
padding: 1rem 2rem;
2018-01-08 04:21:33 +01:00
background-color: var(--grey);
2018-01-07 04:00:34 +01:00
}
#Features #feature {
2018-01-08 04:50:40 +01:00
padding-bottom: 1rem;
}
#Features article {
padding-top: 1rem;
2018-01-07 04:00:34 +01:00
}
2018-01-08 04:21:33 +01:00
#Features article h3 {
font-size: 1.3rem;
2018-01-08 04:50:40 +01:00
padding-bottom: 0.5rem;
2018-01-07 04:00:34 +01:00
}
/* ----------------------------------------mobile----------------------------------------*/
@media only screen and (max-width: 600px) {
2018-01-07 11:47:08 +01:00
#lnav h1 img {
2018-01-07 12:00:28 +01:00
width: 3rem;
height: 3rem;
2018-01-07 11:47:08 +01:00
vertical-align:middle;
margin-left: 1vw;
}
2018-01-07 04:00:34 +01:00
#rnav {
2018-01-07 06:44:13 +01:00
padding-top: 4rem;
height: 0;
display: block;
overflow: hidden;
2018-01-07 04:00:34 +01:00
}
2018-01-07 06:44:13 +01:00
#rnav li a {
display:block;
font-weight: bold;
border-bottom: 1px solid #d8d8d8;
padding: 0.5rem 1rem;
}
2018-01-07 07:08:18 +01:00
section {
2018-01-07 06:44:13 +01:00
margin: 0 auto ;
padding-top: 1rem;
2018-01-07 04:00:34 +01:00
width: 94%;
}
2018-01-08 04:21:33 +01:00
#hr {
width: 100%;
height: 0.25rem;
margin: 0.6rem 0;
background-color: var(--black);
}
2018-01-07 04:00:34 +01:00
}
/* ----------------------------------------table----------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 1000px) {
#menu {
display: none;
}
2018-01-07 11:47:08 +01:00
#lnav h1 img {
2018-01-07 12:00:28 +01:00
width: 3rem;
height: 3rem;
2018-01-07 11:47:08 +01:00
vertical-align:middle;
margin-left: 5vw;
2018-01-07 04:00:34 +01:00
}
#rnav {
position: fixed;
right: 0;
line-height: 60px;
2018-01-07 12:00:28 +01:00
padding-right: 5vw;
2018-01-07 04:00:34 +01:00
}
#rnav li {
display: inline-block;
}
#rnav li a {
font-size: 20px;
font-weight: bold;
padding-left: 2vw;
}
2018-01-07 07:08:18 +01:00
section {
2018-01-07 04:00:34 +01:00
margin: 0 auto;
2018-01-07 06:44:13 +01:00
padding-top: 5rem;
2018-01-08 04:21:33 +01:00
width: 85%;
2018-01-07 04:00:34 +01:00
}
2018-01-07 11:14:51 +01:00
section.docs .inner, section.blog .inner {
2018-01-07 04:00:34 +01:00
display: flex;
}
2018-01-07 11:14:51 +01:00
section.docs aside, section.blog aside {
2018-01-07 04:00:34 +01:00
flex: 0 1 30%;
}
2018-01-07 11:14:51 +01:00
section.docs main, section.blog main {
2018-01-07 04:00:34 +01:00
flex: 0 1 70%;
}
2018-01-08 04:21:33 +01:00
#hr {
display: none;
}
2018-01-07 04:00:34 +01:00
.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;
}
2018-01-07 11:47:08 +01:00
#lnav h1 img {
2018-01-07 12:00:28 +01:00
width: 3rem;
height: 3rem;
2018-01-07 11:47:08 +01:00
vertical-align:middle;
margin-left: 11vw;
2018-01-07 04:00:34 +01:00
}
#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;
}
2018-01-07 07:08:18 +01:00
section {
2018-01-07 04:00:34 +01:00
margin: 0 auto;
2018-01-07 06:44:13 +01:00
padding-top: 5.5rem;
2018-01-08 04:21:33 +01:00
width: 75%;
2018-01-07 04:00:34 +01:00
}
2018-01-07 11:14:51 +01:00
section.docs .inner, section.blog .inner {
2018-01-07 04:00:34 +01:00
display: flex;
}
2018-01-07 11:14:51 +01:00
section.docs aside, section.blog aside {
2018-01-07 04:00:34 +01:00
flex: 0 1 30%;
}
2018-01-07 11:14:51 +01:00
section.docs main, section.blog main {
2018-01-07 04:00:34 +01:00
flex: 0 1 70%;
}
2018-01-08 04:21:33 +01:00
#hr {
display: none;
}
2018-01-07 04:00:34 +01:00
.columns {
display: flex;
}
.columns.three > article {
flex: 0 1 33%;
margin-right: 1.5%;
}
.columns.three > article:last-child {
margin-right: 0;
}
}