Use sass again

This commit is contained in:
Oliver Davies 2018-06-03 09:33:12 +01:00
parent aa612a8d84
commit 97737eba1b
29 changed files with 159 additions and 213 deletions

View file

@ -1,37 +0,0 @@
a {
color: inherit;
text-decoration: none;
&:focus,
&:hover {
text-decoration: underline;
}
}
main a {
text-decoration: underline;
&:focus,
&:hover {
text-decoration: none;
}
}
h1, h2, h3 {
@apply .mb-2;
}
.content {
h2,
h3 {
@apply .mt-6;
}
}
p,
ul,
ol,
table,
pre {
@apply .mb-4;
}

View file

@ -1,7 +0,0 @@
img.with-border {
@apply .border .border-solid .border-grey-light;
}
svg {
fill: currentColor;
}

View file

@ -1,3 +0,0 @@
blockquote {
@apply .border-l-4 .border-blue .pl-4;
}

View file

@ -1,13 +0,0 @@
.button {
@apply .bg-blue;
@apply .inline-block;
@apply .rounded;
@apply .text-white;
@apply .px-4;
@apply .py-2;
&:active,
&:hover {
@apply .bg-blue-dark;
}
}

View file

@ -1,3 +0,0 @@
.link {
@apply .text-blue;
}

View file

@ -1,14 +0,0 @@
.listing {
@apply .pl-0;
}
.listing-item {
@apply .overflow-hidden;
@apply .pb-8;
&:not(:last-child) {
@apply .border-b;
@apply .border-grey-light;
@apply .mb-8;
}
}

View file

@ -1,31 +0,0 @@
.markdown {
p,
li {
a {
@apply .link;
}
}
p,
li {
code {
@apply .bg-grey-lighter .inline-block .font-mono .text-xs;
padding: 1px 3px;
}
}
pre code,
pre code.hljs,
.hljs {
@apply .bg-grey-lighter;
@apply .block;
@apply .border-grey-dark;
@apply .border-l-4;
@apply .font-mono;
@apply .leading-loose;
@apply .overflow-x-scroll;
@apply .p-4;
@apply .rounded;
@apply .text-xs;
}
}

View file

@ -1,16 +0,0 @@
.note {
@apply .bg-blue-lighter;
@apply .border-blue;
@apply .border-l-4;
@apply .mb-4;
@apply .p-4;
@apply .rounded;
& > *:last-child {
@apply .mb-0;
}
p a {
@apply .text-black;
}
}

View file

@ -1,30 +0,0 @@
.table-collapse {
border-collapse: collapse;
}
.table-responsive {
@apply .mb-4 .border .w-full;
overflow-x: auto;
overflow-y: hidden;
}
.table-responsive table {
@apply .mb-0 .border-0 .whitespace-no-wrap;
}
.table {
@apply .w-full;
@apply .table-collapse;
}
.table tr:nth-child(odd) {
@apply .bg-grey-lighter;
}
.table tr th {
@apply .text-left .px-3 .py-2 .bg-white;
}
.table td {
@apply .px-3 .py-2 .border-t;
}

View file

@ -1,22 +0,0 @@
.talk-slides {
background: url('../../../images/loading.gif') center no-repeat;
min-height: 275px;
@screen md {
& {
min-height: 375px;
}
}
@screen lg {
& {
min-height: 450px;
}
}
@screen xl {
& {
min-height: 560px;
}
}
}

View file

@ -1,13 +0,0 @@
.talk-video {
@apply .relative .w-full;
padding-top: 56.25%
}
.talk-video iframe,
.talk-video embed {
@apply .absolute;
@apply .pin-l;
@apply .pin-t;
@apply .h-full;
@apply .w-full;
}

View file

@ -1,3 +0,0 @@
.widget {
@apply .mb-6 .block;
}

View file

@ -1,19 +0,0 @@
@import (css) "~font-awesome/css/font-awesome.css";
@import (css) "~highlightjs/styles/github-gist.css";
@tailwind preflight;
@import 'base/base';
@import 'base/images';
@import 'components/button';
@import 'components/link';
@import 'components/listing';
@import 'components/markdown';
@import 'components/note';
@import 'components/table';
@import 'components/talk/slides';
@import 'components/talk/video';
@import 'components/widget';
@tailwind utilities;

