Stackedit/res/styles/main.less

1240 lines
22 KiB
Plaintext
Raw Permalink Normal View History

2013-08-30 22:45:29 +00:00
@import "../bower-libs/bootstrap/less/bootstrap.less";
2013-09-14 16:59:40 +00:00
@import "../bower-libs/ace/lib/ace/css/editor.css";
@import "../bower-libs/ace/lib/ace/ext/searchbox.css";
@import "../bower-libs/ace/lib/ace/theme/textmate.css";
2013-08-30 22:45:29 +00:00
@import "../bower-libs/google-code-prettify/src/prettify.css";
@import "../bower-libs/highlightjs/styles/default.css";
2013-09-03 10:37:59 +00:00
@import "../bower-libs/bootstrap-tour/src/less/bootstrap-tour.less";
2013-08-23 23:50:14 +00:00
@import "../libs/fontello/css/fontello.css";
2013-08-30 22:45:29 +00:00
@import "jquery.jgrowl.css";
2013-08-20 22:40:19 +00:00
/* Colors */
@transparent: fade(#000, 0%);
@primary-bg: #ddd;
@primary-bg-light: lighten(@primary-bg, 4%);
@primary-bg-lighter: lighten(@primary-bg, 8%);
@secondary-bg: #888;
@secondary-bg-light: lighten(@secondary-bg, 7%);
@secondary-bg-dark: darken(@secondary-bg, 7%);
@primary-color: #333;
@primary-color-light: lighten(@primary-color, 13%);
@primary-color-lighter: lighten(@primary-color, 20%);
2013-09-10 16:52:27 +00:00
@primary-color-lightest: lighten(@primary-color, 35%);
2013-08-20 22:40:19 +00:00
@primary-color-inv: #fff;
@bg-navbar-hover: @primary-bg-lighter;
2013-08-19 20:44:13 +00:00
@error-border: #ff8661;
2013-08-20 22:40:19 +00:00
@disabled-color: #ccc;
@panel-button-color: @primary-color-lighter;
@panel-bg: @primary-bg-lighter;
@panel-border-color: @primary-bg-light;
@folder-color: @primary-color-light;
2013-09-03 12:01:26 +00:00
@jgrowl-bg-color: fade(@secondary-bg-dark, 90%);
2013-08-20 22:40:19 +00:00
/* Sizes */
2013-08-19 20:44:13 +00:00
@menu-panel-width: 280px;
@document-panel-width: 350px;
2013-08-20 22:40:19 +00:00
@jgrowl-width: 260px;
2013-09-16 23:14:17 +00:00
@title-base-size: 14px;
2013-08-19 20:44:13 +00:00
/* Bootstrap */
2013-08-20 22:40:19 +00:00
@body-bg: @primary-bg-lighter;
@text-color: @primary-color;
@input-border: @primary-bg;
2013-08-19 20:44:13 +00:00
@input-height-base: 38px;
2013-08-20 22:40:19 +00:00
@dropdown-border: @primary-bg;
@pre-border-color: @primary-bg;
2013-08-23 23:50:14 +00:00
@navbar-default-bg: @primary-bg;
2013-08-20 22:40:19 +00:00
@nav-link-hover-bg: @primary-bg-lighter;
@nav-disabled-link-color: @disabled-color;
@nav-disabled-link-hover-color: @disabled-color;
2013-08-19 20:44:13 +00:00
@nav-tabs-border-color: @transparent;
2013-08-20 22:40:19 +00:00
@dropdown-link-color: @primary-color;
@dropdown-link-hover-bg: @secondary-bg;
@dropdown-link-active-color: @primary-color-inv;
@list-group-link-color: @primary-color;
2013-08-19 20:44:13 +00:00
@list-group-border: @transparent;
@list-group-active-bg: @dropdown-link-hover-bg;
2013-08-20 22:40:19 +00:00
@list-group-hover-bg: @primary-bg-lighter;
@input-color-placeholder: @disabled-color;
@btn-default-color: @primary-color;
2013-08-19 20:44:13 +00:00
@btn-default-bg: @transparent;
@btn-default-border: @transparent;
2013-08-20 22:40:19 +00:00
@btn-default-hover-bg: fade(#000, 5%);
@btn-primary-color: @primary-color-inv;
@btn-primary-bg: @secondary-bg;
2013-08-19 20:44:13 +00:00
@btn-primary-border: @transparent;
2013-08-20 22:40:19 +00:00
@btn-primary-hover-bg: darken(@secondary-bg, 8%);
@btn-success-color: @primary-color-light;
2013-08-23 23:50:14 +00:00
@btn-success-bg: @navbar-default-bg;
2013-08-19 20:44:13 +00:00
@btn-success-border: @transparent;
@btn-info-bg: @transparent;
2013-08-19 20:44:13 +00:00
@btn-info-border: @transparent;
@gray-lighter: @body-bg;
2013-08-20 22:40:19 +00:00
@modal-header-border-color: @primary-bg-light;
@modal-content-border-color: @primary-bg-light;
@modal-footer-border-color: @primary-bg-light;
@modal-content-separator-color: @primary-bg-lighter;
@modal-backdrop-bg: @secondary-bg-light;
2013-08-19 20:44:13 +00:00
@blockquote-border-color: fade(#000, 5%);
2013-08-20 22:40:19 +00:00
@code-color: @primary-color;
@code-bg: fade(#000, 5%);
2013-09-03 10:37:59 +00:00
@tooltip-max-width: 240px;
2013-08-20 22:40:19 +00:00
@close-color: @primary-color;
2013-09-03 10:37:59 +00:00
@popover-bg: @primary-bg-lighter;
@popover-border-color: @primary-bg-lighter;
@popover-arrow-color: @primary-bg-lighter;
@popover-arrow-outer-color: @primary-bg-lighter;
@popover-title-bg: @transparent;
2013-08-19 20:44:13 +00:00
2013-08-26 11:32:20 +00:00
// Copied from Bootstrap in order to have correct urls
2013-08-23 23:50:14 +00:00
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
background-image: url("@{file-1x}");
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
background-image: url("@{file-2x}");
background-size: @width-1x @height-1x;
}
}
2013-08-19 20:44:13 +00:00
2013-09-03 10:37:59 +00:00
2013-08-19 20:44:13 +00:00
body {
tab-size: 4;
}
2013-09-09 00:08:55 +00:00
.ui-layout-east, .ui-layout-south {
background-color: @body-bg;
}
2013-08-19 20:44:13 +00:00
#preview-contents {
padding: 15px;
2013-09-15 18:37:26 +00:00
margin: 0 auto 180px;
2013-08-19 20:44:13 +00:00
.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 @blockquote-border-color;
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: 1050 !important;
}
/*******************
* Buttons
*******************/
.btn {
padding: 8px 11px;
}
.btn-default:hover {
2013-08-20 22:40:19 +00:00
background-color: @btn-default-hover-bg;
2013-08-19 20:44:13 +00:00
}
.btn-primary:hover {
color: @btn-primary-color;
2013-08-20 22:40:19 +00:00
background-color: @btn-primary-hover-bg;
2013-08-19 20:44:13 +00:00
}
2013-08-22 00:19:59 +00:00
.btn-success:hover, .open .dropdown-toggle.btn-success {
2013-08-19 20:44:13 +00:00
color: @btn-success-color;
background-color: @bg-navbar-hover !important; // important to override .nav > li > a: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)");
}
2013-08-20 22:40:19 +00:00
.form-control.error {
2013-08-19 20:44:13 +00:00
border-color: @error-border;
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(255, 134, 97, 0.6)");
}
2013-08-20 22:40:19 +00:00
.help-block {
font-size: 12px;
}
2013-08-19 20:44:13 +00:00
// 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-content {
border-width: 5px;
}
/*******************
* Navbar
*******************/
.navbar {
position: static;
2013-08-23 23:50:14 +00:00
padding: 0;
border: 0;
border-radius: 0;
2013-08-19 20:44:13 +00:00
.left-space {
width: 30px;
2013-08-21 00:16:10 +00:00
height: @input-height-base;
2013-08-19 20:44:13 +00:00
}
.right-space {
width: 20px;
2013-08-21 00:16:10 +00:00
height: @input-height-base;
2013-08-19 20:44:13 +00:00
}
.nav {
float: left;
2013-09-03 11:29:19 +00:00
margin: 6px 10px;
height: @input-height-base;
2013-08-19 20:44:13 +00:00
& > 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;
}
}
}
}
2013-09-16 23:14:17 +00:00
.btn {
height: @input-height-base;
}
2013-08-19 20:44:13 +00:00
.btn-group > .btn {
&.disabled,
&.blocked,
&[disabled] {
* {
color: fade(@btn-success-color, 30%);
}
}
}
.file-title-navbar {
2013-09-16 23:14:17 +00:00
display: block;
2013-08-19 20:44:13 +00:00
padding: 4px 15px;
font-size: 20px;
font-weight: 200;
2013-09-16 23:14:17 +00:00
color: @btn-success-color;
2013-09-03 17:38:10 +00:00
max-width: 320px;
2013-08-19 20:44:13 +00:00
overflow: hidden;
i {
margin-right: 6px;
}
}
.input-file-title {
margin-right: 10px;
}
.working-indicator {
2013-08-22 00:19:59 +00:00
width: 50px;
height: 17px;
2013-08-19 20:44:13 +00:00
background-position: 0 0;
2013-08-22 00:19:59 +00:00
margin-top: 12px;
2013-08-19 20:44:13 +00:00
&.show {
2013-08-23 23:50:14 +00:00
.img-retina('../img/loader-default.gif', '../img/loader-default2x.gif', 50px, 17px);
2013-08-19 20:44:13 +00:00
}
}
}
/*********************
* Menu/Document panels
*********************/
// Common style
.menu-panel, .document-panel {
display: block;
position: absolute;
2013-08-21 00:16:10 +00:00
top: 0;
2013-08-19 20:44:13 +00:00
height: 100%;
2013-08-25 00:45:14 +00:00
z-index: 10;
2013-08-19 20:44:13 +00:00
overflow: initial;
.collapse-button i {
color: @panel-button-color;
2013-09-03 10:37:59 +00:00
font-size: 14px;
2013-08-19 20:44:13 +00:00
}
2013-09-16 23:14:17 +00:00
&.in .collapse-button {
background-color: @bg-navbar-hover;
}
2013-08-19 20:44:13 +00:00
.panel-content {
2013-08-25 20:57:56 +00:00
.box-shadow(0 6px 12px rgba(0,0,0,.175));
2013-08-19 20:44:13 +00:00
overflow: auto;
padding-bottom: 30px;
height: 100%;
a > i {
margin-right: 3px;
color: inherit;
}
}
}
.menu-panel {
2013-08-25 20:38:44 +00:00
width: @menu-panel-width !important;
2013-08-25 20:57:56 +00:00
margin-left: (-@menu-panel-width - 35);
2013-08-19 20:44:13 +00:00
-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 {
2013-08-25 20:38:44 +00:00
margin-left: 0;
2013-08-19 20:44:13 +00:00
}
.collapse-button {
2013-08-25 20:57:56 +00:00
right: -83px;
2013-08-19 20:44:13 +00:00
position: absolute;
margin-top: 6px;
padding: 2px 20px;
z-index: -1;
}
.panel-content {
2013-08-25 20:52:45 +00:00
background-color: @panel-bg;
2013-08-19 20:44:13 +00:00
padding-top: 6px;
2013-08-20 22:40:19 +00:00
border-right: 5px solid @panel-border-color;
2013-08-19 20:44:13 +00:00
}
}
.document-panel {
right: 0;
width: @document-panel-width !important;
2013-08-25 20:57:56 +00:00
margin-right: (-@document-panel-width - 35);
2013-08-19 20:44:13 +00:00
-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 {
2013-08-25 20:57:56 +00:00
left: -83px;
2013-08-19 20:44:13 +00:00
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;
2013-08-20 22:40:19 +00:00
border-left: 5px solid @panel-border-color;
2013-08-19 20:44:13 +00:00
.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;
2013-08-20 22:40:19 +00:00
border: 1px solid @primary-bg-light;
2013-08-19 20:44:13 +00:00
border-top: 0;
border-radius: 6px;
.form-control {
padding: 8px 30px 8px 12px;
}
.close {
2013-09-03 23:02:31 +00:00
position: absolute;
float: none;
line-height: 10px;
2013-09-03 22:57:34 +00:00
margin: 2px 0 2px -30px;
2013-08-19 20:44:13 +00:00
padding: 0 8px 4px;
font-weight: normal;
height: 34px;
}
}
.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;
min-width: 280px;
max-width: 400px;
overflow-x: hidden;
max-height: 400px;
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%;
}
}
}
}
.file-list .list-group-item {
padding: 0 3px;
}
.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;
2013-08-21 00:16:10 +00:00
height: @input-height-base;
2013-08-19 20:44:13 +00:00
}
}
.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;
}
/********************
2013-09-12 23:25:25 +00:00
* Preview/Editor extensions buttons
2013-08-19 20:44:13 +00:00
********************/
2013-09-12 23:25:25 +00:00
2013-08-19 20:44:13 +00:00
.extension-preview-buttons {
2013-09-15 01:35:58 +00:00
position: absolute;
z-index: 1;
2013-09-12 23:25:25 +00:00
margin-top: 6px;
2013-09-15 01:35:58 +00:00
right: 30px;
2013-09-12 23:25:25 +00:00
.ui-layout-resizer-south-closed & {
2013-08-19 20:44:13 +00:00
display: none !important;
}
.dropdown-menu {
border: 0;
margin-top: 1px;
}
.btn-group {
margin: 0 0 0 1px;
.btn {
position: initial;
2013-09-16 23:14:17 +00:00
background-color: fade(@primary-bg, 33%);
2013-08-19 20:44:13 +00:00
}
&.open .btn{
2013-08-20 22:40:19 +00:00
background-color: @primary-bg-light;
2013-08-19 20:44:13 +00:00
i {
2013-09-16 23:14:17 +00:00
color: @primary-color-light
2013-08-19 20:44:13 +00:00
}
}
}
.dropdown-menu {
2013-08-20 22:40:19 +00:00
background-color: @primary-bg-light;
2013-08-19 20:44:13 +00:00
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;
}
}
}
2013-09-11 23:26:47 +00:00
.extension-editor-buttons {
position: absolute;
2013-09-12 23:25:25 +00:00
display: inline-block;
vertical-align: top;
.btn {
2013-09-16 23:14:17 +00:00
background-color: fade(@primary-bg, 33%);
2013-09-12 23:25:25 +00:00
text-align: center;
height: 35px;
width: 35px;
padding: 0;
}
2013-09-11 23:26:47 +00:00
.ui-layout-resizer-east & {
bottom: 0;
}
.ui-layout-resizer-south & {
right: 0;
}
}
2013-08-19 20:44:13 +00:00
/**************************
* Settings dialog
**************************/
.modal-settings {
.modal-header {
padding-bottom: 0;
}
textarea {
max-width: 100%;
min-height: 100px;
}
.panel {
border: 0;
border-radius: inherit;
background: @modal-content-bg;
2013-08-20 22:40:19 +00:00
border-bottom: 1px solid @modal-content-separator-color;
.box-shadow(none);
2013-08-19 20:44:13 +00:00
}
.accordion-heading {
padding: 12px 15px;
.accordion-toggle {
display: inline;
padding: 0;
font-weight: bold;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
.checkbox {
margin-top: 0;
margin-bottom: 0;
}
}
.accordion-inner {
border: 0;
padding: 10px 40px 20px;
.form-horizontal {
.control-label {
text-align: left;
}
.form-inline .label-text {
margin-left: 15px
}
}
}
.tab-pane-button-container {
width: 220px;
margin: 10px auto 20px;
}
.tab-pane-button-container .btn {
text-align: initial;
padding-left: 15px;
}
.nav-tabs {
margin: 15px 0 0;
& > li > a {
&:hover, &:focus {
2013-08-20 22:40:19 +00:00
background-color: @btn-default-hover-bg;
2013-08-19 20:44:13 +00:00
}
}
& > li.active > a {
&, &:hover, &:focus {
2013-08-20 22:40:19 +00:00
color: @primary-color-inv;
2013-08-19 20:44:13 +00:00
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;
}
}
2013-08-22 19:10:57 +00:00
.publish-custom-template-collapse {
margin-bottom: 0;
textarea {
max-width: 100%;
min-height: 100px;
}
}
2013-08-19 20:44:13 +00:00
/*********************************
* UI Layout
*********************************/
.ui-layout-resizer {
overflow: visible !important;
font-size: 14px !important;
.btn {
float: none;
i {
2013-09-16 23:14:17 +00:00
color: fade(@primary-color-light, 30%);
2013-08-19 20:44:13 +00:00
}
&:hover,
&:focus,
&:active,
&.active {
2013-09-16 23:14:17 +00:00
background-color: mix(@primary-bg-lighter, @primary-bg, 50%);
2013-08-19 20:44:13 +00:00
i {
2013-09-16 23:14:17 +00:00
color: @primary-color-light
2013-08-19 20:44:13 +00:00
}
}
}
.ui-layout-toggler {
2013-09-03 10:37:59 +00:00
font-size: 22px !important;
2013-08-19 20:44:13 +00:00
&.ui-layout-toggler-east {
line-height: 55px;
&.ui-layout-toggler-east-open i:before {
2013-09-03 10:37:59 +00:00
content: '\e87e';
2013-08-19 20:44:13 +00:00
}
&.ui-layout-toggler-east-closed i:before {
2013-09-03 10:37:59 +00:00
content: '\e87d';
2013-08-19 20:44:13 +00:00
}
}
&.ui-layout-toggler-south {
&.ui-layout-toggler-south-open i:before {
2013-09-03 10:37:59 +00:00
content: '\e880';
2013-08-19 20:44:13 +00:00
}
&.ui-layout-toggler-south-closed i:before {
2013-09-03 10:37:59 +00:00
content: '\e87f';
2013-08-19 20:44:13 +00:00
}
}
&.ui-layout-toggler-north {
left: 0 !important;
line-height: 0;
i {
margin-top: -5px;
}
&.ui-layout-toggler-north-open i:before {
2013-09-03 10:37:59 +00:00
content: '\e87f';
2013-08-19 20:44:13 +00:00
}
&.ui-layout-toggler-north-closed i:before {
2013-09-03 10:37:59 +00:00
content: '\e880';
2013-08-19 20:44:13 +00:00
}
}
}
&.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
*********************/
a code {
color: inherit;
}
2013-09-16 23:14:17 +00:00
h1 { font-size: floor(@title-base-size * 2.60); }
h2 { font-size: floor(@title-base-size * 2.15); }
h3 { font-size: ceil(@title-base-size * 1.70); }
h4 { font-size: ceil(@title-base-size * 1.25); }
h5 { font-size: @title-base-size; }
h6 { font-size: ceil(@title-base-size * 0.85); }
2013-08-19 20:44:13 +00:00
h1 {
2013-09-03 17:28:30 +00:00
margin: 40px 0;
}
h2 {
margin: 30px 0;
}
h3 {
margin: 20px 0;
}
h4, h5, h6 {
margin: 15px 0;
2013-08-19 20:44:13 +00:00
}
p,
pre,
blockquote {
2013-09-03 17:28:30 +00:00
margin: 0 0 15px;
2013-08-19 20:44:13 +00:00
}
hr {
border-top: 1px solid #ddd;
margin: 30px 0;
}
2013-09-03 17:28:30 +00:00
code, pre {
font-family: Menlo, Consolas, "Courier New", monospace;
font-size: 12px !important;
}
// Need to force these values because of prettify
pre {
padding: ((@line-height-computed - 1) / 2) !important;
border: 1px solid @pre-border-color !important;
code {
background-color: transparent !important;
}
}
/* 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-width: 10px;
p {
margin-bottom: 15px;
2013-09-16 23:14:17 +00:00
font-size: @font-size-base;
line-height: @line-height-base;
2013-09-03 17:28:30 +00:00
}
ul:last-child,
ol:last-child {
margin-bottom: 0;
}
}
ul,ol {
margin-bottom: 15px;
2013-09-15 14:14:42 +00:00
ul,ol {
margin-bottom: 15px;
}
2013-09-03 17:28:30 +00:00
}
2013-09-15 21:03:18 +00:00
.toc ul {
list-style-type: none;
margin-bottom: 5px;
}
2013-08-20 22:40:19 +00:00
/*****************************
* Editor
*****************************/
2013-09-09 23:32:24 +00:00
.ace_editor {
color: @primary-color-light;
}
2013-09-11 23:26:47 +00:00
.ace-tm {
background-color: @input-bg;
2013-09-09 00:08:55 +00:00
2013-09-11 23:26:47 +00:00
.ace_marker-layer .ace_active-line {
background-color: @primary-bg-lighter;
}
.ace_print-margin {
2013-09-15 17:10:14 +00:00
background-color: fade(@primary-bg-lighter, 50%);
2013-09-11 23:26:47 +00:00
}
.ace_markup.ace_heading {
2013-09-12 23:25:25 +00:00
color: @primary-color;
2013-09-11 23:26:47 +00:00
font-weight: bold;
}
.ace_markup.ace_list {
color: @primary-color-lightest;
}
.ace_strong {
font-weight: bold;
}
.ace_emphasis {
2013-09-12 23:25:25 +00:00
color: @primary-color;
2013-09-11 23:26:47 +00:00
font-style: italic;
}
.ace_blockquote {
color: @primary-color-lightest;
font-style: italic;
}
.ace_code {
2013-09-15 21:03:18 +00:00
font-family: Menlo, Consolas, "Courier New", monospace;
2013-09-11 23:26:47 +00:00
color: @primary-color-lighter;
2013-09-15 21:03:18 +00:00
background-color: fade(@secondary-bg, 10%);
2013-09-11 23:26:47 +00:00
}
.ace_code_block {
2013-09-15 21:03:18 +00:00
font-family: Menlo, Consolas, "Courier New", monospace;
2013-09-11 23:26:47 +00:00
color: @primary-color;
}
.ace_description {
color: @primary-color-lighter;
}
2013-09-09 23:32:24 +00:00
}
2013-09-14 16:59:40 +00:00
.ace_search {
background-color: @primary-bg;
border: 0;
}
2013-08-19 20:44:13 +00:00
#wmd-input {
2013-09-12 23:25:25 +00:00
color: @primary-color-light;
2013-08-20 22:40:19 +00:00
.box-shadow(none);
2013-08-19 20:44:13 +00:00
resize: none;
border: none !important;
2013-09-12 23:25:25 +00:00
div& {
padding: 0;
}
2013-08-19 20:44:13 +00:00
}
.preview-container {
overflow: auto;
}
.wmd-prompt-background {
display: none;
}
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%;
2013-09-03 10:37:59 +00:00
padding-right: 5px;
2013-08-19 20:44:13 +00:00
}
.icon-folder-open {
font-size: 80%;
2013-09-03 10:37:59 +00:00
padding-right: 5px;
2013-08-19 20:44:13 +00:00
}
.icon-chart-bar {
font-size: 90%;
2013-09-03 10:37:59 +00:00
padding-right: 2px;
2013-08-19 20:44:13 +00:00
}
.icon-trash {
font-size: 95%;
2013-08-22 00:19:59 +00:00
}
.icon-folder {
margin-top: -2px;
2013-08-19 20:44:13 +00:00
}
// Provider's icons (the colored ones)
[class^="icon-provider-"], [class*=" icon-provider-"] {
2013-08-23 23:50:14 +00:00
.img-retina('../img/icons.png', '../img/icons2x.png', 256px, 16px);
2013-08-19 20:44:13 +00:00
width: 18px;
height: 16px;
2013-08-23 23:50:14 +00:00
margin-top: -2px;
2013-08-19 20:44:13 +00:00
}
.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;
}
.picker-dialog-bg {
z-index: 1040 !important;
}
2013-08-19 20:44:13 +00:00
.action-import-image-gplus {
float: left;
}
.tooltip-inner {
text-align: left;
}
.tooltip li {
line-height: 1.4;
}
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: 530px;
max-width: 530px;
height: 120px;
}
2013-09-03 17:28:30 +00:00
/*********************
* Bootstrap tour
*********************/
.popover {
2013-09-12 23:25:25 +00:00
max-width: 350px;
2013-09-03 21:51:39 +00:00
padding: 15px;
2013-09-03 17:28:30 +00:00
.box-shadow(0 5px 30px rgba(0,0,0,.4));
.popover-title {
font-weight: @headings-font-weight;
font-size: 24px;
2013-09-03 21:51:39 +00:00
padding: 10px 15px;
2013-09-03 17:28:30 +00:00
}
.disabled {
display: none;
}
}
2013-08-20 22:40:19 +00:00
/********************
* jGrowl
********************/
2013-08-19 20:44:13 +00:00
2013-08-20 22:40:19 +00:00
div.jGrowl {
z-index: 1040;
font-size: inherit;
div.jGrowl-notification, div.jGrowl-closer {
background-color: @jgrowl-bg-color;
width: @jgrowl-width;
margin: 20px 30px;
padding: 15px 20px;
-ms-filter: none;
filter: none;
border-radius: 5px;
}
div.jGrowl-notification {
min-height: 80px;
}
2013-08-19 20:44:13 +00:00
}
2013-08-20 22:40:19 +00:00
/*******************
* Viewer
*******************/
.viewer {
2013-08-21 00:16:10 +00:00
.document-panel .search-bar {
padding: 20px 20px 10px;
.input-group-btn {
display: none;
}
2013-08-20 22:40:19 +00:00
}
2013-09-16 23:14:17 +00:00
.ui-layout-toggler {
display: none !important;
}
2013-08-19 20:44:13 +00:00
}