Fix global variable name clash, Fix hamburger menu, Fix grid

This commit is contained in:
Jeremy Thomas 2016-01-30 21:40:28 +00:00
parent 1b3c65d917
commit 8b9122dd92
5 changed files with 38 additions and 25 deletions

View File

@ -33,7 +33,7 @@
display: flex display: flex
&.is-gapless &.is-gapless
& > .column + .column & > .column + .column
margin-left: 0 margin: 0
&.is-vcentered &.is-vcentered
align-items: center align-items: center
&.is-grid &.is-grid

View File

@ -20,6 +20,7 @@ $primary: $turquoise
// Typography // Typography
$family-sans-serif: "Helvetica Neue", "Helvetica", "Arial", sans-serif $family-sans-serif: "Helvetica Neue", "Helvetica", "Arial", sans-serif
$family-monospace: "Source Code Pro", "Monaco", "Inconsolata", monospace
$size-1: 48px $size-1: 48px
$size-2: 40px $size-2: 40px

View File

@ -6,18 +6,6 @@
@import messages @import messages
@import notifications @import notifications
.highlight
font-size: 12px
font-weight: normal
max-width: 100%
overflow: hidden
padding: 0
&:not(:last-child)
margin-bottom: 20px
pre
overflow: auto
max-width: 100%
.delete .delete
background: rgba(black, 0.2) background: rgba(black, 0.2)
border-radius: 290486px border-radius: 290486px
@ -68,37 +56,38 @@
cursor: pointer cursor: pointer
display: block display: block
height: $header-height height: $header-height
padding: 19px 17px
position: relative position: relative
width: $header-height width: $header-height
span span
background: $text background: $text
display: block display: block
height: 1px height: 1px
left: 17px left: 50%
margin-left: -7px
position: absolute position: absolute
top: 50%
transition: none $speed $easing transition: none $speed $easing
transition-property: background, left, opacity, transform transition-property: background, left, opacity, transform
width: 15px width: 15px
&:nth-child(1) &:nth-child(1)
top: 19px margin-top: -6px
&:nth-child(2) &:nth-child(2)
top: 24px margin-top: -1px
&:nth-child(3) &:nth-child(3)
bottom: 20px margin-top: 4px
&:hover &:hover
background: $background background: $background
&.is-active &.is-active
span span
background: $link background: $link
&:nth-child(1) &:nth-child(1)
left: 20px margin-left: -5px
transform: rotate(45deg) transform: rotate(45deg)
transform-origin: left top transform-origin: left top
&:nth-child(2) &:nth-child(2)
opacity: 0 opacity: 0
&:nth-child(3) &:nth-child(3)
left: 20px margin-left: -5px
transform: rotate(-45deg) transform: rotate(-45deg)
transform-origin: left bottom transform-origin: left bottom
@ -109,6 +98,29 @@
margin-bottom: 5px margin-bottom: 5px
text-transform: uppercase text-transform: uppercase
.highlight
font-size: 12px
font-weight: normal
max-width: 100%
overflow: hidden
padding: 0
&:not(:last-child)
margin-bottom: 20px
pre
overflow: auto
max-width: 100%
.image
display: block
position: relative
vertical-align: top
img
+overlay
display: block
width: 100%
&.is-3x2
padding-top: 66.6666%
.loader .loader
animation: spin-around 500ms infinite linear animation: spin-around 500ms infinite linear
border: 2px solid $border border: 2px solid $border

View File

@ -131,8 +131,8 @@
align-items: stretch align-items: stretch
display: flex display: flex
flex-direction: column flex-direction: column
height: 100vh
justify-content: space-between justify-content: space-between
min-height: 100vh
.tabs .tabs
a a
padding: 15px 20px padding: 15px 20px

View File

@ -9,8 +9,8 @@
@return $value @return $value
@function colorLuminance($color) @function colorLuminance($color)
$colors: ('red': red($color),'green': green($color),'blue': blue($color)) $color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
@each $name, $value in $colors @each $name, $value in $color-rgb
$adjusted: 0 $adjusted: 0
$value: $value / 255 $value: $value / 255
@if $value < 0.03928 @if $value < 0.03928
@ -18,8 +18,8 @@
@else @else
$value: ($value + .055) / 1.055 $value: ($value + .055) / 1.055
$value: powerNumber($value, 2) $value: powerNumber($value, 2)
$colors: map-merge($colors, ($name: $value)) $color-rgb: map-merge($color-rgb, ($name: $value))
@return (map-get($colors, 'red') * .2126) + (map-get($colors, 'green') * .7152) + (map-get($colors, 'blue') * .0722) @return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
@function closestEvenNumber($number) @function closestEvenNumber($number)
@if ($number % 2 == 0px) @if ($number % 2 == 0px)