View file

@ -0,0 +1,29 @@
a
color: inherit
text-decoration: none
&:focus,
&:hover
text-decoration: underline
main a
text-decoration: underline
&:focus,
&:hover
text-decoration: none
h1, h2, h3
@apply .mb-2
.content
h2,
h3
@apply .mt-6
p,
ul,
ol,
table,
pre
@apply .mb-4

View file

@ -0,0 +1,5 @@
img.with-border
@apply .border .border-solid .border-grey-light
svg
fill: currentColor

View file

@ -0,0 +1,2 @@
blockquote
@apply .border-l-4 .border-blue .pl-4

View file

@ -0,0 +1,11 @@
.button
@apply .bg-blue
@apply .inline-block
@apply .rounded
@apply .text-white
@apply .px-4
@apply .py-2
&:active,
&:hover
@apply .bg-blue-dark

View file

@ -0,0 +1,2 @@
.link
@apply .text-blue

View file

@ -0,0 +1,11 @@
.listing
@apply .pl-0
.listing-item
@apply .overflow-hidden
@apply .pb-8
&:not(:last-child)
@apply .border-b
@apply .border-grey-light
@apply .mb-8

View file

@ -0,0 +1,21 @@
.markdown
p,
li
a
@apply .link
code
@apply .bg-grey-lighter .inline-block .font-mono
padding: 1px 3px
pre code,
pre code.hljs,
.hljs
@apply .p-4
@apply .text-sm
@apply .border-l-4
@apply .border-grey-dark
@apply .block
@apply .bg-grey-lighter
@apply .overflow-x-scroll
@apply .font-mono

View file

@ -0,0 +1,8 @@
.note
@apply .bg-blue-lighter
@apply .p-4
@apply .border-l-4
@apply .border-blue
& > *:last-child
@apply .mb-0

View file

@ -0,0 +1,23 @@
.table-collapse
border-collapse: collapse
.table-responsive
@apply .mb-4 .border .w-full
overflow-x: auto
overflow-y: hidden
table
@apply .mb-0 .border-0 .whitespace-no-wrap
.table
@apply .w-full
@apply .table-collapse
tr:nth-child(odd)
@apply .bg-grey-lighter
tr th
@apply .text-left .px-3 .py-2 .bg-white
td
@apply .px-3 .py-2 .border-t

View file

@ -0,0 +1,15 @@
.talk-slides
background: url('../images/loading.gif') center no-repeat
min-height: 275px
@screen md
&
min-height: 375px
@screen lg
&
min-height: 450px
@screen xl
&
min-height: 560px

View file

@ -0,0 +1,8 @@
.talk-video
iframe,
embed
@apply .absolute
@apply .h-full
@apply .pin-l
@apply .pin-t
@apply .w-full

View file

@ -0,0 +1,2 @@
.widget
@apply .mb-6 .block

20
assets/sass/site.sass Normal file
View file

@ -0,0 +1,20 @@
@import '~font-awesome/css/font-awesome.css'
@import '~highlightjs/styles/github-gist.css'
@tailwind preflight
@import 'base/base'
@import 'base/images'
@import 'components/blockquote'
@import 'components/button'
@import 'components/link'
@import 'components/listing'
@import 'components/markdown'
@import 'components/note'
@import 'components/table'
@import 'components/talk/slides'
@import 'components/talk/video'
@import 'components/widget'
@tailwind utilities

View file

@ -2,7 +2,7 @@
<div class="mt-4">
<h2>Video</h2>
<div class="talk-video">
<div class="w-full relative" style="padding-top: 56.25%">
{% if page.youtube.id %}
<iframe
width="678"

View file

@ -4,7 +4,7 @@ require('laravel-mix-purgecss');
require('laravel-mix-tailwind');
mix.disableNotifications()
.less('assets/less/site.less', 'source/build/css')
.sass('assets/sass/site.sass', 'source/build/css')
.combine([
'node_modules/jquery/dist/jquery.js',
'node_modules/highlightjs/highlight.pack.js',