Use Less
This commit is contained in:
parent
7d1591d400
commit
2b6f80bf16
15 changed files with 101 additions and 124 deletions
19
assets/less/components/nav.less
Normal file
19
assets/less/components/nav.less
Normal file
|
@ -0,0 +1,19 @@
|
|||
.nav-item {
|
||||
.black-70;
|
||||
.dib;
|
||||
.f6;
|
||||
.link;
|
||||
.ml3;
|
||||
.pv3;
|
||||
|
||||
&:first-child {
|
||||
.ml0;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-item--active {
|
||||
.b--blue;
|
||||
.bb;
|
||||
.black;
|
||||
.bw1;
|
||||
}
|
35
assets/less/components/post.less
Normal file
35
assets/less/components/post.less
Normal file
|
@ -0,0 +1,35 @@
|
|||
pre {
|
||||
.db;
|
||||
.overflow-auto;
|
||||
word-break: normal;
|
||||
word-wrap: no-wrap;
|
||||
}
|
||||
|
||||
pre[class*="language-"] {
|
||||
.bn;
|
||||
.br0;
|
||||
}
|
||||
|
||||
pre code {
|
||||
.pre;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
pre code .number {
|
||||
.h-auto;
|
||||
.mr0;
|
||||
.pa0;
|
||||
background-color: inherit;
|
||||
font-size: inherit;
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
code.hljs {
|
||||
.pa0;
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
code[data-gist-id] {
|
||||
.pa0;
|
||||
background: transparent;
|
||||
}
|
25
assets/less/components/talk.less
Normal file
25
assets/less/components/talk.less
Normal file
|
@ -0,0 +1,25 @@
|
|||
.video {
|
||||
padding-top: 56.25%;
|
||||
}
|
||||
|
||||
.video iframe,
|
||||
.video embed {
|
||||
.absolute;
|
||||
.h-100;
|
||||
.left-0;
|
||||
.top-0;
|
||||
.w-100;
|
||||
}
|
||||
|
||||
.slides {
|
||||
background-image: url('../images/loading.gif');
|
||||
min-height: 275px;
|
||||
|
||||
@media @breakpoint-medium {
|
||||
min-height: 460px;
|
||||
}
|
||||
|
||||
@media @breakpoint-large {
|
||||
min-height: 540px;
|
||||
}
|
||||
}
|
|
@ -12,17 +12,6 @@ td {
|
|||
}
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
.black-70;
|
||||
.dib;
|
||||
.f6;
|
||||
.link;
|
||||
.pv3;
|
||||
}
|
||||
|
||||
.nav-item--active {
|
||||
.b--blue;
|
||||
.bb;
|
||||
.black;
|
||||
.bw1;
|
||||
}
|
||||
@import "components/nav";
|
||||
@import "components/post";
|
||||
@import "components/talk";
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
@import "node_modules/tachyons-sass/scss/colors";
|
||||
|
||||
$blue: #0678be
|
||||
|
||||
@import "node_modules/tachyons-sass/tachyons";
|
||||
|
||||
p,
|
||||
li,
|
||||
td
|
||||
a
|
||||
color: $blue
|
|
@ -1,29 +0,0 @@
|
|||
#pre
|
||||
display: block
|
||||
overflow: auto
|
||||
word-break: normal
|
||||
word-wrap: no-wrap
|
||||
|
||||
pre[class*="language-"]
|
||||
border: 0
|
||||
border-radius: 0
|
||||
|
||||
pre code
|
||||
white-space: pre
|
||||
word-break: normal
|
||||
|
||||
pre code .number
|
||||
background-color: inherit
|
||||
font-size: inherit
|
||||
height: auto
|
||||
margin-right: 0
|
||||
min-width: auto
|
||||
padding: 0
|
||||
|
||||
code.hljs
|
||||
background-color: inherit
|
||||
padding: 0
|
||||
|
||||
code[data-gist-id]
|
||||
background: transparent
|
||||
padding: 0
|
|
@ -1,22 +0,0 @@
|
|||
@import "./node_modules/tachyons-sass/scss/media-queries"
|
||||
|
||||
.slides
|
||||
background-image: url('../images/loading.gif')
|
||||
min-height: 275px
|
||||
|
||||
@media #{$breakpoint-medium}
|
||||
min-height: 460px
|
||||
|
||||
@media #{$breakpoint-large}
|
||||
min-height: 540px
|
||||
|
||||
.video
|
||||
padding-top: 56.25%
|
||||
|
||||
.video iframe,
|
||||
.video embed
|
||||
height: 100%
|
||||
left: 0
|
||||
position: absolute
|
||||
top: 0
|
||||
width: 100%
|
Loading…
Add table
Add a link
Reference in a new issue