hacks-guide-minimal-mistake.../_sass/elements.scss

125 lines
2.1 KiB
SCSS
Raw Normal View History

2013-05-24 16:25:31 +02:00
hr {
display: block;
margin: 1em 0;
padding: 0;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #fff;
2013-05-24 16:25:31 +02:00
}
/* Figures and images ==================================== */
figure {
2014-07-31 19:09:32 +02:00
margin-bottom: $indent-var;
}
2013-05-24 16:25:31 +02:00
article img {
max-width: 100%;
height: auto;
border-width: 0;
vertical-align: middle;
-ms-interpolation-mode: bicubic;
2013-05-24 16:25:31 +02:00
}
svg:not(:root) {
overflow: hidden;
2013-05-24 16:25:31 +02:00
}
.half {
2014-07-31 19:09:32 +02:00
@include container;
@include clearfix;
@media #{$micro} {
img {
2014-07-31 19:09:32 +02:00
@include grid(12,6);
}
figcaption {
2014-07-31 19:09:32 +02:00
@include grid(12,12);
}
}
2013-05-24 16:25:31 +02:00
}
.third {
2014-07-31 19:09:32 +02:00
@include container;
@include clearfix;
@media #{$micro} {
img {
2014-07-31 19:09:32 +02:00
@include grid(12,4);
}
figcaption {
2014-07-31 19:09:32 +02:00
@include grid(12,12);
}
}
2013-05-24 16:25:31 +02:00
}
2013-09-07 16:10:55 +02:00
/* Buttons ============================================== */
2013-05-24 16:25:31 +02:00
.btn {
display: inline-block;
margin-bottom: 20px;
padding: 8px 20px;
2014-07-31 19:09:32 +02:00
@include font-rem(14);
background-color: $primary;
color: $white;
border-width: 2px !important;
border-style: solid !important;
2014-07-31 19:09:32 +02:00
border-color: $primary;
@include rounded(3px);
&:visited {
2014-07-31 19:09:32 +02:00
color: $white;
}
&:hover {
2014-07-31 19:09:32 +02:00
background-color: $white;
color: $primary;
}
}
.btn-success {
2014-07-31 19:09:32 +02:00
background-color: $success;
color: $white;
border-color: $success;
&:visited {
2014-07-31 19:09:32 +02:00
color: $white;
}
&:hover {
2014-07-31 19:09:32 +02:00
background-color: $white;
color: $success;
}
}
.btn-warning {
2014-07-31 19:09:32 +02:00
background-color: $warning;
color: $white;
border-color: $warning;
&:visited {
2014-07-31 19:09:32 +02:00
color: $white;
}
&:hover {
2014-07-31 19:09:32 +02:00
background-color: $white;
color: $warning;
}
}
.btn-danger {
2014-07-31 19:09:32 +02:00
background-color: $danger;
color: $white;
border-color: $danger;
&:visited {
2014-07-31 19:09:32 +02:00
color: $white;
}
&:hover {
2014-07-31 19:09:32 +02:00
background-color: $white;
color: $danger;
}
}
.btn-info {
2014-07-31 19:09:32 +02:00
background-color: $info;
color: $white;
border-color: $info;
&:visited {
2014-07-31 19:09:32 +02:00
color: $white;
}
&:hover {
2014-07-31 19:09:32 +02:00
background-color: $white;
color: $info;
}
2013-05-24 16:25:31 +02:00
}
/* Well ================================================= */
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: #f5f5f5;
border: 1px solid #e3e3e3;
2014-07-31 19:09:32 +02:00
@include rounded(4px);
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05));
2013-05-24 16:25:31 +02:00
}