Skip to content

Commit

Permalink
move classes to _sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Buschmann committed Feb 28, 2021
1 parent 4d8cb6a commit 236cd6d
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 61 deletions.
1 change: 0 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
{% else %}
<link rel="stylesheet" href="{{ "/assets/css/index.css" | relative_url }}">
{% endif %}
<link rel="stylesheet" href="{{ "/assets/css/classes.css" | relative_url }}">
{% if site.plugins contains "jekyll-feed" %}<link rel="alternate" href="{{ site.feed.path | default: "/feed.xml" | relative_url }}" type="application/atom+xml" title="{{ site.title }}">{% endif %}
{% if page.mathjax or site.mathjax %}
<link rel="stylesheet" href="{{ "/assets/katex/katex.min.css" | relative_url }}">
Expand Down
62 changes: 48 additions & 14 deletions _sass/highlight.sass → _sass/classes.sass
Original file line number Diff line number Diff line change
@@ -1,6 +1,52 @@
// https://github.com/richleland/pygments-css/blob/master/monokai.css <http://unlicense.org>
.title
font-size: 1.4em

.highlight
.more
margin: 2em 0 1em

.more a
border-radius: 2px
border: 1.5px solid $link-color
padding: .4em .8em
transition: .2s background, .2s color

.more a:hover
color: #fff
background: $link-color
text-decoration: inherit

.archive
font-size: 1.1em

.archive time
display: inline-block
min-width: 10ch
margin: 0 .2em

.icon
height: 1em
width: 1em
fill: currentColor
transition: .2s color
vertical-align: middle
margin-bottom: .15em

a:hover .icon
color: reduce(100)

.rouge-table
&, th, td, tr, pre
font-size: inherit
background: inherit !important
box-shadow: none
width: initial
margin: 0
padding: 0
.gl pre
margin: 0 1.5em 0 .25em
opacity: .5

.highlight // https://github.com/richleland/pygments-css/blob/master/monokai.css <http://unlicense.org>
pre
background: rgba(lighten($dark, 6%), 0.9)
color: white
Expand Down Expand Up @@ -83,15 +129,3 @@
color: #f92672
.gi
color: #a6e22e

.rouge-table
&, th, td, tr, pre
font-size: inherit
background: inherit !important
box-shadow: none
width: initial
margin: 0
padding: 0
.gl pre
margin: 0 1.5em 0 .25em
opacity: .5
44 changes: 0 additions & 44 deletions assets/css/classes.sass

This file was deleted.

2 changes: 1 addition & 1 deletion assets/css/frame.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---

@import index, font, basic, layout
@import index, font, basic, layout, classes

html
background: lighten($dark, 30%)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/index.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---

@import index, font, basic, layout
@import index, font, basic, layout, classes

body > header, body > article, body > footer
padding: 1.5em
Expand Down

0 comments on commit 236cd6d

Please sign in to comment.