birzha/modules/system/assets/less/styles.less

227 lines
4.3 KiB
Plaintext
Raw Normal View History

// Basic grid system
@import "../ui/less/site.less";
2015-05-28 10:44:07 +00:00
@import "../ui/less/icon.less";
2014-05-14 13:24:20 +00:00
2015-07-29 09:13:42 +00:00
@font-family-base: 'Open Sans', Arial, sans-serif;
2015-06-03 09:05:08 +00:00
@color-base: #405261;
@color-warning: #c84530;
@font-path: "../ui/font"; // For icon fonts
2014-05-14 13:24:20 +00:00
2015-06-03 09:05:08 +00:00
// Import back-end typography fonts
@type-font-path: "../../../backend/assets/font"; // For webfonts
@import "../../../backend/assets/less/core/fonts.less";
2014-05-14 13:24:20 +00:00
body {
padding-top: 20px;
2015-07-29 09:13:42 +00:00
font-family: @font-family-base;
2014-05-14 13:24:20 +00:00
background: #f3f3f3;
2015-06-03 09:05:08 +00:00
color: @color-base;
2014-05-14 13:24:20 +00:00
}
2015-07-29 09:13:42 +00:00
2014-05-14 13:24:20 +00:00
h1, h2, h3, h4, h5 {
2015-07-29 09:13:42 +00:00
font-family: @font-family-base;
2014-05-14 13:24:20 +00:00
text-transform: uppercase;
}
h1 {
2015-06-03 09:05:08 +00:00
font-weight: 300;
2014-05-14 13:24:20 +00:00
font-size: 50px;
margin-bottom: 15px;
i[class^="icon-"] {
&:before {
font-size: 46px;
}
}
}
i[class^="icon-"].warning {
2015-06-03 09:05:08 +00:00
color: @color-warning;
2014-05-14 13:24:20 +00:00
}
h3 {
font-size: 24px;
2015-06-03 09:05:08 +00:00
font-weight: 300;
2014-05-14 13:24:20 +00:00
}
p.lead {
font-size: 16px;
2015-06-03 09:05:08 +00:00
font-weight: 300;
2014-05-14 13:24:20 +00:00
}
ul.indicators {
list-style: none;
padding: 0;
margin: 0;
.clearfix;
li {
float: left;
margin-right: 50px;
&:last-child {
margin-right: 0;
}
h3 {
2015-06-03 09:05:08 +00:00
font-weight: 300;
2014-05-14 13:24:20 +00:00
font-size: 12px;
line-height: 100%;
margin-bottom: 7px;
}
p {
font-size: 20px;
2015-06-14 01:27:41 +00:00
font-weight: 600;
2014-05-14 13:24:20 +00:00
word-wrap: break-word;
}
}
}
/*
* Tables
*/
table.data-table {
width: 100%;
font-size: 12px;
border-collapse: collapse;
margin-bottom: 20px;
tr {
&:first-child th {
border-top: 0;
}
&:last-child td {
border-bottom: 0;
}
td:first-child,
th:first-child {
border-left: 0;
}
td:last-child,
th:last-child {
border-right: 0;
}
}
td, th {
vertical-align: top;
text-align: left;
2015-06-03 09:05:08 +00:00
font-weight: 300;
2014-05-14 13:24:20 +00:00
border: 1px solid #fff;
padding: 6px 8px;
&.right {
text-align: right;
}
}
thead {
th, th {
text-transform: uppercase;
background: #7b8892;
color: white;
}
}
tbody {
td, th {
background-color: white;
}
tr:nth-child(2n) {
td, th {
background-color: #d8d9db;
}
}
}
}
/*
* Error page
*/
.exception-name-block {
margin-bottom: 15px;
div, p {
2015-06-03 09:05:08 +00:00
font-weight: 300;
2014-05-14 13:24:20 +00:00
padding: 10px 15px;
}
div {
2015-06-03 09:05:08 +00:00
background: @color-warning;
2014-05-14 13:24:20 +00:00
color: white;
position: relative;
&:after {
position: absolute;
display: block;
content: " ";
bottom: -6px;
left: 20px;
width: 0px;
height: 0px;
border-style: solid;
border-width: 8px 8px 0 8px;
2015-06-03 09:05:08 +00:00
border-color: @color-warning transparent transparent transparent;
2014-05-14 13:24:20 +00:00
}
}
p {
background: #ebebeb;
margin-bottom: 0;
span {
2015-06-03 09:05:08 +00:00
color: lighten(@color-base, 30%);
2014-05-14 13:24:20 +00:00
}
}
}
.syntaxhighlighter {
margin-bottom: 30px;
background: white;
font: 12px/170% Monaco, Menlo, 'Ubuntu Mono', 'Droid Sans Mono', 'Courier New', monospace!important;
table {
width: 100%;
table-layout: fixed;
td {
padding: 5px 0;
&.gutter {
padding: 5px 10px;
width: 35px;
background: #7b8892;
color: white;
}
&.code {
overflow-x: auto;
width: 100% !important;
.container {
width: 100% !important;
padding: 0;
div.line {
white-space: nowrap;
padding-left: 10px;
&.highlighted {
2015-06-03 09:05:08 +00:00
background: @color-warning;
2014-05-14 13:24:20 +00:00
color: white;
}
code {
font: 12px/170% Monaco, Menlo, 'Ubuntu Mono', 'Droid Sans Mono', 'Courier New', monospace!important;
}
}
}
}
}
}
}