catalogue
Version:
A Mongoose Based Data Viewer
487 lines (416 loc) • 8.22 kB
text/less
//-----------------------------------------------------------------
// Constants
//-----------------------------------------------------------------
@header-height : 120px;
@subheader-height : 60px;
@footer-height : 48px;
@header-background-color: #32393d;
@primary-font : 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif';
@secondary-font : 'Verdana','PT Mono';
//-----------------------------------------------------------------
// Imports
//-----------------------------------------------------------------
@import 'mixins';
//-----------------------------------------------------------------
// General Layout
//-----------------------------------------------------------------
body {
padding: 0;
margin: 0;
font-family: @primary-font;
font-size: 10px;
line-height: 14px;
color: #444;
background: #fafafa;
}
a {
color: #666;
}
//-----------------------------------------------------------------
// Header
//-----------------------------------------------------------------
#header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: @header-height;
background: @header-background-color;
text-align: center;
.transition(400ms);
cursor: pointer;
.logo {
float: left;
height: 42px;
margin: 18px 18px;
}
.menu-icon {
float: right;
width: 30px;
margin: 30px 24px;
.line {
float: right;
width: 18px;
height: 1px;
margin: 2px;
background: #ccc;
}
}
}
//-----------------------------------------------------------------
// Overlay Menu
//-----------------------------------------------------------------
#overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
.vertical-gradient(rgba(29,32,35,1); rgba(29,32,35,0.97); 20%; 40%);
z-index:999;
display:none;
padding: 60px 90px 120px 90px;
overflow: auto;
.logo {
float: left;
height: 42px;
margin-left: -12px;
margin-bottom: 120px;
}
a {
float: left;
width: 100%;
text-decoration: none;
font-size: 21px;
text-transform:uppercase;
line-height:36px;
color: #666;
&:hover {
color: #fff;
}
}
}
//-----------------------------------------------------------------
// Content
//-----------------------------------------------------------------
#results-container {
position: fixed;
top: @header-height;
left: 0;
right: 0;
bottom: @footer-height;
overflow: auto;
}
#document-view {
position: fixed;
top: @header-height + @subheader-height;
left: 0;
right: 0;
bottom: 0;
overflow: auto;
}
#subheader {
position: fixed;
top: @header-height;
left: 0px;
right: 0;
height: @subheader-height;
line-height: @subheader-height;
background: #eee;
.title {
float: left;
padding: 0 24px;
font-size: 14px;
text-transform: uppercase;
font-weight: bold;
color: #888;
text-decoration: none;
.icon {
float: left;
width: 12px;
margin-top: 24px;
padding-right: 18px;
.opacity(50);
}
}
.actions {
float: right;
}
.btn {
float: left;
height: @subheader-height;
padding: 0 30px;
margin: 0;
border: none;
border-left: 1px solid #ddd;
background: #eee;
font-size: 10px;
text-transform: uppercase;
font-family: 'Arial';
font-weight: bold;
color: #777;
cursor: pointer;
&:hover {
background: #e5e5e5;
}
}
}
.CodeMirror { height: 100% ; width: 100%; }
//-----------------------------------------------------------------
// Model Table
//-----------------------------------------------------------------
.model-table {
width: 100%;
border-collapse: collapse;
th {
text-align: left;
color: #99B5B2;
background: @header-background-color;
border-left: 1px solid #444;
padding: 0 12px 12px 12px;
text-transform: uppercase;
font-size: 10px;
line-height: 10px;
&:first-child {
border: none;
padding-left: 18px;
}
}
tr {
&:nth-child(odd) {
background: #f4f4f4 ;
}
&:hover {
td {
background: #e6f3eb;
border-color: #F2F2C6;
border-right: 1px solid #F2F2C6 ;
color: #406B68;
}
a { color: #406B68; }
.icon {
.opacity(70);
}
}
}
td {
font-family: @secondary-font;
border-right: 1px solid #eee;
&:first-child {
padding-left: 12px;
}
}
}
.cell-wrap {
float: left;
width: 90%;
margin: 6px 12px 6px 12px;
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
a {
float: left;
color: #888;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-decoration: none;
}
.icon {
position: relative;
top: 1px;
padding: 0 3px;
width: 10px;
.opacity(0);
}
}
//-----------------------------------------------------------------
// Footer
//-----------------------------------------------------------------
#footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: @footer-height;
line-height: @footer-height;
text-align: center;
background: #e1e1e1;
z-index: 2;
font-size: 10px;
text-transform: uppercase;
font-weight: bold;
color: #777;
overflow: hidden;
a {
color: #777;
display: inline-block;
height: @footer-height;
line-height: @footer-height;
padding: 0 24px;
margin: 0;
text-decoration: none;
cursor: pointer;
.transition(400ms);
&:hover {
background: #d5d5d5;
}
}
.btn-arrow {
display: none;
padding: 18px 24px;
margin: 0 6px;
}
.btn-add {
float: left;
.icon {
float: left;
width: 18px;
margin: 16px 0;
.opacity(60);
}
}
#view-options {
float: right;
}
}
//-----------------------------------------------------------------
// Modal
//-----------------------------------------------------------------
.modal-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background: rgba(0,0,0,0.3);
display: none;
.modal-window {
position: fixed;
top: 50%;
left: 50%;
z-index: 1050;
background: #f8f8f8;
width: 500px;
margin-top: -240px;
margin-left: -250px;
.box-shadow(0 0 30px rgba(0,0,0,0.1));
}
.modal-titlebar {
float: left;
width: 100%;
height: 65px;
line-height: 65px;
background: #fcfcfc;
border-bottom: 1px solid #eee;
.title {
float: left;
padding: 0 30px;
font-size: 13px;
text-transform: uppercase;
font-weight: bold;
color: #6E8F93;
}
.actions {
float: right;
height: 65px;
cursor: pointer;
&:hover {
background: #f5f5f5;
}
}
.icon {
float: left;
height: 18px;
padding: 24px 30px;
.opacity(50);
}
}
.modal-toolbar {
float: left;
width: 100%;
border-top: 1px solid #ddd;
background: #e5e5e5;
.btn-submit {
float: right;
width: 90px;
height: 30px;
line-height: 30px;
margin: 9px 12px;
font-weight: bold;
font-size: 10px;
text-transform: uppercase;
text-align: center;
border: none;
background: #6E8F93;
color: #fff;
font-family: 'Arial';
}
}
.modal-padding {
padding: 12px 12px 12px 30px;
}
.modal-container {
float: left;
width: 100%;
background: #f3f3f3;
td {
vertical-align: top;
border-bottom: 1px solid #e5e5e5;
padding: 6px 0;
}
tr:last-child { td { border: none; } }
.label {
float: left;
text-transform: uppercase;
font-size: 10px;
font-weight: bold;
color: #666;
padding: 12px 0;
}
input, textarea {
float: left;
width: 95%;
border: 1px solid #e5e5e5;
-webkit-appearance: none;
background: #fafafa;
outline: none;
font-size: 16px;
line-height: 24px;
padding: 6px 2%;
font-family: 'Arial';
color: #666;
}
textarea {
height: 54px;
}
select {
border: 1px solid #e5e5e5;
background: #fafafa;
color: #666;
width: 99%;
padding: 9px 2%;
font-size: 16px;
line-height: 1;
border-radius: 0;
-webkit-appearance: none;
outline: none;
font-family: 'Arial';
}
}
}
//-----------------------------------------------------------------
// Prompt
//-----------------------------------------------------------------
#model-prompt {
padding: 24px;
textarea {
width: 600px;
height: 150px;
padding: 12px;
font-size: 20px;
border: 1px solid #474747;
}
}