summaryrefslogtreecommitdiff
path: root/web/css/_src
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2014-06-18 10:11:11 +0200
committerShevAbam <shevabam@gmail.com>2014-06-18 10:11:11 +0200
commit20705a550df5b13a544dc0865c6aef16e64c99d9 (patch)
treee396dface41e30d39a68d5fe66097b1f8f641a81 /web/css/_src
+ First commit (version 2.0)v2.0
Diffstat (limited to 'web/css/_src')
-rw-r--r--web/css/_src/_config.frontend.scss11
-rw-r--r--web/css/_src/_config.libs.scss26
-rw-r--r--web/css/_src/_mixins.scss36
-rw-r--r--web/css/_src/frontend.scss241
-rw-r--r--web/css/_src/utilities.scss145
5 files changed, 459 insertions, 0 deletions
diff --git a/web/css/_src/_config.frontend.scss b/web/css/_src/_config.frontend.scss
new file mode 100644
index 0000000..4c9a5fb
--- /dev/null
+++ b/web/css/_src/_config.frontend.scss
@@ -0,0 +1,11 @@
+@import "_mixins";
+
+/* Navbar */
+$navbar-height: 60px;
+
+/* Layout */
+$layout-bg-color: #fff;
+
+/* Basic colors */
+$main-color: #99AEC4;
+$text-color: #4D5157;
diff --git a/web/css/_src/_config.libs.scss b/web/css/_src/_config.libs.scss
new file mode 100644
index 0000000..df02c1c
--- /dev/null
+++ b/web/css/_src/_config.libs.scss
@@ -0,0 +1,26 @@
+/* Buttons */
+$button-default-color: #c5c5c5;
+$button-red: #ff0000;
+$button-orange: #fe9c43;
+$button-purple: #9a68c7;
+$button-blue: #3ba9e4;
+$button-green: #75b343;
+$button-black: #4b4b4b;
+$button-salmon: #F5AD9E;
+
+/* Labels */
+$label-default: #bfbfbf;
+$label-success: #46a546;
+$label-warning: #f89406;
+$label-important: #c43c35;
+$label-notice: #62cffc;
+$label-border-radius: 3px;
+$label-font-size: 10px;
+
+/* Classic box */
+$classic-box-color: darken(#99AEC4, 7%);
+$classic-box-background: #fff;
+$classic-box-border: lighten(#99AEC4, 16%);
+$classic-box-header-height: 35px;
+$classic-box-title-color: #fff;
+$classic-box-title-fontsize: 14px;
diff --git a/web/css/_src/_mixins.scss b/web/css/_src/_mixins.scss
new file mode 100644
index 0000000..d547306
--- /dev/null
+++ b/web/css/_src/_mixins.scss
@@ -0,0 +1,36 @@
+@mixin debug($color: red) {
+ border: 1px solid $color;
+}
+
+@mixin clearfix {
+ zoom:1;
+ &:before, &:after {
+ content: "\0020";
+ display: block;
+ height: 0;
+ overflow: hidden;
+ }
+ &:after {
+ clear: both;
+ }
+}
+
+@mixin letterpress($opacity) {
+ text-shadow: rgba(255, 255, 255, $opacity) 0 1px 0;
+}
+
+@mixin hide-text {
+ font: 0/0 a;
+ text-shadow: none;
+ color: transparent;
+}
+
+@mixin link-colors($normal, $hover: $normal, $visited: $normal) {
+ color: $normal;
+ &:hover, &:focus {
+ color: $hover;
+ }
+ &:visited {
+ color: $visited;
+ }
+}
diff --git a/web/css/_src/frontend.scss b/web/css/_src/frontend.scss
new file mode 100644
index 0000000..341aa75
--- /dev/null
+++ b/web/css/_src/frontend.scss
@@ -0,0 +1,241 @@
+@charset "UTF-8";
+@import "compass";
+@import "_config.frontend";
+
+html {
+ height: 100%;
+}
+
+body {
+ font-size: 14px;
+ font-family: OpenSans-Light, Verdana, sans-serif, Arial;
+ margin: 0 auto;
+ color: $text-color;
+ background-color: $layout-bg-color;
+}
+
+a {
+ color: $main-color;
+
+ &:hover {
+ color: lighten($main-color, 5%);
+ text-decoration: none;
+ }
+}
+
+::-moz-selection {
+ background-color: darken($main-color, 10%);
+ color: lighten($main-color, 30%);
+}
+::selection {
+ background-color: darken($main-color, 10%);
+ color: lighten($main-color, 30%);
+}
+
+/* --------------------- */
+/* == NAVBAR */
+/* --------------------- */
+
+nav[role="main"] {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ background-color: $main-color;
+ height: $navbar-height;
+ width: 100%;
+ padding-left: 5px;
+ color: #fff;
+ font-size: 16px;
+ text-align: center;
+ z-index: 2;
+
+ #appname {
+ float: left;
+ width: 120px;
+ text-align: left;
+
+ a {
+ color: #fff;
+ text-decoration: none;
+
+ &:first-child {
+ font-size: 24px;
+
+ span[class^="icon-"] {
+ font-size: 30px;
+ margin-right: 10px;
+ }
+ }
+
+ &:last-child {
+ display: block;
+ font-size: 11px;
+ font-style: italic;
+ }
+ }
+ }
+
+ #hostname {
+ float: left;
+ margin-left: 110px;
+ line-height: $navbar-height;
+ }
+
+ #update {
+ float: left;
+ margin-left: 100px;
+ line-height: $navbar-height;
+ font-size: 13px;
+
+ a {
+ color: #fff;
+ }
+ }
+
+ > ul {
+ text-align: right;
+ list-style-type: none;
+
+ > li {
+ display: inline-block;
+
+ > a {
+ display: inline-block;
+ padding: (($navbar-height / 2) - 17px) 15px;
+ color: #fff;
+ text-decoration: none;
+ @include transition(background 300ms ease-in-out);
+
+ &:hover {
+ background: lighten($main-color, 6%);
+ @include transition(background 300ms ease-in-out);
+ }
+
+ > span[class^="icon-"] {
+ font-size: 30px;
+ }
+ }
+ }
+ }
+}
+
+
+
+/* ------------------- */
+/* == MAIN */
+/* ------------------- */
+
+#main-container {
+ overflow: auto;
+ margin-top: $navbar-height;
+ background-color: $layout-bg-color;
+ padding: 20px 25px;
+}
+
+
+
+/* ---------------------- */
+/* == Listing */
+/* ---------------------- */
+ul.list {
+ margin-left: 20px;
+ list-style-type: none;
+
+ li {
+ position: relative;
+ padding-left: 12px;
+
+ &:before {
+ content: '';
+ width: 5px;
+ height: 5px;
+ background-color: $main-color;
+ position: absolute;
+ left: 0;
+ top: 9px;
+ }
+ }
+}
+
+
+
+/* --------------------- */
+/* == Tables */
+/* --------------------- */
+table:not(.no-style) {
+ width: 100%;
+ border-collapse: collapse;
+ border-spacing: 0;
+ font-size: 13px;
+
+ tr {
+ border-bottom: 1px solid #ebebeb;
+ border-top: 1px solid #fff;
+ }
+ thead tr {
+ border-top: none;
+ }
+ tbody tr:last-child {
+ border-bottom: none;
+ }
+ tbody tr:nth-child(odd) {
+ background: #f2f2f2;
+ }
+ tbody tr td, thead tr th {
+ padding: 6px 8px;
+ position: relative;
+ text-align: left;
+ }
+ tbody tr td:last-child, thead tr th:last-child {
+ border-right: none;
+ }
+ tbody tr td:first-child, thead tr th:first-child {
+ border-left: none;
+ }
+ thead {
+ color: #898989;
+ font-size: 13px;
+ font-weight: bold;
+
+ tr th {
+ text-align: center;
+ }
+ }
+ tbody tr:hover {
+ background: lighten($main-color, 25%);
+ }
+}
+
+table.firstBold tbody tr td:first-child {
+ font-weight: bold;
+ color: lighten($text-color, 20%);
+}
+
+
+/* --------------------------- */
+/* == Progress bar */
+/* --------------------------- */
+
+.progressbar-wrap {
+ width: 100%;
+ background-color: rgba($main-color, 0.2);
+
+ .progressbar {
+ text-indent: 5px;
+
+ &.green { background-color: #7BCE6C; }
+ &.orange { background-color: #E3BB80; }
+ &.red { background-color: #CF6B6B; }
+ }
+}
+
+
+/* --------------------------- */
+/* == Load Average */
+/* --------------------------- */
+.box#esm-load_average {
+ h3 {
+ font-weight: normal;
+ }
+}
diff --git a/web/css/_src/utilities.scss b/web/css/_src/utilities.scss
new file mode 100644
index 0000000..bf9fa5b
--- /dev/null
+++ b/web/css/_src/utilities.scss
@@ -0,0 +1,145 @@
+@charset "UTF-8";
+@import "compass";
+@import "_config.libs";
+
+
+/* -------------------- */
+/* == Fonts */
+/* -------------------- */
+
+@include font-face('OpenSans-Light', font-files('OpenSans-Light.ttf'));
+@include font-face('Entypo', font-files('entypo.ttf', 'entypo.eot', 'entypo.svg', 'entypo.woff'));
+
+@import "../libs/_icons.entypo";
+
+/* ------------------- */
+/* == Misc */
+/* ------------------- */
+
+* { padding: 0; margin: 0; }
+*:focus { outline: none; }
+
+*, *:before, *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+.cls:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+img { border: 0; }
+
+.debug { border: 1px solid red; }
+
+.u { text-decoration: underline; }
+.b { font-weight: bold; }
+.i { font-style: italic; }
+.r { text-decoration: line-through; }
+
+.text_left, .t-left { text-align: left; }
+.text_right, .t-right { text-align: right !important; }
+.text_center, .t-center { text-align: center; }
+
+.pfixed { position: fixed !important; }
+.f-left { float: left; }
+.f-right { float: right; }
+
+.column-left {
+ float: left;
+ width: 49%;
+}
+.column-right {
+ float: right;
+ width: 49%;
+}
+.column-33 {
+ width: 32%;
+}
+.column-66 {
+ width: 66%;
+}
+
+.m-l-10 { margin-left: 10px; }
+.m-r-10 { margin-right: 10px; }
+
+
+/*pre {
+ background-color: #fafafa;
+ border: 1px solid #ccc;
+ padding: 5px;
+ color: #666;
+}*/
+
+.w15p { width: 15%; }
+.w20p { width: 20%; }
+.w35p { width: 35%; }
+.w50p { width: 50%; }
+.w100p { width: 100%; }
+
+.w30 { width: 30px; }
+.w50 { width: 50px; }
+.w60 { width: 60px; }
+.w70 { width: 70px; }
+.w75 { width: 75px; }
+.w90 { width: 90px; }
+.w100 { width: 100px; }
+.w110 { width: 110px; }
+.w120 { width: 120px; }
+.w130 { width: 130px; }
+.w150 { width: 150px; }
+.w180 { width: 180px; }
+.w200 { width: 200px; }
+.w220 { width: 220px; }
+.w250 { width: 250px; }
+.w300 { width: 300px; }
+.w350 { width: 350px; }
+.w400 { width: 400px; }
+.w450 { width: 450px; }
+.w500 { width: 500px; }
+.w600 { width: 600px; }
+.w700 { width: 700px; }
+.w800 { width: 800px; }
+.w900 { width: 900px; }
+.w1000 { width: 1000px; }
+
+
+/* ------------------------ */
+/* == Scrollbar */
+/* ------------------------ */
+::-webkit-scrollbar-track {
+ box-shadow: inset 1px 0px 3px rgba(0,0,0,0.2);
+ background-color: #F5F5F5;
+}
+::-webkit-scrollbar-track:hover {
+ background-color: #EFEFEF;
+}
+::-webkit-scrollbar {
+ width: 8px;
+ background-color: #F5F5F5;
+}
+::-webkit-scrollbar-thumb {
+ background-color: #959595;
+}
+::-webkit-scrollbar-thumb:hover {
+ background-color: #6B6B6B;
+}
+::-webkit-scrollbar-thumb:active {
+ background-color: #555;
+}
+
+
+/* --------------------- */
+/* == Labels */
+/* --------------------- */
+@import "../libs/_labels";
+
+/* -------------------------- */
+/* == Classic box */
+/* -------------------------- */
+@import "../libs/_classic-box";