Stackedit/public/res/styles/main.less

1315 lines
27 KiB
Plaintext
Raw Normal View History

2013-11-30 01:40:26 +00:00
@import "base.less";
2013-12-02 00:09:39 +00:00
@import (less) "../bower-libs/ace/lib/ace/css/editor.css";
@import (less) "../bower-libs/ace/lib/ace/ext/searchbox.css";
@import (less) "../bower-libs/ace/lib/ace/theme/textmate.css";
2013-09-03 10:37:59 +00:00
@import "../bower-libs/bootstrap-tour/src/less/bootstrap-tour.less";
2013-12-02 00:09:39 +00:00
@import (less) "jquery.jgrowl.css";
2013-08-20 22:40:19 +00:00
/* Colors */
2013-11-30 01:40:26 +00:00
@logo-yellow: #FFD900;
@logo-blue: #3399FF;
@logo-orange: #FF610D;
@logo-green: #8DC213;
2013-12-01 15:43:46 +00:00
@primary: #0080FF;
2013-11-30 01:40:26 +00:00
@secondary: @primary;
@tertiary: @primary;
@primary-desaturated: desaturate(@primary, 70%);
@secondary-desaturated: desaturate(@secondary, 85%);
@tertiary-desaturated: desaturate(@tertiary, 90%);
2013-08-20 22:40:19 +00:00
@transparent: fade(#000, 0%);
2013-11-30 01:40:26 +00:00
@primary-bg: lighten(@primary-desaturated, 42%);
@primary-bg-light: lighten(@secondary-desaturated, 46%);
2013-11-28 01:04:41 +00:00
@primary-bg-lighter: lighten(@secondary-desaturated, 48%);
2013-11-30 01:40:26 +00:00
@primary-bg-lightest: #fff;
@primary-border-color: fade(@primary, 10%);
2013-11-28 01:04:41 +00:00
@primary-color: @primary-desaturated;
@primary-color-dark: darken(@primary-color, 12.5%);
@primary-color-darker: darken(@primary-color, 25%);
@primary-color-darkest: darken(@primary-color, 37.5%);
2013-12-02 00:09:39 +00:00
@secondary-bg: @tertiary-desaturated;
@secondary-border-color: lighten(@primary-desaturated, 40%);
@secondary-color: @primary-desaturated;
@secondary-color-dark: darken(@primary-desaturated, 5%);
2013-11-28 01:04:41 +00:00
@secondary-color-darker: darken(@primary-desaturated, 15%);
@secondary-color-darkest: darken(@primary-desaturated, 40%);
2013-11-30 01:40:26 +00:00
@error-border: #FF6161;
2013-12-01 15:43:46 +00:00
@disabled-color: mix(@primary-color, @input-bg, 33%);
2013-12-02 00:09:39 +00:00
@panel-button-bg-color: #FFF;
2013-11-30 01:40:26 +00:00
@panel-button-border-fade: 75%;
2013-08-20 22:40:19 +00:00
@panel-bg: @primary-bg-lighter;
2013-11-30 01:40:26 +00:00
@panel-border-color: fade(@primary-desaturated, 10%);
2013-11-28 01:04:41 +00:00
@folder-color: @primary-color-darker;
2013-12-02 00:09:39 +00:00
@jgrowl-bg-color: fade(@modal-backdrop-bg, 90%);
2013-08-20 22:40:19 +00:00
/* Sizes */
2013-08-19 20:44:13 +00:00
@menu-panel-width: 280px;
2013-11-30 01:40:26 +00:00
@document-panel-width: 340px;
2013-08-20 22:40:19 +00:00
@jgrowl-width: 260px;
2013-11-28 01:04:41 +00:00
@resizer-size: 35px;
2013-08-19 20:44:13 +00:00
/* Bootstrap */
2013-08-20 22:40:19 +00:00
@body-bg: @primary-bg-lighter;
2013-11-28 01:04:41 +00:00
@text-color: @primary-color-darkest;
2013-12-02 00:09:39 +00:00
@link-color: desaturate(#0080FF, 25%);
2013-11-30 01:40:26 +00:00
@input-bg: @primary-bg-lightest;
@input-border: @secondary-border-color;
2013-08-19 20:44:13 +00:00
@input-height-base: 38px;
2013-12-02 00:09:39 +00:00
@blockquote-border-color: fade(@secondary-desaturated, 7.5%);
@blockquote-bg: fade(@secondary-desaturated, 5%);
@code-color: @primary-color-darkest;
@code-bg: fade(@secondary-desaturated, 5%);
@pre-bg: fade(@secondary-desaturated, 5%);
2013-11-30 01:40:26 +00:00
@pre-border-color: @secondary-border-color;
2013-12-02 00:09:39 +00:00
@hr-border: fade(@secondary-desaturated, 10%);
2013-11-30 01:40:26 +00:00
@navbar-height: 49px;
@navbar-default-bg: @primary-bg;
@nav-link-hover-bg: @btn-default-hover-bg;
2013-08-20 22:40:19 +00:00
@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-09-21 15:28:43 +00:00
@nav-tabs-link-hover-border-color: @transparent;
2013-12-02 00:09:39 +00:00
@dropdown-bg: @primary-bg-lightest;
2013-11-30 01:40:26 +00:00
@dropdown-border: @secondary-border-color;
2013-11-28 01:04:41 +00:00
@dropdown-link-color: @primary-color-darkest;
2013-11-30 01:40:26 +00:00
@dropdown-link-hover-color: darken(@primary-desaturated, 25%);
@dropdown-link-hover-bg: @btn-default-hover-bg;
@dropdown-header-color: fade(@primary-color, 50%);
2013-12-01 15:43:46 +00:00
@dropdown-link-disabled-color: @disabled-color;
2013-12-02 00:09:39 +00:00
@dropdown-divider-bg: @dropdown-border;
2013-11-28 01:04:41 +00:00
@list-group-link-color: @primary-color-darkest;
2013-11-30 01:40:26 +00:00
@list-group-bg: @primary-bg-lighter;
2013-08-19 20:44:13 +00:00
@list-group-border: @transparent;
2013-11-30 01:40:26 +00:00
@list-group-active-color: darken(@primary-desaturated, 25%);
@list-group-active-bg: @primary-bg;
@list-group-active-border: fade(@secondary, 5%);
@list-group-hover-bg: @btn-default-hover-bg;
@list-group-hover-border-color: fade(@secondary, 10%);
2013-12-01 15:43:46 +00:00
@input-color: @primary-color-dark;
2013-08-20 22:40:19 +00:00
@input-color-placeholder: @disabled-color;
2013-11-30 01:40:26 +00:00
@btn-default-color: @primary-color-darker;
2013-08-19 20:44:13 +00:00
@btn-default-bg: @transparent;
@btn-default-border: @transparent;
2013-11-30 01:40:26 +00:00
@btn-default-hover-bg: fade(@secondary-desaturated, 4%);
@btn-primary-color: @primary-color-darker;
@btn-primary-bg: @primary-bg;
@btn-primary-border: fade(@secondary, 5%);
2013-11-28 01:04:41 +00:00
@btn-success-color: darken(@primary-desaturated, 25%);
2013-12-01 15:43:46 +00:00
@btn-success-bg: @transparent;
2013-08-19 20:44:13 +00:00
@btn-success-border: @transparent;
2013-11-28 01:04:41 +00:00
@btn-info-color: fade(@secondary-desaturated, 35%);
@btn-info-bg: @transparent;
2013-08-19 20:44:13 +00:00
@btn-info-border: @transparent;
@gray-lighter: @body-bg;
2013-11-30 01:40:26 +00:00
@modal-header-border-color: @primary-bg;
2013-12-02 00:09:39 +00:00
@modal-content-bg: @primary-bg-lightest;
2013-11-30 01:40:26 +00:00
@modal-content-border-color: fade(@primary-desaturated, 25%);
@modal-footer-border-color: @primary-bg;
@modal-content-separator-color: @primary-bg-light;
2013-12-02 00:09:39 +00:00
@modal-backdrop-bg: @secondary-bg;
2013-09-03 10:37:59 +00:00
@tooltip-max-width: 240px;
2013-11-28 01:04:41 +00:00
@close-color: @primary-color-darkest;
2013-11-30 01:40:26 +00:00
@popover-bg: @primary-bg-light;
@popover-border-color: @secondary-border-color;
@popover-arrow-color: @primary-bg-light;
@popover-arrow-outer-color: @secondary-border-color;
2013-09-03 10:37:59 +00:00
@popover-title-bg: @transparent;
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;
}
#preview-contents {
padding: 15px;
2013-09-15 18:37:26 +00:00
margin: 0 auto 180px;
2013-08-19 20:44:13 +00:00
}
.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;
}
2013-11-30 01:40:26 +00:00
.dropdown-menu, .modal-content, .panel-content, .search-bar {
.box-shadow(0 6px 12px rgba(0,0,0,.125));
}
2013-12-01 15:43:46 +00:00
.dropdown-menu {
> li > a {
padding: 5px 20px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
&:hover,
&:focus {
border-color: @list-group-hover-border-color;
}
}
> .disabled > a {
&:hover,
&:focus {
border-color: transparent;
}
2013-11-30 01:40:26 +00:00
}
}
.modal-content {
background-color: @primary-bg-lighter;
}
.modal-body {
background-color: @primary-bg-lightest;
padding-bottom: 30px;
}
.modal-footer {
margin-top: 0;
}
2013-10-11 21:47:00 +00:00
a {
.transition(~"background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s");
}
2013-08-19 20:44:13 +00:00
.list-group .nav {
2013-11-30 01:40:26 +00:00
border-left: 10px solid @primary-bg;
margin-left: 15px;
> li > a {
border-top: 1px solid @transparent;
border-bottom: 1px solid @transparent;
&:hover,
&:focus {
border-top-color: @list-group-hover-border-color;
border-bottom-color: @list-group-hover-border-color;
}
&.active {
border-top-color: @list-group-active-border;
border-bottom-color: @list-group-active-border;
}
}
2013-08-19 20:44:13 +00:00
}
2013-12-02 00:09:39 +00:00
.nav-pills > li {
> a {
border: 1px solid @transparent;
&:hover,
&:focus {
border-color: @list-group-hover-border-color;
}
}
&.disabled > a {
&:hover,
&:focus {
border-color: @transparent;
}
}
&.open > a {
&,
&:hover,
&:focus {
border-color: @list-group-hover-border-color;
}
}
}
2013-08-19 20:44:13 +00:00
.list-group-item {
padding: 10px 15px;
2013-11-30 01:40:26 +00:00
margin-bottom: 0;
2013-08-19 20:44:13 +00:00
.list-group & {
border-radius: 0;
}
2013-11-30 01:40:26 +00:00
a&:hover,
a&:focus {
color: darken(@secondary, 30%);
border-top-color: @list-group-hover-border-color;
border-bottom-color: @list-group-hover-border-color;
}
2013-08-19 20:44:13 +00:00
}
.move-to-front {
z-index: 1050 !important;
}
/*******************
* Buttons
*******************/
.btn {
padding: 8px 11px;
2013-11-28 01:04:41 +00:00
.transition(~"background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s");
2013-08-19 20:44:13 +00:00
}
2013-11-30 01:40:26 +00:00
.btn-default {
&:hover,
&:focus,
&:active,
.open &.dropdown-toggle {
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);
background-color: @btn-default-hover-bg !important; // important to override .nav > li > a:hover
}
2013-08-19 20:44:13 +00:00
}
2013-11-30 01:40:26 +00:00
.btn-primary {
&:hover,
&:focus,
&:active,
.open &.dropdown-toggle {
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);
background-color: mix(@primary-desaturated, @btn-primary-bg, 7.5%) !important; // important to override .nav > li > a:hover
}
2013-08-19 20:44:13 +00:00
}
2013-11-28 01:04:41 +00:00
.btn-success {
&:hover,
&:focus,
&:active,
2013-11-30 01:40:26 +00:00
.open &.dropdown-toggle {
2013-11-28 01:04:41 +00:00
color: darken(@primary, 30%);
2013-11-30 01:40:26 +00:00
border-color: @primary-border-color;
2013-11-28 01:04:41 +00:00
background-color: fade(@primary-desaturated, 7.5%) !important; // important to override .nav > li > a:hover
}
}
.btn-info {
&:hover,
&:focus,
&:active,
2013-11-30 01:40:26 +00:00
.open &.dropdown-toggle {
2013-11-28 01:04:41 +00:00
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);
2013-11-30 01:40:26 +00:00
background-color: @primary-bg-light !important; // important to override .nav > li > a:hover
2013-11-28 01:04:41 +00:00
}
}
.btn-group {
.btn + .btn,
.btn + .btn-group,
.btn-group + .btn,
.btn-group + .btn-group {
margin-left: 0;
}
2013-08-19 20:44:13 +00:00
}
// 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 Bootstrap v3
2013-08-19 20:44:13 +00:00
.form-inline {
2013-12-01 15:43:46 +00:00
.form-control {
display: inline-block;
}
.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;}
2013-08-19 20:44:13 +00:00
}
2013-11-30 01:40:26 +00:00
.form-control-focus(@color: @secondary-desaturated) {
@color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
&:focus {
border-color: @input-border;
outline: 0;
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 12px @{color-rgba}");
}
2013-08-19 20:44:13 +00:00
}
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 {
2013-12-01 15:43:46 +00:00
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
a& {
color: @link-color;
}
2013-08-19 20:44:13 +00:00
}
.input-group-btn {
.btn {
i {
font-size: 120%;
}
}
&:first-child .btn {
margin-right: 6px;
}
&:last-child .btn {
margin-left: 6px;
}
}
/*******************
* Navbar
*******************/
.navbar {
position: static;
2013-08-23 23:50:14 +00:00
padding: 0;
border: 0;
2013-11-30 01:40:26 +00:00
border-top: 1px solid @primary-border-color;
2013-08-23 23:50:14 +00:00
border-radius: 0;
2013-12-01 15:43:46 +00:00
.left-space, .right-space {
2013-11-28 01:04:41 +00:00
width: 25px;
2013-08-21 00:16:10 +00:00
height: @input-height-base;
2013-08-19 20:44:13 +00:00
}
.nav {
float: left;
2013-11-28 01:04:41 +00:00
margin: 5px 10px;
2013-09-03 11:29:19 +00:00
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-12-02 02:38:52 +00:00
display: inline-block;
vertical-align: middle;
2013-08-19 20:44:13 +00:00
padding: 4px 15px;
font-size: 20px;
font-weight: 200;
max-width: 280px;
2013-08-19 20:44:13 +00:00
overflow: hidden;
white-space: nowrap;
2013-08-19 20:44:13 +00:00
}
.input-file-title {
margin-right: 10px;
}
.working-indicator {
2013-12-02 02:38:52 +00:00
display: inline-block;
vertical-align: middle;
2013-11-17 13:32:53 +00:00
overflow: hidden;
height: @input-height-base;
2013-11-23 15:41:02 +00:00
width: 65px;
2013-12-02 02:38:52 +00:00
padding-top: 9px;
2013-11-17 13:32:53 +00:00
.bar {
2013-11-16 18:09:33 +00:00
display: inline-block;
2013-11-21 17:45:47 +00:00
width: 10px;
2013-12-01 15:43:46 +00:00
height: 6px;
2013-11-17 13:32:53 +00:00
border-radius: 1px;
2013-11-16 18:09:33 +00:00
margin: 0 2px;
2013-11-23 15:41:02 +00:00
opacity: 0.25;
2013-11-17 13:32:53 +00:00
background-color: @btn-success-color;
2013-12-01 15:43:46 +00:00
animation: indicator 0.6s ease-out infinite;
-webkit-animation: indicator 0.6s ease-out infinite; /* Safari and Chrome */
2013-08-19 20:44:13 +00:00
}
}
2013-12-01 15:43:46 +00:00
.left-buttons-dropdown, .right-buttons-dropdown {
> .nav {
margin-left: 0;
margin-right: 0;
}
}
div.dropdown-menu {
top: initial;
padding: 5px;
}
2013-08-19 20:44:13 +00:00
}
2013-11-17 13:32:53 +00:00
@keyframes indicator {
2013-12-01 15:43:46 +00:00
from {opacity: 1;}
2013-11-17 13:32:53 +00:00
to {opacity: 0.25;}
}
@-webkit-keyframes indicator /* Safari and Chrome */ {
2013-12-01 15:43:46 +00:00
from {opacity: 1;}
2013-11-17 13:32:53 +00:00
to {opacity: 0.25;}
}
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;
2013-11-28 01:04:41 +00:00
.collapse-button {
2013-12-02 00:09:39 +00:00
background-color: @panel-button-bg-color;
2013-11-28 01:04:41 +00:00
height: @input-height-base;
border-radius: 8px;
.box-shadow(~"0 0 1px rgba(0,0,0,.5)");
&:active {
.box-shadow(~"inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 1px rgba(0,0,0,.5)");
}
i {
color: #737373;
font-size: 14px;
}
}
.collapse-button:hover, &.in .collapse-button, &.collapsing .collapse-button {
border-width: 1px;
2013-08-19 20:44:13 +00:00
}
.panel-content {
overflow: auto;
padding-bottom: 30px;
height: 100%;
a > i {
color: inherit;
}
}
}
.menu-panel {
2013-08-25 20:38:44 +00:00
width: @menu-panel-width !important;
2013-11-30 01:40:26 +00:00
margin-left: (-@menu-panel-width - 15);
2013-10-11 21:47:00 +00:00
.transition(~"margin-left ease-in-out 0.35s");
2013-08-19 20:44:13 +00:00
.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-11-30 01:40:26 +00:00
border-top: 5px solid fade(@logo-yellow, @panel-button-border-fade);
border-right: 6px solid fade(@logo-blue, @panel-button-border-fade);
border-bottom: 5px solid fade(@logo-orange, @panel-button-border-fade);
right: -50px;
2013-08-19 20:44:13 +00:00
position: absolute;
margin-top: 6px;
z-index: -1;
2013-11-28 01:04:41 +00:00
padding: 0 12px 0 50px;
.transition(~"border-width ease-in-out .15s, right ease-in-out 0.15s");
}
.collapse-button:hover, &.in .collapse-button, &.collapsing .collapse-button {
2013-11-30 01:40:26 +00:00
right: -55px;
2013-08-19 20:44:13 +00:00
}
.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-11-30 01:40:26 +00:00
border-right: 1px solid @panel-border-color;
2013-10-06 14:34:40 +00:00
& > .nav > li > a {
&:hover, &:active {
2013-10-11 21:47:00 +00:00
background-color: inherit;
2013-10-06 14:34:40 +00:00
}
}
2013-08-19 20:44:13 +00:00
}
}
.document-panel {
right: 0;
width: @document-panel-width !important;
2013-11-30 01:40:26 +00:00
margin-right: (-@document-panel-width - 15);
2013-10-11 21:47:00 +00:00
.transition(~"margin-right ease-in-out 0.35s");
2013-08-19 20:44:13 +00:00
&.in {
margin-right: 0;
2013-09-28 16:34:29 +00:00
}
2013-08-19 20:44:13 +00:00
.collapse-button {
2013-11-30 01:40:26 +00:00
border-top: 5px solid fade(@logo-yellow, @panel-button-border-fade);
border-left: 6px solid fade(@logo-green, @panel-button-border-fade);
border-bottom: 5px solid fade(@logo-orange, @panel-button-border-fade);
left: -50px;
2013-08-19 20:44:13 +00:00
position: absolute;
margin-top: 6px;
2013-11-28 01:04:41 +00:00
padding: 0 50px 0 6px;
2013-08-19 20:44:13 +00:00
z-index: -1;
2013-11-28 01:04:41 +00:00
.transition(~"border-width ease-in-out .15s, left ease-in-out 0.15s");
2013-08-19 20:44:13 +00:00
i.icon-folder-open {
2013-11-28 01:04:41 +00:00
font-size: 19px;
padding-bottom: 1px;
2013-08-19 20:44:13 +00:00
}
}
2013-11-28 01:04:41 +00:00
.collapse-button:hover, &.in .collapse-button, &.collapsing .collapse-button {
2013-11-30 01:40:26 +00:00
left: -55px;
2013-11-28 01:04:41 +00:00
}
2013-08-19 20:44:13 +00:00
.panel-content {
background-color: @list-group-bg;
padding-top: 80px;
2013-11-30 01:40:26 +00:00
border-left: 1px solid @panel-border-color;
2013-08-19 20:44:13 +00:00
.icon-layers {
font-size: 135%;
}
}
.search-bar {
position: absolute;
2013-11-30 01:40:26 +00:00
background-color: @primary-bg-light;
2013-08-19 20:44:13 +00:00
margin: -10px 25px 0;
padding: 20px 5px 10px 15px;
z-index: 3;
2013-11-30 01:40:26 +00:00
border: 1px solid @primary-bg;
2013-08-19 20:44:13 +00:00
border-top: 0;
border-radius: 6px;
2013-11-30 01:40:26 +00:00
}
2013-08-19 20:44:13 +00:00
.list-group-item {
margin: 0;
}
.folder {
font-weight: bold;
color: @folder-color;
2013-11-30 01:40:26 +00:00
border-top-color: @modal-content-separator-color;
2013-08-19 20:44:13 +00:00
}
.list-group {
margin: 0;
.nav {
border: 0;
2013-11-30 01:40:26 +00:00
margin: 0;
.file {
padding-left: 30px;
padding-right: 30px;
}
2013-08-19 20:44:13 +00:00
}
}
}
// 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;
}
2013-11-30 01:40:26 +00:00
.list-group {
background-color: @list-group-bg;
.nav {
margin-bottom: 30px;
border: 0;
margin: 0;
.file {
padding-left: 20px;
}
}
2013-08-19 20:44:13 +00:00
}
.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;
2013-11-30 01:40:26 +00:00
border-top-color: @modal-content-separator-color;
2013-08-19 20:44:13 +00:00
}
.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;
}
}
/********************
2013-12-02 02:38:52 +00:00
* Extensions buttons
2013-08-19 20:44:13 +00:00
********************/
2013-09-12 23:25:25 +00:00
2013-12-02 02:38:52 +00:00
// Hack to align multiple btn-group
.extension-buttons > .btn-group,
.extension-preview-buttons > .btn-group,
.extension-editor-buttons > .btn-group {
& > .btn,
& > .btn {
border-radius: 0;
}
&:first-child > .btn,
&:first-child > .btn {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
&:last-child > .btn,
&:last-child > .btn {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
}
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-11-30 01:40:26 +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;
}
.btn-group {
.btn {
position: initial;
}
}
.dropdown-menu {
padding-bottom: 20px;
}
.markdown-syntax, .table-of-contents {
overflow-y: auto;
overflow-x: hidden;
padding-right: 20px;
margin-right: -20px;
2013-11-30 01:40:26 +00:00
width: 330px;
2013-08-19 20:44:13 +00:00
}
.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 {
text-align: center;
2013-11-28 01:04:41 +00:00
height: @resizer-size;
width: @resizer-size;
2013-09-12 23:25:25 +00:00
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;
.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;
2013-11-30 01:40:26 +00:00
.btn {
text-align: initial;
padding-left: 15px;
}
2013-08-19 20:44:13 +00:00
}
.nav-tabs {
margin: 15px 0 0;
& > li > a {
&:hover, &:focus {
2013-11-30 01:40:26 +00:00
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);
background-color: @btn-default-hover-bg;
border-bottom-color: @transparent;
2013-08-19 20:44:13 +00:00
}
}
& > li.active > a {
&, &:hover, &:focus {
2013-11-30 01:40:26 +00:00
color: @btn-primary-color;
2013-08-19 20:44:13 +00:00
background-color: @btn-primary-bg;
2013-11-30 01:40:26 +00:00
border-color: @btn-primary-border;
border-bottom-color: @transparent;
2013-08-19 20:44:13 +00:00
}
}
}
}
/********************************
2013-12-01 15:43:46 +00:00
* Publish/Sync/Share dialogs
2013-08-19 20:44:13 +00:00
********************************/
2013-12-01 15:43:46 +00:00
.modal-manage-sync .sync-list,
.modal-manage-publish .publish-list,
.modal-manage-sharing .share-list {
2013-08-19 20:44:13 +00:00
margin-bottom: 20px;
.input-group {
margin-bottom: 10px;
}
}
2013-12-01 15:43:46 +00:00
.share-list .form-control {
width: 280px
2013-08-19 20:44:13 +00:00
}
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
2013-12-01 15:43:46 +00:00
2013-08-19 20:44:13 +00:00
/*********************************
* UI Layout
*********************************/
.ui-layout-resizer {
overflow: visible !important;
font-size: 14px !important;
.btn {
float: none;
}
.ui-layout-toggler {
2013-12-01 15:43:46 +00:00
i {
font-size: 22px;
}
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 {
2013-12-01 15:43:46 +00:00
font-size: 16px;
2013-12-02 01:20:38 +00:00
height: 9.5px;
2013-12-01 15:43:46 +00:00
overflow: hidden;
2013-08-19 20:44:13 +00:00
}
}
}
&.ui-layout-resizer-east .ui-layout-toggler-north {
2013-11-28 01:04:41 +00:00
width: @resizer-size !important;
2013-08-19 20:44:13 +00:00
height: 60px !important;
}
&.ui-layout-resizer-south .ui-layout-toggler-north {
2013-11-28 01:04:41 +00:00
height: @resizer-size !important;
2013-08-19 20:44:13 +00:00
}
}
2013-11-30 01:40:26 +00:00
.ui-layout-resizer-north {
background-color: @navbar-default-bg;
border-bottom: 1px solid @primary-border-color;
}
2013-11-28 01:04:41 +00:00
.ui-layout-resizer-east .resizer-decorator {
position: absolute;
height: 100%;
width: @resizer-size;
border-left: 1px solid fade(@secondary, 6%);
display: block !important;
}
2013-08-19 20:44:13 +00:00
2013-08-20 22:40:19 +00:00
/*****************************
* Editor
*****************************/
2013-09-09 23:32:24 +00:00
.ace_editor {
2013-11-28 01:04:41 +00:00
color: @secondary-color-dark;
2013-09-09 23:32:24 +00:00
}
2013-09-11 23:26:47 +00:00
.ace-tm {
2013-11-30 01:40:26 +00:00
background-color: @primary-bg-lightest;
.ace_text-input {
box-sizing: initial;
}
2013-09-09 00:08:55 +00:00
2013-09-11 23:26:47 +00:00
.ace_marker-layer .ace_active-line {
2013-11-28 01:04:41 +00:00
background-color: fade(@primary-desaturated, 5%);
}
.ace_cursor {
color: darken(@primary-desaturated, 30%);
2013-09-11 23:26:47 +00:00
}
.ace_print-margin {
2013-12-02 00:09:39 +00:00
background-color: fade(@primary-bg, 25%);
2013-09-11 23:26:47 +00:00
}
.ace_markup.ace_heading {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
2013-09-11 23:26:47 +00:00
font-weight: bold;
}
.ace_markup.ace_list {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
2013-09-11 23:26:47 +00:00
}
.ace_constant.ace_language {
2013-11-28 01:04:41 +00:00
color: @secondary-color;
}
.ace_meta.ace_tag {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
font-style: italic;
font-weight: bold;
background-color: @code-bg;
}
.ace_keyword.ace_operator {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darker;
background-color: transparent;
}
.ace_keyword {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
background-color: @code-bg;
font-weight: bold;
}
.ace_string {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
font-style: italic;
background-color: @code-bg;
}
.ace_invalid {
color: inherit;
background: inherit;
}
2013-09-11 23:26:47 +00:00
.ace_strong {
font-weight: bold;
}
.ace_emphasis {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
2013-09-11 23:26:47 +00:00
font-style: italic;
}
.ace_blockquote {
2013-11-28 01:04:41 +00:00
color: @secondary-color;
2013-09-11 23:26:47 +00:00
}
.ace_code {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
background-color: @code-bg;
2013-09-11 23:26:47 +00:00
}
.ace_code_block {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
2013-09-11 23:26:47 +00:00
}
.ace_link {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darkest;
background-color: @code-bg;
}
2013-09-11 23:26:47 +00:00
.ace_description {
2013-11-28 01:04:41 +00:00
color: @secondary-color;
2013-09-11 23:26:47 +00:00
}
2013-10-03 01:02:52 +00:00
2013-10-08 00:34:15 +00:00
.ace_constant {
2013-11-28 01:04:41 +00:00
color: @secondary-color-darker;
2013-10-08 00:34:15 +00:00
}
2013-11-18 23:11:05 +00:00
.ace_comment {
2013-11-28 01:04:41 +00:00
color: fade(@secondary-color-dark, 50%);
2013-11-18 23:11:05 +00:00
font-style: italic;
}
2013-10-04 00:34:58 +00:00
.ace_marker-layer .misspelled {
position: absolute;
z-index: -2;
border-bottom: 1px dotted red;
margin-bottom: -1px;
}
2013-09-09 23:32:24 +00:00
}
2013-09-14 16:59:40 +00:00
.ace_search {
2013-11-30 01:40:26 +00:00
background-color: @primary-bg;
2013-12-02 00:09:39 +00:00
border: 6px solid @primary-bg-lighter;
2013-09-30 00:16:01 +00:00
border-top: 0;
padding: 10px 15px 5px;
font-family: @font-family-base;
min-width: 318px;
2013-10-11 21:47:00 +00:00
.ace_search_form, .ace_replace_form {
margin-bottom: 10px;
2013-09-30 00:16:01 +00:00
}
2013-10-11 21:47:00 +00:00
.ace_search_field {
width: 185px;
}
.ace_search_field, .ace_searchbtn, .ace_replacebtn {
height: @input-height-small;
padding: 0 @padding-base-horizontal;
font-size: @font-size-base;
line-height: @line-height-base;
color: @input-color;
vertical-align: middle;
2013-11-30 01:40:26 +00:00
background-color: @primary-bg-lightest;
2013-10-11 21:47:00 +00:00
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
}
.ace_searchbtn {
background-image: none;
font-family: "fontello";
width: auto;
font-size: 16px;
&.next:before {
content: '\e880';
}
&.prev:before {
content: '\e87f';
}
}
2013-09-30 00:16:01 +00:00
.ace_replacebtn {
padding: 0 4px;
}
.ace_searchbtn_close {
background: transparent;
margin: 0;
font-size: (@font-size-base * 1.5);
font-weight: @close-font-weight;
text-shadow: @close-text-shadow;
.opacity(.3);
&:before {
content: '\d7';
}
&:hover,
&:focus {
color: @close-color;
text-decoration: none;
cursor: pointer;
.opacity(.5);
background: transparent;
}
}
2013-09-14 16:59:40 +00:00
}
2013-08-19 20:44:13 +00:00
#wmd-input {
2013-11-28 01:04:41 +00:00
border-radius: 0;
color: @secondary-color-darker;
2013-08-20 22:40:19 +00:00
.box-shadow(none);
2013-08-19 20:44:13 +00:00
resize: none;
2013-11-28 01:04:41 +00:00
border: none;
2013-09-12 23:25:25 +00:00
div& {
padding: 0;
}
2013-08-19 20:44:13 +00:00
}
.preview-container {
overflow: auto;
2013-11-28 01:04:41 +00:00
background-color: @primary-bg-lighter;
2013-08-19 20:44:13 +00:00
}
.wmd-prompt-background {
display: none;
}
div.dropdown-menu {
padding: 5px 20px;
2013-11-30 01:40:26 +00:00
background-color: @primary-bg-light;
p,
blockquote {
margin: 10px 0;
}
.stat {
margin-bottom: 10px;
}
i {
margin-right: 0;
}
textarea {
width: 250px;
height: 150px;
resize: none;
}
2013-08-19 20:44:13 +00:00
}
2013-11-30 01:40:26 +00:00
div.dropdown-menu, {
h1 {
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
}
2013-11-30 01:40:26 +00:00
.btn-gittip {
width: 52px;
height: 25px;
}
// File titles
.title-icon-category {
display: inline-block;
opacity: 0.1;
margin-top: -2px;
margin-left: -2px;
2013-10-27 22:39:26 +00:00
margin-right: 3px;
2013-10-27 19:19:56 +00:00
font-size: 14px;
vertical-align: top;
.file-title-navbar & {
2013-10-27 19:19:56 +00:00
font-size: 16px;
margin-left: -3px;
}
}
2013-08-19 20:44:13 +00:00
/* 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-11-30 01:40:26 +00:00
.box-shadow(0 5px 30px rgba(0,0,0,.175));
2013-09-03 17:28:30 +00:00
.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
}
2013-10-19 16:37:16 +00:00
.icon-lock {
font-size: 38px;
margin: 5px;
}
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;
2013-10-13 15:52:00 +00:00
&.bottom-right {
right: 30px;
}
2013-08-20 22:40:19 +00:00
div.jGrowl-notification, div.jGrowl-closer {
background-color: @jgrowl-bg-color;
width: @jgrowl-width;
2013-10-13 15:52:00 +00:00
margin: 20px 0;
2013-08-20 22:40:19 +00:00
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;
}
.navbar .file-title-navbar {
2013-12-02 00:09:39 +00:00
cursor: initial;
.box-shadow(none);
}
2013-08-19 20:44:13 +00:00
}