Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

scss #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

scss #13

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions scss/_blocks.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* =Blocks
-----------------------------------------------------------------------------*/

.blocks-2,
.blocks-3,
.blocks-4,
.blocks-5,
.blocks-6 {
padding-left: 0;
list-style: none;
margin-left: -$gridGutterWidth / ($gridWidth / 100) * 1%;
.clearfix {
& li {
height: auto;
float: left;
margin-bottom: $baseLine / $em em;
margin-left: $gridGutterWidth / ($gridWidth / 100) * 1%;
}
}
}

.blocks-2 > li { @include block(2); }
.blocks-3 > li { @include block(3); }
.blocks-4 > li { @include block(4); }
.blocks-5 > li { @include block(5); }
.blocks-6 > li { @include block(6); }

.block-first {
clear: both;
}

/* =Responsive
-----------------------------------------------------------------------------*/
@media only screen and (max-width: 767px) {

.blocks-2,
.blocks-3,
.blocks-4,
.blocks-5,
.blocks-6 {
margin-left: 0;
margin-bottom: $baseLine / $em em;
}

.blocks-2 > li,
.blocks-3 > li,
.blocks-4 > li,
.blocks-5 > li,
.blocks-6 > li {
float: none;
margin-left: 0;
width: 100%;
}

.blocks-mobile-50 > li,
.blocks-mobile-33 > li {
float: left;
margin-left: $gridGutterWidth / ($gridWidth/100)*1%;
}
.blocks-mobile-33,
.blocks-mobile-50 {
margin-left: -$gridGutterWidth / ($gridWidth/100)*1%;
}

.blocks-mobile-50 > li {
@include block(2);
}
.blocks-mobile-33 > li {
@include block(3);
}


}
170 changes: 170 additions & 0 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
/* =Buttons
-----------------------------------------------------------------------------*/
.btn {
display: inline-block;
vertical-align: top;

font-family: $controlsFontFamily;
font-size: $baseFontSize + 0px;
font-weight: 400;

line-height: 1;

text-align: center;
text-decoration: none;
color: $colorBody;

margin: 0;
border: none;
border-radius: 3px;
box-shadow: none;

cursor: pointer;

background: #eeeded;
padding: 9px 20px;
height: 2.3em;

&:hover {
color: rgba(0, 0, 0, .5);
background: #dbdada;
}
}
input[type="submit"].btn {
-webkit-appearance: none;
}
.btn-small {
font-size: $buttonsSmallFontSize;
padding: 7px 16px;
}
.btn-outline {
background: none;
border: 1px solid #ddd;
padding: 8px 19px;
&.btn-small {
padding: 6px 15px;
}
}


.btn-blue,
.btn-red,
.btn-green,
.btn-black {
color: #fff;
&:hover {
color: rgba(255, 255, 255, .7);
}
}
.btn-white {
background: #fff;
&:hover { background: darken(#fff, 5%); }
}
.btn-white.btn-outline {
background: none;
border-color: rgba(255, 255, 255, .85);
color: rgba(255, 255, 255, .85);
&:hover {
color: rgba(0, 0, 0, .9);
background: #fff;
}
}
.btn-blue {
background: $colorBlue;
&:hover { background: darken($colorBlue, 10%); }
}
.btn-red {
background: $colorRed;
&:hover { background: darken($colorRed, 10%); }
}
.btn-green {
background: $colorGreen;
&:hover { background: darken($colorGreen, 10%); }
}
.btn-yellow {
background: $colorYellow;
color: #000;
&:hover {
background: darken($colorYellow, 17%);
}
}
.btn-black {
background: #000;
&:hover { background: lighten(#000, 20%); }
}

.btn-active,
.btn[disabled],
.btn-disabled {
border: none;
background: none;
background-color: #dbdada;
color: rgba(0, 0, 0, .5);
&:hover {
color: rgba(0, 0, 0, .5);
}
}
.btn-active {
box-shadow: 0 1px 3px rgba(0, 0, 0, .4) inset;
}
.btn[disabled],
.btn-disabled {
cursor: default;
box-shadow: none;
}

.btn-blue.btn-active,
.btn-red.btn-active,
.btn-green.btn-active,
.btn-black.btn-active {
box-shadow: 0 1px 3px rgba(0, 0, 0, .7) inset;
}

.btn-blue.btn-active,
.btn-red.btn-active,
.btn-green.btn-active,
.btn-black.btn-active,
.btn-blue.btn-disabled,
.btn-red.btn-disabled,
.btn-green.btn-disabled,
.btn-black.btn-disabled,
.btn-blue[disabled],
.btn-red[disabled],
.btn-green[disabled],
.btn-black[disabled] {
color: rgba(255, 255, 255, .6);
&:hover {
color: rgba(255, 255, 255, .6);
}
}

.btn-white.btn-active,
.btn-white.btn-disabled,
.btn-white[disabled] {
background: darken(#fff, 5%);
}
.btn-blue.btn-active,
.btn-blue.btn-disabled,
.btn-blue[disabled] {
background: darken($colorBlue, 10%);
}
.btn-red.btn-active,
.btn-red.btn-disabled,
.btn-red[disabled] {
background: darken($colorRed, 10%);
}
.btn-green.btn-active,
.btn-green.btn-disabled,
.btn-green[disabled] {
background: darken($colorGreen, 10%);
}
.btn-yellow.btn-active,
.btn-yellow.btn-disabled,
.btn-yellow[disabled] {
background: darken($colorYellow, 17%);
}
.btn-black.btn-active,
.btn-black.btn-disabled,
.btn-black[disabled] {
background: lighten(#000, 30%);
}
Loading