Stackedit/js/styles/default.less
2013-08-15 01:01:40 +01:00

1091 lines
18 KiB
Plaintext

@bg-light: #f2f2f2;
@preview-bg-light: #e8e8e8;
@bg-navbar-hover: @body-bg;
@text-inv: #fff;
@text-light: #888;
@error-border: #ff8661;
@menu-panel-width: 280px;
@document-panel-width: 350px;
@panel-bg: @bg-navbar-hover;
@folder-color: #555;
@transparent: fade(#000, 0%);
/* Bootstrap */
@body-bg: #f5f5f5;
@input-border: #ddd;
@input-height-base: 38px;
@dropdown-border: #ddd;
@pre-border-color: #ddd;
@navbar-bg: #ddd;
@navbar-border: @transparent;
@nav-disabled-link-color: #ccc;
@nav-disabled-link-hover-color: #bbb;
@dropdown-link-hover-bg: #888;
@dropdown-link-active-color: #fff;
@list-group-link-color: #333;
@list-group-border: @transparent;
@list-group-active-bg: @dropdown-link-hover-bg;
@input-color-placeholder: #ccc;
@btn-default-color: #333;
@btn-default-bg: @transparent;
@btn-default-border: @transparent;
@btn-primary-color: #fff;
@btn-primary-bg: #888;
@btn-primary-border: @transparent;
@btn-success-color: #555;
@btn-success-bg: @navbar-bg;
@btn-success-border: @transparent;
@btn-info-bg: @body-bg;
@btn-info-border: @transparent;
@gray-lighter: @body-bg;
@modal-header-border-color: #e8e8e8;
@modal-content-border-color: #e8e8e8;
@modal-footer-border-color: #e8e8e8;
@modal-content-separator-color: #eee;
body {
tab-size: 4;
}
#preview-contents {
padding: 15px;
margin-bottom: 50px;
.ui-layout-east & {
padding-left: 5px;
}
}
.working {
cursor: progress;
}
.btn,
.dropdown-menu {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
.list-group .nav {
border-left: 10px solid fade(#000, 5%);
margin-left: 10px;
}
.list-group-item {
padding: 10px 15px;
.list-group & {
border-radius: 0;
}
&.active:hover {
background-color: @list-group-active-bg;
}
}
.move-to-front {
z-index: 1031 !important;
}
/*******************
* Buttons
*******************/
.btn {
padding: 8px 11px;
}
.btn-default:hover {
background-color: fade(#000, 5%);
}
.btn-primary:hover {
color: @btn-primary-color;
}
.btn-success:hover {
color: @btn-success-color;
}
.btn-success:hover {
background-color: @bg-navbar-hover;
}
// Last dropdown-toggle in a button-group (Bootstrap override)
.btn-group>.btn+.dropdown-toggle {
padding-right: 11px;
padding-left: 11px;
}
/********************
* Input
********************/
// Fix form-inline broken since v3
.form-inline {
.col-lg-1 { width: percentage((1 / @grid-columns)); }
.col-lg-2 { width: percentage((2 / @grid-columns)); }
.col-lg-3 { width: percentage((3 / @grid-columns)); }
.col-lg-4 { width: percentage((4 / @grid-columns)); }
.col-lg-5 { width: percentage((5 / @grid-columns)); }
.col-lg-6 { width: percentage((6 / @grid-columns)); }
.col-lg-7 { width: percentage((7 / @grid-columns)); }
.col-lg-8 { width: percentage((8 / @grid-columns)); }
.col-lg-9 { width: percentage((9 / @grid-columns)); }
.col-lg-10 { width: percentage((10/ @grid-columns)); }
.col-lg-11 { width: percentage((11/ @grid-columns)); }
.col-lg-12 { width: 100%; }
* {float:none;}
}
.form-control:focus {
border-color: @input-border;
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(128, 128, 128, 0.6)");
}
.help-block {
font-size: 12px;
}
.modal textarea.error,.modal input.error {
border-color: @error-border;
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(255, 134, 97, 0.6)");
}
// Input add-on
.input-group-addon {
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
}
.input-group-btn {
.btn {
i {
font-size: 120%;
}
}
&:first-child .btn {
margin-right: 6px;
}
&:last-child .btn {
margin-left: 6px;
}
}
/*******************
* Modal
*******************/
.modal-backdrop {
background-color: fade(#999, 60%);
}
.modal-content {
border-width: 5px;
}
/*******************
* Navbar
*******************/
.navbar {
position: static;
padding: 0;
.left-space {
width: 30px;
height: 38px;
}
.right-space {
width: 20px;
height: 38px;
}
.nav {
float: left;
margin: 6px 10px 5px;
& > li {
display: inline-block;
}
// Dropdown submenu
&.pull-right {
float: right;
& > li > .dropdown-menu {
right: 0;
left: auto;
.dropdown-menu {
right: 100%;
left: auto;
margin-right: -1px;
margin-left: 0;
}
}
}
}
.btn-group > .btn {
&.disabled,
&.blocked,
&[disabled] {
* {
color: fade(@btn-default-color, 30%);
}
}
}
.file-title-navbar {
padding: 4px 15px;
font-size: 20px;
font-weight: 200;
color: #666;
max-width: 400px;
overflow: hidden;
i {
margin-right: 6px;
}
}
.input-file-title {
margin-right: 10px;
}
.working-indicator {
background-image: none !important;
width: 43px;
height: 11px;
background-position: 0 0;
margin-top: 15px;
&.show {
background-image: url("../../img/ajax-loader.gif") !important;
}
}
}
/*********************
* Menu/Document panels
*********************/
// Common style
.menu-panel, .document-panel {
display: block;
position: absolute;
height: 100%;
z-index: 10;
overflow: initial;
.box-shadow(0 6px 12px rgba(0,0,0,.175));
.collapse-button i {
color: #777;
font-size: 18px;
}
.panel-content {
overflow: auto;
padding-bottom: 30px;
height: 100%;
a > i {
margin-right: 3px;
color: inherit;
}
}
}
.menu-panel {
background-color: @panel-bg;
width: @menu-panel-width !important;
margin-left: (-@menu-panel-width - 32);
-webkit-transition: margin-left 0.35s ease;
-moz-transition: margin-left 0.35s ease;
-o-transition: margin-left 0.35s ease;
transition: margin-left 0.35s ease;
.sub-menu {
background-color: @list-group-bg;
}
&.in {
margin-left: 0;
.collapse-button {
background-color: @panel-bg;
}
}
.collapse-button {
right: -80px;
position: absolute;
margin-top: 6px;
padding: 2px 20px;
z-index: -1;
}
.panel-content {
padding-top: 6px;
border-right: 5px solid @preview-bg-light;
}
}
.document-panel {
right: 0;
width: @document-panel-width !important;
margin-right: (-@document-panel-width - 32);
-webkit-transition: margin-right 0.35s ease;
-moz-transition: margin-right 0.35s ease;
-o-transition: margin-right 0.35s ease;
transition: margin-right 0.35s ease;
&.in {
margin-right: 0;
.collapse-button {
background-color: @panel-bg;
}
}
.collapse-button {
left: -80px;
position: absolute;
margin-top: 6px;
padding: 7px 18px;
z-index: -1;
i.icon-folder-open {
font-size: 22px;
}
}
.panel-content {
background-color: @list-group-bg;
padding-top: 80px;
border-left: 5px solid @preview-bg-light;
.icon-layers {
font-size: 135%;
}
}
.search-bar {
position: absolute;
background-color: @panel-bg;
margin: -10px 25px 0;
padding: 20px 5px 10px 15px;
z-index: 3;
border: 1px solid #e8e8e8;
border-top: 0;
border-radius: 6px;
.form-control {
padding: 8px 30px 8px 12px;
}
.close {
position: absolute;
line-height: 10px;
margin-left: -30px;
margin-top: 5px;
padding: 8px;
font-weight: normal;
}
}
.list-group-item {
margin: 0;
}
.folder {
font-weight: bold;
color: @folder-color;
font-size: 15px;
border-bottom-color: @modal-content-separator-color;
}
.list-group {
margin: 0;
.nav {
border: 0;
margin: 0 20px 20px;
}
}
}
// Dropdown document selector
.dropdown-file-selector {
top: 6px;
right: 30px;
left: auto;
margin: 0;
max-height: 500px;
min-width: 280px;
overflow-y: auto;
}
/**************************
* Document manager
**************************/
.modal-document-manager {
.nav-pills {
margin-bottom: 15px;
}
.list-group .nav {
margin-left: 40px;
margin-bottom: 30px;
}
.list-group-item {
padding: 3px;
margin: 0;
i {
margin-right: 3px;
}
.btn {
float: right;
i {
margin: 0;
font-size: 105%;
&.icon-pencil {
font-size: 115%;
}
}
}
}
.folder {
font-weight: bold;
color: @folder-color;
font-size: 15px;
border-bottom-color: @modal-content-separator-color;
}
.checkbox {
float: right;
margin: 0;
padding: 0;
cursor: pointer;
input {
cursor: pointer;
margin: 0 16px;
height: 38px;
}
}
.input-rename {
width: 220px;
}
.name, .file-count {
padding: 9px 20px 9px 15px;
}
}
/********************
* Extensions buttons
********************/
#extension-buttons {
.btn-group {
margin: 0;
}
.link-container {
min-width: 280px;
white-space: normal;
.link-list {
margin-top: 20px;
margin-bottom: 20px;
& > * {
margin-bottom: 10px;
}
}
}
}
// Hack for nested btn-group
#extension-buttons>.btn-group>.btn,
.extension-preview-buttons>.btn-group>.btn {
border-radius: 0;
}
#extension-buttons>.btn-group:first-child>.btn,
.extension-preview-buttons>.btn-group:first-child>.btn {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
#extension-buttons>.btn-group:last-child>.btn,
.extension-preview-buttons>.btn-group:last-child>.btn {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/********************
* Preview extensions buttons
********************/
.extension-preview-buttons {
position: absolute;
right: 30px;
z-index: 1;
top: 6px;
.ui-layout-resizer-south-closed > & {
display: none !important;
}
.dropdown-menu {
border: 0;
margin-top: 1px;
}
.btn-group {
margin: 0 0 0 1px;
.btn {
position: initial;
}
&.open .btn{
background-color: @preview-bg-light;
i {
color: @btn-success-color
}
}
}
.dropdown-menu {
background-color: @preview-bg-light;
padding-bottom: 20px;
}
.markdown-syntax, .table-of-contents {
overflow-y: auto;
overflow-x: hidden;
padding-right: 20px;
margin-right: -20px;
width: 320px;
}
.markdown-syntax {
white-space: normal;
max-height: 350px;
}
.table-of-contents {
margin-left: -10px;
max-height: 400px;
ul {
margin-left: 10px;
padding-left: 10px;
}
}
}
/**************************
* Settings dialog
**************************/
.modal-settings {
.modal-header {
padding-bottom: 0;
}
textarea {
max-width: 100%;
min-height: 100px;
}
.accordion-group {
border: 0;
border-bottom: 1px solid @bg-light;
border-radius: inherit;
margin-bottom: 10px;
clear: both;
}
.accordion-heading {
padding: 8px 15px;
.accordion-toggle {
display: inline;
padding: 0;
font-weight: 500;
&:hover {
text-decoration: underline;
}
}
.checkbox {
margin-top: 0;
margin-bottom: 0;
}
}
.accordion-inner {
border: 0;
padding: 10px 40px;
.form-horizontal {
.control-label {
text-align: left;
}
.form-inline .label-text {
margin-left: 15px
}
}
}
.tab-pane-button-container {
width: 200px;
margin: 10px auto 20px;
}
.tab-pane-button-container .btn {
text-align: initial;
padding-left: 15px;
}
.nav-tabs {
border-bottom: 1px solid transparent;
margin: 15px 0 0;
& > li > a {
&:hover, &:focus {
background-color: @bg-light;
}
}
& > li.active > a {
&, &:hover, &:focus {
color: @text-inv;
background-color: @btn-primary-bg;
border-color: @btn-primary-bg;
}
}
}
}
/********************************
* Publish/Sync dialogs
********************************/
.modal-manage-sync .sync-list {
margin-bottom: 20px;
.input-group {
margin-bottom: 10px;
}
}
.modal-manage-publish .publish-list {
margin-bottom: 20px;
.input-group {
margin-bottom: 10px;
}
}
/*********************************
* UI Layout
*********************************/
.ui-layout-resizer {
overflow: visible !important;
font-size: 14px !important;
.btn {
background-color: fade(@navbar-bg, 50%);
float: none;
i {
color: fade(@btn-success-color, 30%);
}
&:hover,
&:focus,
&:active,
&.active {
background-color: fade(@navbar-bg, 50%);
i {
color: @btn-success-color
}
}
}
.ui-layout-toggler {
font-size: 22px !important;
background-color: transparent;
&.ui-layout-toggler-east {
line-height: 55px;
&.ui-layout-toggler-east-open i:before {
content: '\e950';
}
&.ui-layout-toggler-east-closed i:before {
content: '\e94f';
}
}
&.ui-layout-toggler-south {
&.ui-layout-toggler-south-open i:before {
content: '\e94d';
}
&.ui-layout-toggler-south-closed i:before {
content: '\e94e';
}
}
&.ui-layout-toggler-north {
left: 0 !important;
line-height: 0;
i {
margin-top: -5px;
}
&.ui-layout-toggler-north-open i:before {
content: '\e94e';
}
&.ui-layout-toggler-north-closed i:before {
content: '\e94d';
}
}
}
&.ui-layout-resizer-east .ui-layout-toggler-north {
width: 35px !important;
height: 60px !important;
}
&.ui-layout-resizer-south .ui-layout-toggler-north {
height: 35px !important;
}
}
/*********************
* Markdown
*********************/
code {
color: #333333;
background-color: fade(#000, 5%);
}
a code {
color: inherit;
}
h1 {
margin: 30px 0 30px;
}
.toc ul {
list-style-type: none;
}
p,
pre,
blockquote {
margin: 0 0 20px;
}
hr {
border-top: 1px solid #ddd;
margin: 30px 0;
}
#wmd-input {
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
#wmd-input,#md-section-helper {
resize: none;
border: none !important;
}
.preview-container {
overflow: auto;
}
.wmd-button-row {
padding: 0;
}
.wmd-spacer {
display: none;
}
.wmd-spacer + .wmd-button {
margin-left: 20px;
}
.wmd-prompt-background {
display: none;
}
.wmd-prompt-dialog {
border: 1px solid #999999;
background-color: @body-bg;
}
.wmd-prompt-dialog>div {
font-size: 0.8em;
font-family: arial, helvetica, sans-serif;
}
.wmd-prompt-dialog>form>input[type="text"] {
border: 1px solid #999999;
color: black;
}
.wmd-prompt-dialog>form>input[type="button"] {
border: 1px solid #888888;
font-family: trebuchet MS, helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
}
.dropdown-menu .divider.with-text {
height: auto;
margin-bottom: 2px;
background-color: transparent;
border-top: 1px solid #e5e5e5;
color: #ccc;
font-variant: small-caps;
font-weight: bold;
padding-left: 20px;
cursor: default;
}
div.dropdown-menu {
padding: 5px 20px;
}
div.dropdown-menu p,
div.dropdown-menu blockquote {
margin: 10px 0;
}
div.dropdown-menu .stat {
margin-bottom: 10px;
}
div.dropdown-menu i {
margin-right: 0;
}
div.dropdown-menu textarea {
width: 250px;
height: 150px;
resize: none;
}
.footnote {
vertical-align: top;
position: relative;
top: -0.5em;
font-size: 0.8em;
}
/***********************
* Icons
***********************/
[class^="icon-"], [class*=" icon-"] {
display: inline-block;
line-height: 14px;
vertical-align: middle;
background-repeat: no-repeat;
&.icon-white {
color: #fff;
}
}
// Custom icons (not from Font Awesome)
.icon-code {
font-size: 80%;
margin-left: -1px;
margin-right: 5px;
}
.icon-folder-open {
font-size: 80%;
margin-left: -1px;
margin-right: 5px;
}
.icon-chart-bar {
font-size: 90%;
margin-right: 2px;
}
.icon-trash {
font-size: 95%;
}
// Provider's icons (the colored ones)
[class^="icon-provider-"], [class*=" icon-provider-"] {
.img-retina('../../../../img/icons.png', '../../../../img/icons2x.png', 256px, 16px);
width: 18px;
height: 16px;
}
.icon-provider-stackedit {
background-position: 0 0;
}
.icon-provider-gdrive {
background-position: -18px 0;
&.realtime {
background-position: -162px 0;
}
}
.icon-provider-dropbox {
background-position: -37px 0;
}
.icon-provider-github,.icon-provider-gist {
background-position: -54px 0;
}
.icon-provider-blogger {
background-position: -72px 0;
}
.icon-provider-tumblr {
background-position: -90px 0;
}
.icon-provider-wordpress {
background-position: -108px 0;
}
.icon-provider-ssh {
background-position: -126px 0;
}
.icon-provider-gplus {
background-position: -144px 0;
}
/* Google picker */
.picker-dialog {
z-index: 1050 !important;
}
.action-import-image-gplus {
float: left;
}
/*
.nav>li>a:hover,.nav>li>a:focus {
background-color: @bg-light;
}
*/
.tooltip-inner {
text-align: left;
}
.tooltip li {
line-height: 1.4;
}
code, pre {
font-family: Menlo, Consolas, "Courier New", monospace;
}
/* Definition list */
dt,dd {
margin-top: 5px;
margin-bottom: 5px;
}
dd {
margin-left: 40px;
}
/* Table style */
table {
margin-bottom: 20px;
}
table th,table td {
padding: 8px;
line-height: 20px;
text-align: left;
vertical-align: top;
border-top: 1px solid #dddddd;
}
table th {
font-weight: bold;
}
table thead th {
vertical-align: bottom;
}
table caption+thead tr:first-child th,table caption+thead tr:first-child td,table colgroup+thead tr:first-child th,table colgroup+thead tr:first-child td,table thead:first-child tr:first-child th,table thead:first-child tr:first-child td
{
border-top: 0;
}
table tbody+tbody {
border-top: 2px solid #dddddd;
}
blockquote {
border-left: 10px solid fade(#000, 5%);
p {
margin-bottom: 20px;
font-size: 14px;
font-weight: 300;
line-height: 20px;
}
ul:last-child,
ol:last-child {
margin-bottom: 0;
}
}
ul,ol {
margin-bottom: 20px;
}
input[type="file"] {
line-height: inherit;
height: inherit;
border: none !important;
}
.drop-zone {
border: 2px dashed #bbb;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 40px;
text-align: center;
font-size: 24px;
color: #bbb;
}
.modal-import-harddrive-html textarea {
width: 500px;
max-width: 500px;
height: 100px;
}
#md-section-helper {
position: absolute;
top: -100px;
height: 1px;
padding: 0 6px;
overflow-y: scroll;
z-index: -1;
}
.lock-ui {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
}
.gecko #md-section-helper {
/* Firefox doesn't show the scrollbar if height is less than 40px */
height: 40px;
}
.opera #md-section-helper {
/* Opera needs to have the textarea in the viewport to evaluate size correctly */
top: 0;
}
/* Viewer */
.viewer #navbar {
position: fixed;
}
.viewer .navbar-inner {
background-color: rgba(215, 215, 215, 0.75) !important;
}
.viewer #preview-contents {
max-width: 1024px;
margin: 50px auto;
}
.viewer .btn-group {
margin-right: 0;
margin-left: 0;
}