This repository has been archived by the owner on Dec 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from 18F/new-styles
Adding in all those new styles
- Loading branch information
Showing
35 changed files
with
1,069 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* | ||
* Global mixins. | ||
*/ | ||
|
||
/* | ||
* Sets the font-size in rems with a px fallback. | ||
*/ | ||
@mixin font-size($sizeValue: 1.6) { | ||
font-size: ($sizeValue * 10) + px; | ||
font-size: $sizeValue + rem; | ||
} | ||
|
||
@mixin u-visually_hidden { | ||
position: absolute !important; | ||
top: -9999px !important; | ||
left: -9999px !important; | ||
} | ||
|
||
/* | ||
* Parses a text value to an int. | ||
*/ | ||
@function parseInt($n) { | ||
@return $n / ($n * 0 + 1); | ||
} | ||
|
||
/* | ||
* Sets the property to the values in rem, with a px fallback for old browsers. | ||
* | ||
* $property The css property to set the values on | ||
* $values A list of rem values to set on the property. | ||
* | ||
* Example: @include rem(margin, 1rem 0 2rem); | ||
*/ | ||
@mixin rem($property, $values) { | ||
$px : (); | ||
$rem: (); | ||
|
||
@each $value in $values { | ||
|
||
@if $value == 0 or $value == auto { | ||
$px : append($px , $value); | ||
$rem: append($rem, $value); | ||
} | ||
|
||
@else { | ||
$unit: unit($value); | ||
$val: parseInt($value); | ||
|
||
@if $unit == "px" { | ||
$px : append($px, $value); | ||
$rem: append($rem, ($val / 10 + rem)); | ||
} | ||
|
||
@if $unit == "rem" { | ||
$px : append($px, ($val * 10 + px)); | ||
$rem: append($rem, $value); | ||
} | ||
} | ||
} | ||
|
||
@if $px == $rem { | ||
#{$property}: $px; | ||
} @else { | ||
#{$property}: $px; | ||
#{$property}: $rem; | ||
} | ||
} | ||
|
||
// Mixin for generating flash messages - comes with bitters | ||
|
||
@mixin flash($color) { | ||
background: $color; | ||
color: darken($color, 60); | ||
font-weight: bold; | ||
margin-bottom: $base-line-height / 2; | ||
padding: $base-line-height / 2; | ||
|
||
a { | ||
color: darken($color, 70); | ||
|
||
&:hover { | ||
color: darken($color, 90); | ||
} | ||
} | ||
} | ||
|
||
// Mixin that gives all of the styles necessary to put a themify icon into CSS | ||
// Using the content property | ||
|
||
@mixin icon() { | ||
font-family: 'themify'; | ||
speak: none; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-variant: normal; | ||
text-transform: none; | ||
line-height: 1; | ||
|
||
/* Better Font Rendering =========== */ | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// MODULE: Alerts | ||
.vex.vex-theme-default { | ||
background-color: rgba(#fff, .5); | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
right: 0; | ||
left: 0; | ||
|
||
.vex-overlay { | ||
@include outer-container(); | ||
} | ||
|
||
.vex-content { | ||
@include font-size(1.8); | ||
background-color: $licorice-2; | ||
color: #fff; | ||
border-left: 10px solid $red; | ||
border-radius: 0 $base-border-radius $base-border-radius 0; | ||
box-shadow: 0 0 2px 0px rgba(0,0,0,.5); | ||
font-family: $sans-serif; | ||
} | ||
|
||
.vex-dialog-buttons { | ||
text-align: center; | ||
} | ||
|
||
.vex-dialog-button.vex-dialog-button-primary { | ||
@extend .primary; | ||
font-family: $sans-serif; | ||
width: 50%; | ||
display: inline-block; | ||
float: none; | ||
} | ||
|
||
} |
Oops, something went wrong.