ruby-x.github.io/app/assets/stylesheets/hacker.sass

217 lines
4.1 KiB
Sass
Raw Normal View History

2018-04-10 20:48:28 +02:00
@import "colors"
@import "rouge"
$body-background: $cod-grey !default
$body-foreground: $gallery !default
$header: $conifer !default
$blockquote-color: $silver-chalice !default
$blockquote-border: $dove-grey !default
body
margin: 0
padding: 0
background: $body-background 0 0
2018-04-10 20:48:28 +02:00
color: $body-foreground
font-size: 16px
2018-04-15 14:24:29 +02:00
line-height: 1.4
2018-04-10 20:48:28 +02:00
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace
// Header, <header>
// header - container
// h1 - project name
// h2 - project description
2018-04-10 20:48:28 +02:00
header
background: rgba(0, 0, 0, 0.1)
width: 100%
border-bottom: 1px dashed $conifer //header
padding: 20px 0
margin: 0 0 40px 0
2018-04-11 09:20:08 +02:00
h1
font-size: 30px
margin: 0 0 0 -40px
font-weight: bold
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace
color: $conifer//$header
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(181, 232, 83, 0.1), 0 0 10px rgba(181, 232, 83, 0.1)
letter-spacing: -1px
-webkit-font-smoothing: antialiased
h1:before
content: "./ "
font-size: 24px
h2
font-size: 18px
font-weight: 300
color: #666
2018-04-10 20:48:28 +02:00
/* General & 'Reset' Stuff */
2018-04-10 20:48:28 +02:00
main , header , footer
2018-04-10 20:48:28 +02:00
section
display: block
margin: 0 0 20px 0
2018-04-10 20:48:28 +02:00
li
line-height: 1.4
2018-04-10 20:48:28 +02:00
#downloads .btn
display: inline-block
text-align: center
margin: 0
2018-04-10 20:48:28 +02:00
section img
max-width: 100%
2018-04-10 20:48:28 +02:00
h1, h2, h3, h4, h5, h6
font-weight: normal
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace
color: $header
letter-spacing: -0.03em
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(181, 232, 83, 0.1), 0 0 10px rgba(181, 232, 83, 0.1)
2018-04-10 20:48:28 +02:00
h1
font-size: 30px
h2
font-size: 24px
h3
font-size: 18px
h4
font-size: 14px
h5
font-size: 12px
text-transform: uppercase
margin: 0 0 5px 0
h6
font-size: 12px
text-transform: uppercase
color: #999
margin: 0 0 5px 0
dt
font-style: italic
font-weight: bold
ul li
list-style: none
margin-left: -30px
&:before
color: #b5e853
content: ">> "
2018-04-10 20:48:28 +02:00
blockquote
color: $blockquote-color
padding-left: 10px
border-left: 1px dotted $blockquote-border
2018-04-10 20:48:28 +02:00
pre
background: rgba(0, 0, 0, 0.9)
border: 1px solid rgba(255, 255, 255, 0.15)
padding: 10px
font-size: 16px
color: #b5e853
border-radius: 2px
word-wrap: normal
overflow: auto
overflow-y: hidden
2018-04-10 20:48:28 +02:00
code.highlighter-rouge
background: rgba(0,0,0,0.9)
border: 1px solid rgba(255, 255, 255, 0.15)
padding: 0px 3px
margin: 0px -3px
color: #aa759f
border-radius: 2px
2018-04-10 20:48:28 +02:00
table
width: 100%
margin: 0 0 20px 0
2018-04-10 20:48:28 +02:00
th
text-align: left
border-bottom: 1px dashed #b5e853
padding: 5px 10px
2018-04-10 20:48:28 +02:00
td
padding: 5px 10px
hr
height: 0
border: 0
border-bottom: 1px dashed #b5e853
color: #b5e853
/* Buttons*/
.btn
display: inline-block
background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.3), rgba(35, 35, 35, 0.3) 50%, rgba(10, 10, 10, 0.3) 50%, rgba(0, 0, 0, 0.3))
padding: 8px 18px
border-radius: 50px
border: 2px solid rgba(0, 0, 0, 0.7)
border-bottom: 2px solid rgba(0, 0, 0, 0.7)
border-top: 2px solid rgba(0, 0, 0, 1)
color: rgba(255, 255, 255, 0.8)
font-family: Helvetica, Arial, sans-serif
font-weight: bold
font-size: 13px
text-decoration: none
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75)
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05)
.btn:hover
background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.6), rgba(35, 35, 35, 0.6) 50%, rgba(10, 10, 10, 0.8) 50%, rgba(0, 0, 0, 0.8))
2018-04-10 20:48:28 +02:00
.btn .icon
display: inline-block
width: 16px
height: 16px
margin: 1px 8px 0 0
float: left
2018-04-10 20:48:28 +02:00
.btn-github .icon
opacity: 0.6
background: url("../images/blacktocat.png") 0 0 no-repeat
2018-04-10 20:48:28 +02:00
/* Links a, a:hover, a:visited */
2018-04-10 20:48:28 +02:00
a
color: #63c0f5
text-shadow: 0 0 5px rgba(104, 182, 255, 0.5)
2018-04-10 20:48:28 +02:00
/* Clearfix */
2018-04-10 20:48:28 +02:00
.cf:before, .cf:after
content: ""
display: table
2018-04-10 20:48:28 +02:00
.cf:after
clear: both
2018-04-10 20:48:28 +02:00
.cf
zoom: 1