shrub/pub/tree/src/css/main.css

840 lines
14 KiB
CSS
Raw Normal View History

2015-02-18 06:03:21 +03:00
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau.woff");
2015-02-18 06:03:21 +03:00
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-italic.woff");
2015-02-18 06:03:21 +03:00
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-medium.woff");
2015-02-18 06:03:21 +03:00
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-mediumitalic.woff");
2015-02-18 06:03:21 +03:00
font-weight: 500;
font-style: italic;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-bold.woff");
2015-02-18 06:03:21 +03:00
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-bolditalic.woff");
2015-02-18 06:03:21 +03:00
font-weight: 600;
font-style: italic;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-super.woff");
2015-02-18 06:03:21 +03:00
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "bau";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/bau-superitalic.woff");
2015-02-18 06:03:21 +03:00
font-weight: 600;
font-style: italic;
}
@font-face {
font-family: "scp";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/scp-extralight.woff");
2015-02-18 06:03:21 +03:00
font-weight: 200;
font-style: normal;
}
@font-face {
font-family: "scp";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/scp-light.woff");
2015-02-18 06:03:21 +03:00
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "scp";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/scp-regular.woff");
2015-02-18 06:03:21 +03:00
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "scp";
2015-07-15 03:31:00 +03:00
src: url("//storage.googleapis.com/urbit-extra/scp-medium.woff");
2015-02-18 06:03:21 +03:00
font-weight: 500;
font-style: normal;
}
body,
html {
font-family: "bau", "Helvetica Neue", helvetica, arial, sans-serif;
}
code,
2015-05-09 02:47:46 +03:00
pre,
2015-02-18 06:03:21 +03:00
li:before,
.spin,
2015-08-09 20:29:32 +03:00
#bred a,
2015-10-20 00:07:00 +03:00
.mono,
2015-08-09 20:29:32 +03:00
h3.time {
2015-02-18 06:03:21 +03:00
font-family: "scp", "Courier New", courier, monospace;
}
body,
html {
font-size: 18px;
font-weight: 400;
line-height: 1.6rem;
-webkit-text-size-adjust: none;
}
a {
color: #000;
2015-10-20 02:27:22 +03:00
border-bottom: 1px solid #000;
text-decoration: none;
2015-02-18 06:03:21 +03:00
display: inline-block;
line-height: 0.8rem;
}
2015-10-19 09:19:27 +03:00
a:visited {
opacity: 0.5;
}
2015-10-20 02:27:22 +03:00
a code {
line-height: inherit;
}
2015-02-18 06:03:21 +03:00
hr {
display: inline-block;
width: 6rem;
border: 0;
border-top: 2px solid #f4f4f4;
}
2015-09-11 05:35:20 +03:00
h1 {
margin-top: 4rem;
2015-10-16 02:37:49 +03:00
line-height: 2.6rem;
}
2015-10-19 09:19:27 +03:00
#body > div > h1:first-of-type,
#body div.short > h1:first-of-type {
2015-10-16 02:37:49 +03:00
margin-top: 1rem;
2015-09-11 05:35:20 +03:00
}
2015-02-18 06:03:21 +03:00
h2,
h3 {
margin: 0;
2015-09-11 05:35:20 +03:00
margin-top: 2rem;
2015-02-18 06:03:21 +03:00
}
h1,
h2,
h3,
h4,
strong {
font-weight: 500;
}
h4 {
margin-bottom: 0.3rem;
}
h5 {
font-style: italic;
font-weight: 200;
margin: 0;
}
h1 code,
h2 code,
h3 code {
font-size: inherit;
padding: 0.3rem;
}
2015-05-09 02:47:46 +03:00
pre,
code {
font-size: 0.8rem;
}
2015-02-18 06:03:21 +03:00
pre {
background-color: #f5f5f5;
padding: 0.3rem;
margin-left: -0.3rem;
2015-10-20 02:27:22 +03:00
white-space: pre-line;
2015-02-18 06:03:21 +03:00
}
code {
2015-04-23 21:32:38 +03:00
line-height: 1.2rem;
2015-02-18 06:03:21 +03:00
background-color: #f4f4f4;
margin-top: -0.05rem;
padding: 0.2rem;
display: inline-block;
}
ul {
list-style: none;
padding: 0;
}
li:before {
content: "+";
padding-right: 0.3rem;
font-size: 0.8rem;
font-weight: 600;
}
#nav,
#cont {
left: 50%;
}
#cont {
width: 42rem;
margin-left: -21rem;
background-color: #fff;
z-index: 1;
}
#nav {
position: fixed;
top: 0rem;
width: 57rem;
2015-10-20 04:07:56 +03:00
height: 100%;
2015-02-18 06:03:21 +03:00
padding-top: 1rem;
z-index: 0;
margin-left: -32rem;
overflow: hidden;
opacity: 0;
transition: opacity 1s ease-in-out;
}
#nav.moving {
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
#nav:hover {
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
#cont {
2015-10-20 04:07:56 +03:00
position: relative;
2015-02-18 06:03:21 +03:00
top: 0;
margin-bottom: 9rem;
}
.loading {
display: inline-block;
}
.spin {
color: #fff;
padding: 0.6rem;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.1rem;
z-index: 3;
}
.loading > .spin {
background-color: #555;
}
#body .loading > .spin {
background-color: #000;
}
.spin.state-0:before {
content: "\2599";
}
.spin.state-1:before {
content: "\259B";
}
.spin.state-2:before {
content: "\259C";
}
.spin.state-3:before {
content: "\259F";
}
#load.load {
display: inline-block;
font-weight: 500;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(10,10,10,0.4);
opacity: 1;
transition: opacity 1s ease-in-out;
z-index: 4;
}
2015-10-19 09:19:27 +03:00
img.logo.black {
content: url("https://storage.googleapis.com/urbit-extra/logo/logo-black-100x100.png");
}
img.logo.white {
content: url("https://storage.googleapis.com/urbit-extra/logo/logo-white-100x100.png");
}
2015-08-09 20:29:32 +03:00
img.logo {
height: 2rem;
width: 2rem;
2015-10-19 09:19:27 +03:00
margin-top: 1rem;
2015-08-09 20:29:32 +03:00
}
h3.time {
margin-top: 0.3rem;
font-size: 0.7rem;
font-weight: 200;
}
2015-08-06 02:48:34 +03:00
#nav .links > div {
2015-02-18 06:03:21 +03:00
display: inline-block;
vertical-align: top;
}
#nav #sibs {
2015-08-06 03:25:36 +03:00
width: 8rem;
2015-02-18 06:03:21 +03:00
transition: margin-top 0.3s ease-in-out;
2015-08-06 03:25:36 +03:00
overflow: hidden;
2015-02-18 06:03:21 +03:00
}
#nav #sibs > div {
2015-10-20 02:27:22 +03:00
margin-bottom: 0.6rem;
2015-02-18 06:03:21 +03:00
}
.focus #sibs {
margin-top: 0 !important;
transition: margin-top 0.3s ease-in-out;
}
#nav a,
.list > li > a {
text-transform: uppercase;
font-size: 0.7rem;
2015-10-16 00:43:23 +03:00
line-height: 1rem;
2015-02-18 06:03:21 +03:00
font-weight: 200;
letter-spacing: 1px;
}
2015-10-20 04:07:56 +03:00
#nav .link-next {
position: absolute;
bottom: 4rem;
margin-left: 1rem;
}
#nav .link-next a {
font-weight: 500;
font-size: 1rem;
}
2015-02-18 06:03:21 +03:00
.list > li > a {
2015-05-05 04:05:13 +03:00
margin-bottom: 0.3rem;
2015-02-18 06:03:21 +03:00
}
2015-10-15 19:47:44 +03:00
.list > li > a h1 {
font-size: inherit;
line-height: inherit;
}
2015-02-18 06:03:21 +03:00
#nav a,
.list > li > a h1 {
2015-05-05 04:05:13 +03:00
margin-right: 0.3rem;
2015-02-18 06:03:21 +03:00
}
#nav .active a {
font-weight: 500;
text-decoration: none;
}
#up {
padding-right: 1rem;
margin-top: -0.3rem;
}
#sides {
float: right;
}
#sides a {
margin-right: 0.6rem;
}
2015-10-15 19:47:44 +03:00
.arow-up,
.arow-next,
.arow-prev {
2015-02-18 06:03:21 +03:00
width: 0;
height: 0;
border: 0.4rem solid transparent;
}
2015-10-15 19:47:44 +03:00
.arow-up {
2015-02-18 06:03:21 +03:00
border-bottom: 0.6rem solid #000;
}
2015-10-15 19:47:44 +03:00
.arow-next {
2015-02-18 06:03:21 +03:00
border-left: 0.6rem solid #000;
}
2015-10-15 19:47:44 +03:00
.arow-prev {
2015-02-18 06:03:21 +03:00
border-right: 0.6rem solid #000;
}
#bred {
width: 5rem;
padding-right: 1rem;
text-align: right;
font-size: 0.6rem;
white-space: nowrap;
overflow: hidden;
}
#bred a {
text-transform: lowercase;
vertical-align: top;
}
#bred > div {
float: right;
}
#bred > div > div {
display: inline-block;
margin-top: -0.2rem;
}
#bred a,
#kids a {
margin-right: 0.3rem;
}
#bred a {
margin-left: 0.3rem;
}
.short {
width: 32rem;
}
.list h1,
.list li a > div p {
margin: 0;
}
2015-04-29 00:03:11 +03:00
.list li a > div,
2015-02-18 06:03:21 +03:00
.list li a > div p {
display: inline;
2015-04-29 00:03:11 +03:00
}
.list li a > div p {
2015-02-18 06:03:21 +03:00
margin-left: 0.3rem;
}
.list li a > div p:first-child {
margin-left: 0;
}
.list li a > div p code {
font-size: 0.7rem;
font-weight: 400;
2015-02-19 03:55:12 +03:00
text-transform: none;
2015-02-18 06:03:21 +03:00
}
2015-02-19 03:55:12 +03:00
.list li a h1 code {
2015-02-18 06:03:21 +03:00
text-transform: lowercase;
}
2015-02-19 03:55:12 +03:00
.list li a code {
padding: 0.2rem;
}
2015-02-18 06:03:21 +03:00
.list h1,
.list li a > div div {
2015-02-19 03:55:12 +03:00
display: inline;
2015-02-18 06:03:21 +03:00
}
.list li a > div div {
margin-left: 0.6rem;
overflow: hidden;
}
.list h1 {
font-size: 0.7rem;
}
2015-07-20 18:49:01 +03:00
div.root h1 {
margin-bottom: 2rem;
}
div.root .list .sub {
margin-left: 0;
margin-right: 0.6rem;
}
div.root > p {
width: 27rem;
margin-top: 2rem;
}
2015-08-09 20:29:32 +03:00
h2.sub {
font-size: 0.7rem;
font-weight: 400;
line-height: 1rem;
letter-spacing: 1px;
margin-top: 0;
text-transform: uppercase;
}
2015-08-06 03:25:36 +03:00
div.toc {
2015-09-11 05:35:20 +03:00
margin-top: 3rem;
margin-bottom: 3rem;
2015-08-06 03:25:36 +03:00
}
div.toc h1,
div.toc h2,
div.toc h3,
div.toc h4 {
font-weight: 400;
cursor: pointer;
text-decoration: underline;
font-size: 1.2rem;
2015-09-11 05:35:20 +03:00
margin-top: 0.3rem;
margin-bottom: 0.3rem;
2015-08-06 03:25:36 +03:00
}
div.toc h2 {
margin-left: 1rem;
}
div.toc h3 {
margin-left: 2rem;
}
div.toc h4 {
margin-left: 3rem;
}
div.toc h1.t {
font-weight: 500;
font-size: 2rem;
text-decoration: none;
2015-09-11 05:35:20 +03:00
margin-bottom: 2rem;
2015-08-06 03:25:36 +03:00
}
2015-06-06 00:09:02 +03:00
#body .CodeMirror {
font-size: 0.8rem;
line-height: 1rem;
}
#body .CodeMirror .cm-header {
font-weight: 200;
}
#body .CodeMirror-gutters {
background-color: #fff;
padding-right: 1rem;
margin-left: -1rem;
}
2015-10-19 09:19:27 +03:00
.footer {
font-family: 'scp';
font-size: 0.7rem;
font-weight: 400;
margin-top: 3rem;
color: #ccc;
}
2015-06-18 09:26:09 +03:00
.error {
color: #f91733;
}
2015-09-11 05:35:20 +03:00
.warning {
background-color: #ff3537;
padding: 1rem;
width: 18rem;
margin: 2rem 0;
color: #fff;
}
.warning a {
color: inherit;
border-color: #fff;
}
.warning h1 {
font-size: 1rem;
}
.warning h1,
.warning p {
margin: 0 0.3rem;
}
.warning.w {
width: auto;
}
div.post h1 {
font-size: 2.8rem;
line-height: 4rem;
display: block;
2015-10-12 09:17:56 +03:00
margin-top: 1rem;
2015-10-15 19:47:44 +03:00
margin-bottom: 1rem;
}
div.post h2 {
font-family: 'scp';
2015-10-15 19:47:44 +03:00
font-size: 0.7rem;
line-height: 1rem;
letter-spacing: 1px;
}
div.post h3 {
2015-10-15 19:47:44 +03:00
margin-top: 0;
font-size: 0.7rem;
font-weight: 200;
letter-spacing: 0.1rem;
text-transform: uppercase;
2015-10-15 19:47:44 +03:00
}
div.post h3::before {
content: '\2014';
margin-right: 0.3rem;
2015-10-15 19:47:44 +03:00
}
div.post p {
font-size: 1.2rem;
line-height: 2.2rem;
2015-10-12 09:17:56 +03:00
}
div.post li p {
display: inline;
}
div.post p.ib {
margin-top: 0;
2015-10-12 09:17:56 +03:00
}
#cont.lead #body {
margin-top: 3rem;
margin-top: 0;
}
2015-10-13 03:44:14 +03:00
#cont.lead .bar {
margin-top: 2rem;
2015-10-19 23:33:20 +03:00
margin-bottom: 2rem;
2015-10-12 09:17:56 +03:00
}
2015-10-13 03:44:14 +03:00
#cont.lead .bar > div {
display: inline-block;
2015-10-12 09:17:56 +03:00
}
2015-10-13 03:44:14 +03:00
#cont.lead .bar a.logo {
display: inline-block;
height: 2rem;
2015-10-12 09:17:56 +03:00
vertical-align: middle;
2015-10-13 03:44:14 +03:00
border: none;
}
#cont.lead .bar img.logo {
margin-right: 18px;
2015-10-19 23:33:20 +03:00
margin-top: 0;
2015-10-12 09:17:56 +03:00
}
2015-10-13 03:44:14 +03:00
#cont.lead .bar ul.list.nav {
margin: 0;
2015-10-19 23:33:20 +03:00
line-height: 2rem;
2015-10-13 03:44:14 +03:00
}
#cont.lead .bar ul.list.nav li {
display: inline-block;
margin-bottom: 0;
2015-10-12 09:17:56 +03:00
margin-right: 1rem;
2015-10-19 23:33:20 +03:00
vertical-align: middle;
2015-10-12 09:17:56 +03:00
}
2015-10-13 03:44:14 +03:00
#cont.lead .bar ul.list.nav li a {
border-bottom: none;
2015-10-19 23:33:20 +03:00
text-decoration: none;
2015-10-13 03:44:14 +03:00
}
#cont.lead .bar ul.list.nav h1 {
text-decoration: none;
border-bottom: 2px solid #000;
text-transform: capitalize;
font-size: 1rem;
font-weight: 400;
letter-spacing: 0.03rem;
}
#cont.lead h1 {
margin-top: 1rem;
vertical-align: middle;
line-height: 4rem;
}
#cont.lead h1.fold {
margin-top: 6rem;
}
2015-10-15 19:47:44 +03:00
#cont.lead .list > li > a h1 {
margin: 0;
line-height: inherit;
text-transform: capitalize;
font-size: 1.2rem;
}
#cont.lead {
2015-10-12 09:17:56 +03:00
font-size: 1.6rem;
line-height: 2.6rem;
}
#cont.lead a {
line-height: 1rem;
}
2015-10-20 00:07:00 +03:00
#cont.lead .mono {
font-size: 1.3rem;
}
2015-10-12 09:17:56 +03:00
#cont.lead .footer {
margin: 4rem 0 4rem 0;
}
#cont.lead .footer p {
margin: 0;
}
2015-10-19 23:33:20 +03:00
#cont.lead .footer code {
line-height: 1rem;
font-size: 0.7rem;
}
2015-10-12 09:17:56 +03:00
#cont.lead input.email {
border-radius: 0;
font: inherit;
font-family: 'scp';
font-weight: 300;
line-height: 2rem;
min-width: 2rem;
border: 0;
outline: 0;
background-color: transparent;
border-bottom: 3px dotted #000;
margin-right: 1rem;
display: inline-block;
}
#cont.lead input.email.valid {
color: #99f27c;
}
#cont.lead input.email.error {
color: #f74040;
}
#cont.lead .email:empty:not(:focus):before {
content: attr(data-ph);
}
#cont.lead ::-webkit-input-placeholder {
color: #e6e7e8;
}
#cont.lead :-moz-placeholder {
color: #e6e7e8;
}
#cont.lead ::-moz-placeholder {
color: #e6e7e8;
}
#cont.lead :-ms-input-placeholder {
color: #e6e7e8;
}
#cont.lead button.submit {
font: inherit;
border: 0;
background-color: #fff;
border-bottom: 3px solid #000;
font-size: 1.6rem;
line-height: 1.6rem;
display: inline-block;
text-align: left;
margin-top: 1rem;
height: 2rem;
padding: 0 0.6rem;
}
#cont.lead li::before {
content: '';
padding-right: none;
}
#cont.lead .date {
font-weight: 400;
}
2015-10-20 00:14:42 +03:00
@media only screen and (max-width: 1170px) {
#cont.lead {
top: 0rem;
}
}
2015-10-12 09:17:56 +03:00
@media only screen and (min-width: 320px) and (max-width: 1024px) {
#cont.lead {
top: 0rem;
font-size: 1rem;
line-height: 1.6rem;
}
#cont.lead img.logo {
display: block;
margin-bottom: 1rem;
}
#cont.lead h1.leader,
#cont.lead h1.fold {
font-size: 1.6rem;
2015-10-20 00:14:42 +03:00
line-height: 3rem;
2015-10-12 09:17:56 +03:00
margin-left: 0;
}
#cont.lead .list li,
#cont.lead .list li a,
#cont.lead .list li h1 {
font-size: 1rem;
line-height: 1.6rem;
}
2015-10-20 00:14:42 +03:00
#cont.lead button.submit {
font-size: 1rem;
}
#cont.lead .mono {
font-size: 0.7rem;
}
2015-10-12 09:17:56 +03:00
#cont.lead .date,
#cont.lead div.footer {
font-size: 0.6rem;
}
}
2015-10-16 02:37:49 +03:00
.video iframe {
width: 42rem;
height: 24rem;
}
.video .leader {
font-size: 2rem;
font-weight: 500;
line-height: 2.6rem;
margin-bottom: 4rem;
}
.video .short img {
margin-top: 2rem;
width: 42rem;
}
2015-02-18 06:03:21 +03:00
@media only screen and (max-width: 1170px) {
#nav,
#nav > div,
#nav.up,
#nav.top,
2015-10-06 02:12:18 +03:00
#nav .focus {
2015-02-18 06:03:21 +03:00
transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
#nav {
position: fixed;
top: 0;
opacity: 1;
width: 42rem;
margin-left: -21rem;
background-color: #fff;
z-index: 2;
}
2015-10-16 00:43:23 +03:00
#nav a {
white-space: nowrap;
}
#nav #sibs > div {
height: 20px;
}
2015-02-18 06:03:21 +03:00
#nav.m-down,
#nav.m-up {
position: absolute;
}
#nav.m-down.m-fixed {
position: fixed;
top: 0;
}
2015-10-06 02:12:18 +03:00
#nav > div > div {
2015-02-18 06:03:21 +03:00
max-height: 1rem;
overflow: hidden;
transition: max-height 0.3s ease-in-out;
}
2015-10-06 02:12:18 +03:00
#nav .focus {
2015-02-18 06:03:21 +03:00
max-height: 40rem;
transition: max-height 0.3s ease-in-out;
}
#cont {
top: 3rem;
}
}
@media only screen and (min-width: 320px) and (max-width: 1024px) {
body,
html {
font-size: 21px;
}
#nav,
#cont {
width: 94%;
padding-left: 3%;
margin-left: 0;
}
#nav {
position: fixed;
padding-top: 0;
opacity: 1;
left: 0;
background-color: #fff;
z-index: 2;
}
2015-10-06 02:12:18 +03:00
#nav > div > div {
2015-02-19 06:28:39 +03:00
max-height: 1.4rem;
2015-02-18 06:03:21 +03:00
}
#nav > div {
padding-top: 0.6rem;
}
2015-08-06 03:25:36 +03:00
#nav #sibs {
2015-10-06 02:12:18 +03:00
width: 11rem;
2015-08-06 03:25:36 +03:00
}
2015-02-18 06:03:21 +03:00
#nav #sibs > div {
height: 20px;
line-height: 20px;
}
#nav a {
display: inline-block;
font-size: 0.7rem;
}
#nav #sides {
float: right;
}
#nav .arow-up,
#nav .arow-next,
#nav .arow-prev {
margin-right: 0;
border: 0.4rem solid transparent;
}
#nav .arow-up {
border-bottom: 0.6rem solid #000;
}
#nav .arow-next {
border-left: 0.6rem solid #000;
}
#nav .arow-prev {
margin-right: 1rem;
border-right: 0.6rem solid #000;
}
#cont {
top: 3rem;
left: 0;
padding-bottom: 9rem;
}
#cont h1:first-child {
margin-top: 0;
}
.short {
width: 100%;
}
}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
2015-10-06 02:12:18 +03:00
#nav > div > div {
2015-02-18 06:03:21 +03:00
max-height: 1.6rem;
}
#nav a {
2015-10-16 00:43:23 +03:00
line-height: auto;
2015-02-18 06:03:21 +03:00
font-size: 0.7rem;
}
#nav #sibs > div {
height: 20px;
line-height: 20px;
}
}