daux.io/less/import/components.less

357 lines
7.4 KiB
Plaintext
Raw Normal View History

2014-02-16 12:28:06 +01:00
/* ===========================================================================================
Componenets
============================================================================================== */
a {
2014-02-16 12:43:16 +01:00
color: @light;
2014-02-16 12:28:06 +01:00
}
.btn {
2014-02-16 12:43:16 +01:00
&.btn-sidebar {
padding: 7px 10px;
.kill-background-image;
.kill-box-shadow;
background-color: @sidebar-hover;
border: none;
.icon-bar {
display: block;
width: 18px;
height: 2px;
margin-top: 2px;
margin-bottom: 3px;
background-color: @dark;
.kill-box-shadow;
}
&:hover {
.kill-box-shadow;
background-color: @dark;
.icon-bar {
background-color: @light;
.kill-box-shadow;
}
}
}
2014-02-16 12:28:06 +01:00
}
2014-02-16 12:43:16 +01:00
2014-02-16 12:28:06 +01:00
code {
2014-02-16 12:43:16 +01:00
color: @light;
2014-02-16 12:28:06 +01:00
}
//Navbar
.navbar {
2014-02-16 12:43:16 +01:00
.box-shadow();
margin-bottom: 0px;
z-index: 200;
.navbar-inner {
.kill-background-image;
background-color: @dark;
border-bottom: none;
padding: 6px 20px;
.brand {
color: @light;
text-shadow: none;
.roboto-slab.bold;
}
.navbar-text {
color: @light;
a {
color: @light;
}
}
@media (max-width: 767px) {
padding: 6px 10px; .navbar-text {
line-height: 16px;
margin: 12px 6px;
font-size: 12px;
}
}
}
@media (min-width: 768px) and (max-width: 979px) {
&.navbar-fixed-top {
position: fixed;
}
}
@media (max-width: 767px) {
&.navbar-fixed-top {
margin-left: 0px;
margin-right: 0px;
}
}
2014-02-16 12:28:06 +01:00
}
//Sidebar Nav List
.nav.nav-list {
2014-02-16 12:43:16 +01:00
padding-left: 0px;
padding-right: 0px;
li {
a {
margin: 0px;
padding: 6px 15px;
.roboto-slab.regular;
color: @dark;
font-size: 15px;
text-shadow: none;
border-top: 1px solid @lines;
&:hover {
color: @dark;
text-shadow: none;
background-color: @sidebar-hover;
}
}
&.active {
a {
background-color: @sidebar-hover;
}
}
&.open {
> ul {
display: block;
}
}
&:last-child {
&.open {
//border-bottom: none;
}
}
ul {
display: none;
margin-left: 15px;
li {
a {
.sans-serif(normal, 14px);
margin: 0px;
margin-left: -15px;
padding: 3px 30px;
border: none;
color: @text;
.opacity(0.70);
&:hover {
.opacity(1.0);
background-color: transparent;
}
}
&.active {
a {
color: @dark;
}
}
}
}
}
2014-02-16 12:28:06 +01:00
}
.page-header {
2014-02-16 12:43:16 +01:00
margin: 10px 0px;
padding: 0px;
h1 {
margin-top: 0px;
display: inline-block;
}
sub-heading {
padding: 0px, 0px, 20px;
}
2014-02-16 12:28:06 +01:00
}
2014-02-16 12:43:16 +01:00
2014-02-16 12:28:06 +01:00
pre {
2014-02-16 12:43:16 +01:00
border: none;
background-color: @light;
border-radius: 0;
padding: 10px;
margin-left: -20px;
padding-left: 30px;
margin-right: -20px;
padding-right: 30px;
code {
background: transparent;
border: none;
}
2014-02-16 12:28:06 +01:00
}
//Content pages float view
.float-view {
2014-02-16 12:43:16 +01:00
@media (min-width: 1150px) {
.content-page {
height: 100%;
overflow: auto;
padding: 0px !important;
background-color: transparent !important;
position: relative;
article {
width: 100%;
min-height: 100%;
overflow: auto;
position: relative;
z-index: 1;
&:before {
content: "";
width: 50%;
min-height: 100%;
overflow: auto;
background-color: white;
display: block;
margin: 0px;
position: absolute;
z-index: -1;
}
}
2014-02-16 12:28:06 +01:00
.hideCode:before {
2014-02-16 12:43:16 +01:00
width: 100% !important;
}
table {
float: left;
clear: left;
width: 47%;
margin-left: 1.5%;
margin-right: 1.5%;
background-color: white;
white-space: normal;
pre, code {
white-space: normal;
}
}
.page-header {
padding: 0px;
}
.page-header,
p, ul, ol, dl, h2, h3, h4, h5, h6 {
float: left;
clear: left;
width: 47%;
margin-left: 1.5%;
margin-right: 1.5%;
background-color: white;
&:before {
content: "";
width: 100%;
height: 10px;
display: block;
clear: both;
//border-top: 1px solid @dark;
}
p, ul, ol, dl, h2, h3, h4, h5, h6, pre {
float: none;
display: block;
}
2014-02-16 12:28:06 +01:00
}
2014-02-16 12:43:16 +01:00
.hideCode2 {
width: 900px !important;
width: calc(100% - 130px) !important;
}
ul, ol {
li {
margin-left: 30px;
}
}
pre {
float: left;
clear: right;
width: 47%;
border: none;
border-left: 10px solid white;
margin: 0px 0px 10px 0px;
padding: 0px 0px 0px 10px;
}
hideCode3 {
display: none;
}
}
}
2014-02-16 12:28:06 +01:00
}
//Tables
table {
2014-02-16 12:43:16 +01:00
width: 100%;
border-bottom: 1px solid @lines;
margin-bottom: 10px;
tr {
th, td {
padding: 8px;
line-height: 20px;
text-align: left;
vertical-align: top;
border-top: 1px solid @lines;
border-left: 1px solid @lines;
border-color: @lines !important;
&:last-child {
border-right: 1px solid @lines;
}
}
}
2014-02-16 12:28:06 +01:00
}
//Footer
.footer {
2014-02-16 12:43:16 +01:00
position: fixed;
bottom: 0;
left: 0;
padding: 15px;
2014-02-16 12:28:06 +01:00
}
//github ribbon
#github-ribbon {
2014-02-16 12:43:16 +01:00
position: absolute;
top: 50px;
right: 0;
z-index: 200;
2014-02-16 12:28:06 +01:00
}
.well {
2014-02-16 12:43:16 +01:00
&.well-sidebar {
.kill-box-shadow;
background-color: transparent;
border-radius: 0;
border: none;
2014-02-16 12:28:06 +01:00
2014-02-16 12:43:16 +01:00
a {
font-size: 13px;
.roboto-slab.regular;
color: @light;
line-height: 28px;
}
.twitter {
hr {
border-bottom: none;
margin-left: -20px;
margin-right: -20px;
}
}
}
}