mirror of https://github.com/status-im/consul.git
add layout class names and subpage class
This commit is contained in:
parent
25f6a723de
commit
14b579afd9
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="page-<%= current_page.data.page_title ? "#{current_page.data.page_title}" : "home" %>">
|
<body class="page-<%= current_page.data.page_title ? "#{current_page.data.page_title} layout-#{current_page.data.layout} page-sub" : "home layout-#{current_page.data.layout}" %>">
|
||||||
<div id="header" class="<%= current_page.data.page_title == "home" ? "" : "navbar-static-top" %>">
|
<div id="header" class="<%= current_page.data.page_title == "home" ? "" : "navbar-static-top" %>">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
|
|
|
@ -2,11 +2,23 @@
|
||||||
// Docs
|
// Docs
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
body.layout-docs,
|
||||||
|
body.layout-intro{
|
||||||
|
background: #f7f3f9;
|
||||||
|
|
||||||
|
>.container{
|
||||||
|
.col-md-8[role=main]{
|
||||||
|
min-height: 600px;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.docs-sidebar{
|
.docs-sidebar{
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
margin-right: 4%;
|
margin-right: 4%;
|
||||||
background-color: @tan;
|
// background-color: @tan;
|
||||||
border-radius: @el-border-radius;
|
border-radius: @el-border-radius;
|
||||||
|
|
||||||
a{
|
a{
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
// Header
|
// Header
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
body.page-sub{
|
||||||
|
#header{
|
||||||
|
.consul-gradient-bg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#footer,
|
#footer,
|
||||||
#header {
|
#header {
|
||||||
.anti-alias();
|
.anti-alias();
|
||||||
|
@ -24,6 +30,7 @@
|
||||||
|
|
||||||
.navbar-toggle{
|
.navbar-toggle{
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
|
margin-bottom: 14px;
|
||||||
border: 2px solid @white;
|
border: 2px solid @white;
|
||||||
.icon-bar{
|
.icon-bar{
|
||||||
border: 1px solid @white;
|
border: 1px solid @white;
|
||||||
|
@ -200,14 +207,7 @@
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#header{
|
#header{
|
||||||
background: #694a9c; /* Old browsers */
|
.consul-gradient-bg();
|
||||||
background: -moz-linear-gradient(left, #694a9c 0%, #cd2028 100%); /* FF3.6+ */
|
|
||||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#694a9c), color-stop(100%,#cd2028)); /* Chrome,Safari4+ */
|
|
||||||
background: -webkit-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* Chrome10+,Safari5.1+ */
|
|
||||||
background: -o-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* Opera 11.10+ */
|
|
||||||
background: -ms-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* IE10+ */
|
|
||||||
background: linear-gradient(to right, #694a9c 0%,#cd2028 100%); /* W3C */
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#694a9c', endColorstr='#cd2028',GradientType=1 ); /* IE6-9 */
|
|
||||||
|
|
||||||
.navbar-right{
|
.navbar-right{
|
||||||
float: none !important;
|
float: none !important;
|
||||||
|
|
|
@ -15,14 +15,7 @@
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
margin-top: -92px;
|
margin-top: -92px;
|
||||||
color: @jumbotron-color;
|
color: @jumbotron-color;
|
||||||
background: #694a9c; /* Old browsers */
|
.consul-gradient-bg();
|
||||||
background: -moz-linear-gradient(left, #694a9c 0%, #cd2028 100%); /* FF3.6+ */
|
|
||||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#694a9c), color-stop(100%,#cd2028)); /* Chrome,Safari4+ */
|
|
||||||
background: -webkit-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* Chrome10+,Safari5.1+ */
|
|
||||||
background: -o-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* Opera 11.10+ */
|
|
||||||
background: -ms-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* IE10+ */
|
|
||||||
background: linear-gradient(to right, #694a9c 0%,#cd2028 100%); /* W3C */
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#694a9c', endColorstr='#cd2028',GradientType=1 ); /* IE6-9 */
|
|
||||||
|
|
||||||
&.mobile-hero{
|
&.mobile-hero{
|
||||||
background: transparent url( ../images/node-hero-pattern.jpg ) center center;
|
background: transparent url( ../images/node-hero-pattern.jpg ) center center;
|
||||||
|
|
|
@ -10,3 +10,15 @@
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.consul-gradient-bg(){
|
||||||
|
background: #694a9c; /* Old browsers */
|
||||||
|
background: -moz-linear-gradient(left, #694a9c 0%, #cd2028 100%); /* FF3.6+ */
|
||||||
|
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#694a9c), color-stop(100%,#cd2028)); /* Chrome,Safari4+ */
|
||||||
|
background: -webkit-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* Chrome10+,Safari5.1+ */
|
||||||
|
background: -o-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* Opera 11.10+ */
|
||||||
|
background: -ms-linear-gradient(left, #694a9c 0%,#cd2028 100%); /* IE10+ */
|
||||||
|
background: linear-gradient(to right, #694a9c 0%,#cd2028 100%); /* W3C */
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#694a9c', endColorstr='#cd2028',GradientType=1 ); /* IE6-9 */
|
||||||
|
|
||||||
|
}
|
|
@ -70,6 +70,24 @@ pre {
|
||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
body.page-sub #header {
|
||||||
|
background: #694a9c;
|
||||||
|
/* Old browsers */
|
||||||
|
background: -moz-linear-gradient(left, #694a9c 0%, #cd2028 100%);
|
||||||
|
/* FF3.6+ */
|
||||||
|
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #694a9c), color-stop(100%, #cd2028));
|
||||||
|
/* Chrome,Safari4+ */
|
||||||
|
background: -webkit-linear-gradient(left, #694a9c 0%, #cd2028 100%);
|
||||||
|
/* Chrome10+,Safari5.1+ */
|
||||||
|
background: -o-linear-gradient(left, #694a9c 0%, #cd2028 100%);
|
||||||
|
/* Opera 11.10+ */
|
||||||
|
background: -ms-linear-gradient(left, #694a9c 0%, #cd2028 100%);
|
||||||
|
/* IE10+ */
|
||||||
|
background: linear-gradient(to right, #694a9c 0%, #cd2028 100%);
|
||||||
|
/* W3C */
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#694a9c', endColorstr='#cd2028', GradientType=1);
|
||||||
|
/* IE6-9 */
|
||||||
|
}
|
||||||
#footer,
|
#footer,
|
||||||
#header {
|
#header {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -93,6 +111,7 @@ pre {
|
||||||
#footer .navbar-toggle,
|
#footer .navbar-toggle,
|
||||||
#header .navbar-toggle {
|
#header .navbar-toggle {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
|
margin-bottom: 14px;
|
||||||
border: 2px solid #ffffff;
|
border: 2px solid #ffffff;
|
||||||
}
|
}
|
||||||
#footer .navbar-toggle .icon-bar,
|
#footer .navbar-toggle .icon-bar,
|
||||||
|
@ -612,11 +631,19 @@ pre {
|
||||||
.people .person .bio {
|
.people .person .bio {
|
||||||
padding-left: 150px;
|
padding-left: 150px;
|
||||||
}
|
}
|
||||||
|
body.layout-docs,
|
||||||
|
body.layout-intro {
|
||||||
|
background: #f7f3f9;
|
||||||
|
}
|
||||||
|
body.layout-docs > .container .col-md-8[role=main],
|
||||||
|
body.layout-intro > .container .col-md-8[role=main] {
|
||||||
|
min-height: 600px;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
.docs-sidebar {
|
.docs-sidebar {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
margin-right: 4%;
|
margin-right: 4%;
|
||||||
background-color: #f0f0e5;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
.docs-sidebar a {
|
.docs-sidebar a {
|
||||||
|
|
Loading…
Reference in New Issue