Stackedit/public/res/styles/main.less
2013-12-01 15:43:46 +00:00

1312 lines
27 KiB
Plaintext

@import "base.less";
@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";
@import "../bower-libs/bootstrap-tour/src/less/bootstrap-tour.less";
@import "jquery.jgrowl.css";
/* Colors */
@logo-yellow: #FFD900;
@logo-blue: #3399FF;
@logo-orange: #FF610D;
@logo-green: #8DC213;
@primary: #0080FF;
@secondary: @primary;
@tertiary: @primary;
@primary-desaturated: desaturate(@primary, 70%);
@secondary-desaturated: desaturate(@secondary, 85%);
@tertiary-desaturated: desaturate(@tertiary, 90%);
@transparent: fade(#000, 0%);
@primary-bg: lighten(@primary-desaturated, 42%);
@primary-bg-light: lighten(@secondary-desaturated, 46%);
@primary-bg-lighter: lighten(@secondary-desaturated, 48%);
@primary-bg-lightest: #fff;
@primary-border-color: fade(@primary, 10%);
@secondary-bg: lighten(@tertiary-desaturated, 10%);
@secondary-bg-light: lighten(@tertiary-desaturated, 15%);
@secondary-bg-dark: lighten(@tertiary-desaturated, 5%);
@secondary-border-color: lighten(@primary-desaturated, 38%);
@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%);
@primary-color-inv: #fff;
@secondary-color: lighten(@primary-desaturated, 10%);
@secondary-color-dark: @primary-desaturated;
@secondary-color-darker: darken(@primary-desaturated, 15%);
@secondary-color-darkest: darken(@primary-desaturated, 40%);
@secondary-color-inv: #fff;
@error-border: #FF6161;
@disabled-color: mix(@primary-color, @input-bg, 33%);
@panel-button-color: @primary-color-dark;
@panel-button-border-fade: 75%;
@panel-bg: @primary-bg-lighter;
@panel-border-color: fade(@primary-desaturated, 10%);
@folder-color: @primary-color-darker;
@jgrowl-bg-color: fade(@secondary-bg-dark, 90%);
/* Sizes */
@menu-panel-width: 280px;
@document-panel-width: 340px;
@jgrowl-width: 260px;
@title-base-size: 14px;
@resizer-size: 35px;
/* Bootstrap */
@body-bg: @primary-bg-lighter;
@text-color: @primary-color-darkest;
@link-color: desaturate(@secondary, 25%);
@input-bg: @primary-bg-lightest;
@input-border: @secondary-border-color;
@input-height-base: 38px;
@pre-border-color: @secondary-border-color;
@navbar-height: 49px;
@navbar-default-bg: @primary-bg;
@nav-link-hover-bg: @btn-default-hover-bg;
@nav-disabled-link-color: @disabled-color;
@nav-disabled-link-hover-color: @disabled-color;
@nav-tabs-border-color: @transparent;
@nav-tabs-link-hover-border-color: @transparent;
@dropdown-border: @secondary-border-color;
@dropdown-link-color: @primary-color-darkest;
@dropdown-link-hover-color: darken(@primary-desaturated, 25%);
@dropdown-link-hover-bg: @btn-default-hover-bg;
@dropdown-header-color: fade(@primary-color, 50%);
@dropdown-link-disabled-color: @disabled-color;
@list-group-link-color: @primary-color-darkest;
@list-group-bg: @primary-bg-lighter;
@list-group-border: @transparent;
@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%);
@input-color: @primary-color-dark;
@input-color-placeholder: @disabled-color;
@btn-default-color: @primary-color-darker;
@btn-default-bg: @transparent;
@btn-default-border: @transparent;
@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%);
@btn-success-color: darken(@primary-desaturated, 25%);
@btn-success-bg: @transparent;
@btn-success-border: @transparent;
@btn-info-color: fade(@secondary-desaturated, 35%);
@btn-info-bg: @transparent;
@btn-info-border: @transparent;
@gray-lighter: @body-bg;
@modal-header-border-color: @primary-bg;
@modal-content-border-color: fade(@primary-desaturated, 25%);
@modal-footer-border-color: @primary-bg;
@modal-content-separator-color: @primary-bg-light;
@modal-backdrop-bg: @secondary-bg-light;
@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%);
@hr-border: fade(@secondary-desaturated, 10%);
@pre-bg: fade(@secondary-desaturated, 5%);
@tooltip-max-width: 240px;
@close-color: @primary-color-darkest;
@popover-bg: @primary-bg-light;
@popover-border-color: @secondary-border-color;
@popover-arrow-color: @primary-bg-light;
@popover-arrow-outer-color: @secondary-border-color;
@popover-title-bg: @transparent;
body {
tab-size: 4;
}
#preview-contents {
padding: 15px;
margin: 0 auto 180px;
}
.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;
}
.dropdown-menu, .modal-content, .panel-content, .search-bar {
.box-shadow(0 6px 12px rgba(0,0,0,.125));
}
.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;
}
}
}
.modal-content {
background-color: @primary-bg-lighter;
}
.modal-body {
background-color: @primary-bg-lightest;
padding-bottom: 30px;
}
.modal-footer {
margin-top: 0;
}
a {
.transition(~"background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s");
}
.list-group .nav {
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;
}
}
}
.list-group-item {
padding: 10px 15px;
margin-bottom: 0;
.list-group & {
border-radius: 0;
}
a&:hover,
a&:focus {
color: darken(@secondary, 30%);
border-top-color: @list-group-hover-border-color;
border-bottom-color: @list-group-hover-border-color;
}
}
.move-to-front {
z-index: 1050 !important;
}
/*******************
* Buttons
*******************/
.btn {
padding: 8px 11px;
.transition(~"background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s");
}
.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
}
}
.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
}
}
.btn-success {
&:hover,
&:focus,
&:active,
.open &.dropdown-toggle {
color: darken(@primary, 30%);
border-color: @primary-border-color;
background-color: fade(@primary-desaturated, 7.5%) !important; // important to override .nav > li > a:hover
}
}
.btn-info {
&:hover,
&:focus,
&:active,
.open &.dropdown-toggle {
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);
background-color: @primary-bg-light !important; // important to override .nav > li > a:hover
}
}
.btn-group {
.btn + .btn,
.btn + .btn-group,
.btn-group + .btn,
.btn-group + .btn-group {
margin-left: 0;
}
}
// 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
.form-inline {
.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;}
}
.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}");
}
}
.form-control.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)");
}
.help-block {
font-size: 12px;
}
// Input add-on
.input-group-addon {
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
a& {
color: @link-color;
}
}
.input-group-btn {
.btn {
i {
font-size: 120%;
}
}
&:first-child .btn {
margin-right: 6px;
}
&:last-child .btn {
margin-left: 6px;
}
}
/*******************
* Navbar
*******************/
.navbar {
position: static;
padding: 0;
border: 0;
border-top: 1px solid @primary-border-color;
border-radius: 0;
.left-space, .right-space {
width: 25px;
height: @input-height-base;
}
.nav {
float: left;
margin: 5px 10px;
height: @input-height-base;
& > 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 {
height: @input-height-base;
}
.btn-group > .btn {
&.disabled,
&.blocked,
&[disabled] {
* {
color: fade(@btn-success-color, 30%);
}
}
}
.file-title-navbar {
display: block;
padding: 4px 15px;
font-size: 20px;
font-weight: 200;
max-width: 280px;
overflow: hidden;
white-space: nowrap;
}
.input-file-title {
margin-right: 10px;
}
.working-indicator {
overflow: hidden;
height: @input-height-base;
width: 65px;
padding-top: 8px;
.bar {
display: inline-block;
width: 10px;
height: 6px;
border-radius: 1px;
margin: 0 2px;
opacity: 0.25;
background-color: @btn-success-color;
animation: indicator 0.6s ease-out infinite;
-webkit-animation: indicator 0.6s ease-out infinite; /* Safari and Chrome */
}
}
.left-buttons-dropdown, .right-buttons-dropdown {
> .nav {
margin-left: 0;
margin-right: 0;
}
}
div.dropdown-menu {
top: initial;
padding: 5px;
}
}
@keyframes indicator {
from {opacity: 1;}
to {opacity: 0.25;}
}
@-webkit-keyframes indicator /* Safari and Chrome */ {
from {opacity: 1;}
to {opacity: 0.25;}
}
/*********************
* Menu/Document panels
*********************/
// Common style
.menu-panel, .document-panel {
display: block;
position: absolute;
top: 0;
height: 100%;
z-index: 10;
overflow: initial;
.collapse-button {
background-color: #fff;
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;
}
.panel-content {
overflow: auto;
padding-bottom: 30px;
height: 100%;
a > i {
color: inherit;
}
}
}
.menu-panel {
width: @menu-panel-width !important;
margin-left: (-@menu-panel-width - 15);
.transition(~"margin-left ease-in-out 0.35s");
.sub-menu {
background-color: @list-group-bg;
}
&.in {
margin-left: 0;
}
.collapse-button {
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;
position: absolute;
margin-top: 6px;
z-index: -1;
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 {
right: -55px;
}
.panel-content {
background-color: @panel-bg;
padding-top: 6px;
border-right: 1px solid @panel-border-color;
& > .nav > li > a {
&:hover, &:active {
background-color: inherit;
}
}
}
}
.document-panel {
right: 0;
width: @document-panel-width !important;
margin-right: (-@document-panel-width - 15);
.transition(~"margin-right ease-in-out 0.35s");
&.in {
margin-right: 0;
}
.collapse-button {
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;
position: absolute;
margin-top: 6px;
padding: 0 50px 0 6px;
z-index: -1;
.transition(~"border-width ease-in-out .15s, left ease-in-out 0.15s");
i.icon-folder-open {
font-size: 19px;
padding-bottom: 1px;
}
}
.collapse-button:hover, &.in .collapse-button, &.collapsing .collapse-button {
left: -55px;
}
.panel-content {
background-color: @list-group-bg;
padding-top: 80px;
border-left: 1px solid @panel-border-color;
.icon-layers {
font-size: 135%;
}
}
.search-bar {
position: absolute;
background-color: @primary-bg-light;
margin: -10px 25px 0;
padding: 20px 5px 10px 15px;
z-index: 3;
border: 1px solid @primary-bg;
border-top: 0;
border-radius: 6px;
}
.list-group-item {
margin: 0;
}
.folder {
font-weight: bold;
color: @folder-color;
border-top-color: @modal-content-separator-color;
}
.list-group {
margin: 0;
.nav {
border: 0;
margin: 0;
.file {
padding-left: 30px;
padding-right: 30px;
}
}
}
}
// 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 {
background-color: @list-group-bg;
.nav {
margin-bottom: 30px;
border: 0;
margin: 0;
.file {
padding-left: 20px;
}
}
}
.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-top-color: @modal-content-separator-color;
}
.checkbox {
float: right;
margin: 0;
padding: 0;
cursor: pointer;
input {
cursor: pointer;
margin: 0 16px;
height: @input-height-base;
}
}
.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/Editor extensions buttons
********************/
.extension-preview-buttons {
position: absolute;
z-index: 1;
margin-top: 6px;
right: 30px;
.ui-layout-resizer-south-closed & {
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;
width: 330px;
}
.markdown-syntax {
white-space: normal;
max-height: 350px;
}
.table-of-contents {
margin-left: -10px;
max-height: 400px;
ul {
margin-left: 10px;
padding-left: 10px;
}
}
}
.extension-editor-buttons {
position: absolute;
display: inline-block;
vertical-align: top;
.btn {
text-align: center;
height: @resizer-size;
width: @resizer-size;
padding: 0;
}
.ui-layout-resizer-east & {
bottom: 0;
}
.ui-layout-resizer-south & {
right: 0;
}
}
/**************************
* 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;
border-bottom: 1px solid @modal-content-separator-color;
.box-shadow(none);
}
.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;
.btn {
text-align: initial;
padding-left: 15px;
}
}
.nav-tabs {
margin: 15px 0 0;
& > li > a {
&:hover, &:focus {
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);
background-color: @btn-default-hover-bg;
border-bottom-color: @transparent;
}
}
& > li.active > a {
&, &:hover, &:focus {
color: @btn-primary-color;
background-color: @btn-primary-bg;
border-color: @btn-primary-border;
border-bottom-color: @transparent;
}
}
}
}
/********************************
* Publish/Sync/Share dialogs
********************************/
.modal-manage-sync .sync-list,
.modal-manage-publish .publish-list,
.modal-manage-sharing .share-list {
margin-bottom: 20px;
.input-group {
margin-bottom: 10px;
}
}
.share-list .form-control {
width: 280px
}
.publish-custom-template-collapse {
margin-bottom: 0;
textarea {
max-width: 100%;
min-height: 100px;
}
}
/*********************************
* UI Layout
*********************************/
.ui-layout-resizer {
overflow: visible !important;
font-size: 14px !important;
.btn {
float: none;
}
.ui-layout-toggler {
i {
font-size: 22px;
}
&.ui-layout-toggler-east {
line-height: 55px;
&.ui-layout-toggler-east-open i:before {
content: '\e87e';
}
&.ui-layout-toggler-east-closed i:before {
content: '\e87d';
}
}
&.ui-layout-toggler-south {
&.ui-layout-toggler-south-open i:before {
content: '\e880';
}
&.ui-layout-toggler-south-closed i:before {
content: '\e87f';
}
}
&.ui-layout-toggler-north {
left: 0 !important;
line-height: 0;
i {
font-size: 16px;
height: 10px;
overflow: hidden;
&:before {
content: '\e816';
}
}
}
}
&.ui-layout-resizer-east .ui-layout-toggler-north {
width: @resizer-size !important;
height: 60px !important;
}
&.ui-layout-resizer-south .ui-layout-toggler-north {
height: @resizer-size !important;
}
}
.ui-layout-resizer-north {
background-color: @navbar-default-bg;
border-bottom: 1px solid @primary-border-color;
}
.ui-layout-resizer-east .resizer-decorator {
position: absolute;
height: 100%;
width: @resizer-size;
border-left: 1px solid fade(@secondary, 6%);
display: block !important;
}
/*****************************
* Editor
*****************************/
.ace_editor {
color: @secondary-color-dark;
}
.ace-tm {
background-color: @primary-bg-lightest;
.ace_text-input {
box-sizing: initial;
}
.ace_marker-layer .ace_active-line {
background-color: fade(@primary-desaturated, 5%);
}
.ace_cursor {
color: darken(@primary-desaturated, 30%);
}
.ace_print-margin {
background-color: fade(@primary-desaturated, 10%);
}
.ace_markup.ace_heading {
color: @secondary-color-darkest;
font-weight: bold;
}
.ace_markup.ace_list {
color: @secondary-color-darkest;
}
.ace_constant.ace_language {
color: @secondary-color;
}
.ace_meta.ace_tag {
color: @secondary-color-darkest;
font-style: italic;
font-weight: bold;
background-color: @code-bg;
}
.ace_keyword.ace_operator {
color: @secondary-color-darker;
background-color: transparent;
}
.ace_keyword {
color: @secondary-color-darkest;
background-color: @code-bg;
font-weight: bold;
}
.ace_string {
color: @secondary-color-darkest;
font-style: italic;
background-color: @code-bg;
}
.ace_invalid {
color: inherit;
background: inherit;
}
.ace_strong {
font-weight: bold;
}
.ace_emphasis {
color: @secondary-color-darkest;
font-style: italic;
}
.ace_blockquote {
color: @secondary-color;
}
.ace_code {
color: @secondary-color-darkest;
background-color: @code-bg;
}
.ace_code_block {
color: @secondary-color-darkest;
}
.ace_link {
color: @secondary-color-darkest;
background-color: @code-bg;
}
.ace_description {
color: @secondary-color;
}
.ace_constant {
color: @secondary-color-darker;
}
.ace_comment {
color: fade(@secondary-color-dark, 50%);
font-style: italic;
}
.ace_marker-layer .misspelled {
position: absolute;
z-index: -2;
border-bottom: 1px dotted red;
margin-bottom: -1px;
}
}
.ace_search {
background-color: @primary-bg;
border: 6px solid @panel-bg;
border-top: 0;
padding: 10px 15px 5px;
font-family: @font-family-base;
min-width: 318px;
.ace_search_form, .ace_replace_form {
margin-bottom: 10px;
}
.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;
background-color: @primary-bg-lightest;
.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';
}
}
.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;
}
}
}
#wmd-input {
border-radius: 0;
color: @secondary-color-darker;
.box-shadow(none);
resize: none;
border: none;
div& {
padding: 0;
}
}
.preview-container {
overflow: auto;
background-color: @primary-bg-lighter;
}
.wmd-prompt-background {
display: none;
}
div.dropdown-menu {
padding: 5px 20px;
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;
}
}
div.dropdown-menu, {
h1 {
margin: 40px 0;
}
h2 {
margin: 30px 0;
}
h3 {
margin: 20px 0;
}
h4, h5, h6 {
margin: 15px 0;
}
}
.btn-gittip {
width: 52px;
height: 25px;
}
// File titles
.title-icon-category {
display: inline-block;
opacity: 0.1;
margin-top: -2px;
margin-left: -2px;
margin-right: 3px;
font-size: 14px;
vertical-align: top;
.file-title-navbar & {
font-size: 16px;
margin-left: -3px;
}
}
/* Google picker */
.picker-dialog {
z-index: 1050 !important;
}
.picker-dialog-bg {
z-index: 1040 !important;
}
.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;
}
/*********************
* Bootstrap tour
*********************/
.popover {
max-width: 350px;
padding: 15px;
.box-shadow(0 5px 30px rgba(0,0,0,.175));
.popover-title {
font-weight: @headings-font-weight;
font-size: 24px;
padding: 10px 15px;
}
.icon-lock {
font-size: 38px;
margin: 5px;
}
.disabled {
display: none;
}
}
/********************
* jGrowl
********************/
div.jGrowl {
z-index: 1040;
font-size: inherit;
&.bottom-right {
right: 30px;
}
div.jGrowl-notification, div.jGrowl-closer {
background-color: @jgrowl-bg-color;
width: @jgrowl-width;
margin: 20px 0;
padding: 15px 20px;
-ms-filter: none;
filter: none;
border-radius: 5px;
}
div.jGrowl-notification {
min-height: 80px;
}
}
/*******************
* Viewer
*******************/
.viewer {
.document-panel .search-bar {
padding: 20px 20px 10px;
.input-group-btn {
display: none;
}
}
.ui-layout-toggler {
display: none !important;
}
.navbar .file-title-navbar {
max-width: 500px;
}
}