hacks-guide-minimal-mistake.../assets/less/elements.less

75 lines
1.2 KiB
Text
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 ==================================== */
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 {
.container();
.clearfix();
@media @480px {
img {
.grid(12,6);
}
figcaption {
.grid(12,12);
}
}
2013-05-24 16:25:31 +02:00
}
.third {
.container();
.clearfix();
@media @480px {
img {
.grid(12,4);
}
figcaption {
.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;
.font-rem(14);
background-color: @black;
color: @white;
border: 2px solid @black !important;
.rounded(4px);
&:visited {
color: @white;
}
&:hover {
background-color: @white;
color: @black;
}
&:active {
.translate(0, 2px);
}
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;
.rounded(4px);
.box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05));
2013-05-24 16:25:31 +02:00
}