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

345 lines
6.3 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;
2018-01-08 04:21:33 +01:00
background-color: var(--black);
2018-01-21 05:32:56 +01:00
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
}
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;
2018-01-21 05:32:56 +01:00
color: var(--grey);
2018-01-07 04:00:34 +01:00
}
#lnav label {
float: right;
font-size: 26px;
font-weight: bold;
margin: auto 2vw;
}
2018-01-21 05:32:56 +01:00
#lnav label a {
color: var(--grey);
}
#lnav h1 img {
width: 2.8rem;
height: 2.8rem;
margin-top: -0.25rem;
vertical-align:middle;
}
2018-01-07 04:00:34 +01:00
2018-01-07 07:08:18 +01:00
/* ----------------------------------------section----------------------------------------*/
2018-01-21 05:32:56 +01:00
section, #index {
2018-01-08 04:21:33 +01:00
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 {
2018-01-21 05:32:56 +01:00
margin: 0 auto;
padding: 7.5rem 2rem 5rem 2rem;
text-align: center;
line-height: 3rem;
background-color: var(--black);
2018-01-07 04:00:34 +01:00
}
#top h1 {
2018-01-21 05:32:56 +01:00
font-size: 2.2rem;
color: var(--white);
2018-01-07 04:00:34 +01:00
}
#top p {
2018-01-21 05:32:56 +01:00
font-size: 1.1rem;
color: var(--grey);
2018-01-07 04:00:34 +01:00
}
#top button {
2018-01-21 05:32:56 +01:00
margin-right: 18px;
font-size: 18px;
padding: 8px 22px;
background-color: var(--grey);
border: none;
2018-01-07 04:00:34 +01:00
}
#Features {
2018-01-08 04:50:40 +01:00
margin: 2rem auto;
padding: 1rem 2rem;
2018-01-21 05:32:56 +01:00
border: 2px solid 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 {
margin-left: 1vw;
}
2018-01-07 04:00:34 +01:00
#rnav {
2018-01-21 05:32:56 +01:00
padding-top: 3.6rem;
2018-01-07 06:44:13 +01:00
height: 0;
display: block;
overflow: hidden;
2018-01-21 05:32:56 +01:00
background-color: var(--black);
2018-01-07 04:00:34 +01:00
}
2018-01-07 06:44:13 +01:00
#rnav li a {
display:block;
font-weight: bold;
2018-01-21 05:32:56 +01:00
border-bottom: 1px solid var(--grey);
2018-01-07 06:44:13 +01:00
padding: 0.5rem 1rem;
2018-01-21 05:32:56 +01:00
color: var(--white);
2018-01-07 06:44:13 +01:00
}
2018-01-21 05:32:56 +01:00
#top {
margin: 0 auto;
padding: 3.5rem 2rem 5rem 2rem;
}
2018-01-07 07:08:18 +01:00
section {
2018-01-07 06:44:13 +01:00
margin: 0 auto ;
2018-01-21 05:38:52 +01:00
padding-top: 1rem;
2018-01-07 04:00:34 +01:00
width: 94%;
}
2018-01-21 05:32:56 +01:00
#index {
margin: 0 auto;
width: 94%;
}
width: 85%;
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 {
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-21 05:32:56 +01:00
color: var(--grey);
2018-01-07 04:00:34 +01:00
}
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-21 05:32:56 +01:00
#index {
margin: 0 auto;
width: 85%;
}
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 {
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-21 05:32:56 +01:00
color: var(--grey);
2018-01-07 04:00:34 +01:00
}
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-21 05:32:56 +01:00
#index {
margin: 0 auto;
width: 75%;
}
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;
}
}