Stackedit/js/styles/default.less

894 lines
15 KiB
Plaintext
Raw Normal View History

2013-08-04 17:42:22 +00:00
@bg-light: #f2f2f2;
2013-08-04 23:49:07 +00:00
@preview-bg-light: #e8e8e8;
2013-08-04 17:42:22 +00:00
@bg-navbar-hover: #eee;
@text-inv: #fff;
2013-08-04 23:49:07 +00:00
@text-light: #888;
@error-border: #ff8661;
@icon-color: #525252;
@icon-color-inv: #fff;
2013-08-04 17:42:22 +00:00
/* Bootstrap */
@body-bg: #f5f5f5;
@input-border: #ddd;
@dropdown-border: #ddd;
@navbar-bg: #ddd;
@dropdown-link-hover-bg: #888;
@dropdown-link-active-color: #fff;
@input-color-placeholder: #ccc;
2013-08-04 23:49:07 +00:00
@btn-default-color: #333333;
@btn-default-bg: #fff;
@btn-default-border: fade(#000, 0%);
@btn-primary-color: #fff;
@btn-primary-bg: #777;
@btn-primary-border: fade(#000, 0%);
@btn-info-bg: @body-bg;
@btn-info-border: fade(#000, 0%);
@gray-lighter: @body-bg;
2013-08-04 00:54:25 +00:00
body {
tab-size: 4;
}
#preview-contents {
padding: 19px;
margin-bottom: 50px;
}
.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;
}
/*
Override Bootstrap
*/
2013-08-04 15:49:14 +00:00
2013-08-04 23:49:07 +00:00
/*******************
* Buttons
*******************/
.btn {
padding: 8px 11px;
}
.btn-primary:hover {
color: @btn-primary-color;
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
.btn-group {
margin-right: 10px;
2013-08-04 15:49:14 +00:00
}
2013-08-04 23:49:07 +00:00
// Last dropdown-toggle in a button-group (Bootstrap override)
.btn-group>.btn+.dropdown-toggle {
padding-right: 11px;
padding-left: 11px;
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
2013-08-04 17:42:22 +00:00
/*******************
* Modal
*******************/
2013-08-04 23:49:07 +00:00
2013-08-04 15:49:14 +00:00
.modal-backdrop {
background-color: fade(#999, 60%);
}
.modal-content {
border-width: 0;
}
2013-08-04 17:42:22 +00:00
/********************
* Input
********************/
2013-08-04 23:49:07 +00:00
// 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;}
}
2013-08-04 17:42:22 +00:00
.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-04 00:54:25 +00:00
}
.help-block {
font-size: 12px;
}
.modal textarea.error,.modal input.error {
2013-08-04 23:49:07 +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-04 00:54:25 +00:00
}
2013-08-05 01:31:14 +00:00
// Fix add-on support in Bootstrap v3
2013-08-04 23:49:07 +00:00
.input-group-btn .btn {
border: 1px solid @input-border;
2013-08-04 00:54:25 +00:00
}
2013-08-05 01:31:14 +00:00
.input-group-btn:first-child .btn {
border-right: 0;
}
2013-08-04 23:49:07 +00:00
.input-group-btn:last-child .btn {
border-left: 0;
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
.input-group-addon, .input-group-btn .btn {
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
/*******************
* Navbar
*******************/
.navbar {
position: static;
.nav {
float: left;
margin: 6px 0 0;
& > 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-08-04 00:54:25 +00:00
}
}
2013-08-05 01:31:14 +00:00
.btn-group > .btn,
#file-title {
2013-08-04 23:49:07 +00:00
background-color: @navbar-bg;
border-color: @navbar-bg;
&:hover,
&:focus,
&:active,
&.active {
background-color: @bg-navbar-hover;
}
&.disabled,
&.blocked,
&[disabled] {
* {
color: fade(@btn-default-color, 30%);
}
}
}
.btn-group.open .dropdown-toggle {
background-color: @bg-navbar-hover;
}
2013-08-04 00:54:25 +00:00
2013-08-04 23:49:07 +00:00
// Support for dropdown submenu (from Bootstrap v2)
.dropdown-submenu {
position: relative;
& > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
}
&:hover {
& > a {
color: @dropdown-link-hover-color;
#gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
&:after {
border-left-color: @dropdown-link-hover-color;
}
}
& > .dropdown-menu {
display: block;
}
}
& > a:after {
display: block;
float: right;
width: 0;
height: 0;
margin-top: 5px;
margin-right: -10px;
border-color: transparent;
border-left-color: #cccccc;
border-style: solid;
border-width: 5px 0 5px 5px;
content: " ";
}
}
2013-08-05 01:31:14 +00:00
#file-selector {
max-height: 500px;
overflow-y: auto;
.stick {
padding: 10px 20px 0;
}
}
#file-title {
padding: 4px 15px;
margin-left: -20px;
font-size: 20px;
font-weight: 200;
color: #666;
i {
margin-right: 10px;
}
}
.working-indicator {
background-image: none !important;
width: 43px;
height: 11px;
background-position: 0 0;
margin-right: 30px;
&.show {
background-image: url("../../img/ajax-loader.gif") !important;
}
}
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
/********************
* Extensions buttons
********************/
2013-08-04 00:54:25 +00:00
#extension-buttons {
margin-right: 15px;
2013-08-04 23:49:07 +00:00
.btn-group {
margin: 0;
}
2013-08-05 01:31:14 +00:00
.link-container {
min-width: 280px;
white-space: normal;
.link-list {
margin-top: 20px;
margin-bottom: 20px;
& > * {
margin-bottom: 10px;
}
}
}
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
// Hack for nested btn-group
2013-08-04 00:54:25 +00:00
#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-08-04 23:49:07 +00:00
/********************
* Preview extensions buttons
********************/
#extension-preview-buttons {
&,
.dropdown-menu {
position: fixed;
right: 25px;
top: auto;
z-index: 1;
}
.dropdown-menu {
border: 0 !important;
margin-top: 1px;
}
.btn {
background-color: fade(@navbar-bg, 50%);
float: none;
i {
color: fade(@icon-color, 30%);
}
&:hover,
&:focus,
&:active,
&.active {
i {
color: @icon-color
}
}
}
.btn-group {
margin: 0 0 0 1px;
.btn {
position: initial;
}
&.open .btn{
background-color: @preview-bg-light;
i {
color: @icon-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: 300px;
}
.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-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
/*********************
* Markdown
*********************/
2013-08-04 00:54:25 +00:00
code {
color: #333333;
2013-08-05 01:31:14 +00:00
background-color: fade(#000, 5%);
2013-08-04 00:54:25 +00:00
}
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;
}
.dropdown-menu i {
margin-right: 5px;
}
2013-08-04 17:42:22 +00:00
#wmd-input {
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
2013-08-04 00:54:25 +00:00
#wmd-input,#md-section-helper {
resize: none;
border: none !important;
}
.preview-container {
overflow: auto;
}
.wmd-button-row {
padding: 0;
margin-left: 10px;
}
.wmd-spacer {
display: none;
}
.wmd-spacer + .wmd-button {
margin-left: 20px;
}
.wmd-prompt-background {
display: none;
}
.wmd-prompt-dialog {
border: 1px solid #999999;
2013-08-04 17:42:22 +00:00
background-color: @body-bg;
2013-08-04 00:54:25 +00:00
}
.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;
}
2013-08-04 17:42:22 +00:00
/***********************
* Icons
***********************/
2013-08-04 00:54:25 +00:00
[class^="icon-"], [class*=" icon-"] {
2013-08-04 23:49:07 +00:00
color: @icon-color;
2013-08-04 00:54:25 +00:00
display: inline-block;
line-height: 14px;
vertical-align: middle;
background-repeat: no-repeat;
2013-08-04 23:49:07 +00:00
&.icon-white,
.dropdown-menu > li:hover > a > & {
color: #fff;
}
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
.icon-down-dir {
margin-right: -5px;
2013-08-04 17:42:22 +00:00
}
2013-08-04 15:49:14 +00:00
.icon-code {
font-size: 80%;
2013-08-04 23:49:07 +00:00
margin-left: -1px;
margin-right: 5px;
}
.icon-chart-bar {
font-size: 90%;
margin-right: 2px;
2013-08-04 15:49:14 +00:00
}
.icon-trash {
font-size: 90%;
}
2013-08-04 00:54:25 +00:00
.icon-stackedit {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -1px 0;
}
.icon-gdrive {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -19px 0;
}
.icon-gdrive.realtime {
width: 18px;
background-position: -162px 0;
}
.icon-dropbox {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -37px 0;
}
.icon-github,.icon-gist {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -55px 0;
}
.icon-blogger {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -73px 0;
}
.icon-tumblr {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -91px 0;
}
.icon-wordpress {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -109px 0;
}
.icon-ssh {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -127px 0;
}
.icon-gplus {
background-image: url("../../img/icons.png") !important;
width: 16px;
height: 16px;
background-position: -145px 0;
}
.ui-layout-toggler-north .caret,.ui-layout-toggler-south .caret {
margin-top: 5px;
}
.ui-layout-toggler-north-open .caret,.ui-layout-toggler-south-closed .caret
{
border-bottom: 5px solid #525252;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
border-top: 0;
}
.ui-layout-toggler-north-closed .caret,.ui-layout-toggler-south-open .caret
{
border-top: 5px solid #525252;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
border-bottom: 0;
}
.ui-layout-toggler-east .caret,.ui-layout-toggler-west .caret {
margin-top: 40px;
}
.ui-layout-toggler-east-open .caret,.ui-layout-toggler-west-closed .caret
{
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
border-left: 5px solid #525252;
border-right: 0;
}
.ui-layout-toggler-east-closed .caret,.ui-layout-toggler-west-opened .caret
{
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
border-right: 5px solid #525252;
border-left: 0;
}
/* Google picker */
.picker-dialog {
z-index: 1050 !important;
}
.action-import-image-gplus {
float: left;
}
2013-08-04 17:42:22 +00:00
/**************************
* Settings
**************************/
2013-08-04 15:49:14 +00:00
#modal-settings {
.modal-header {
padding-bottom: 0;
}
.form-horizontal {
margin-top: 10px;
}
textarea {
max-width: 100%;
min-height: 100px;
}
2013-08-04 17:42:22 +00:00
.modal-body {
max-height: 450px;
overflow: auto;
}
2013-08-04 15:49:14 +00:00
.accordion-group {
border: 0;
2013-08-04 17:42:22 +00:00
border-bottom: 1px solid @bg-light;
2013-08-04 15:49:14 +00:00
border-radius: inherit;
margin-bottom: 10px;
clear: both;
}
.accordion-heading {
padding: 8px 15px;
2013-08-04 17:42:22 +00:00
.accordion-toggle {
display: inline;
padding: 0;
}
.checkbox {
margin-top: 0;
margin-bottom: 0;
}
2013-08-04 15:49:14 +00:00
}
.accordion-inner {
border: 0;
padding: 10px 40px;
2013-08-04 17:42:22 +00:00
.form-horizontal {
.control-label {
text-align: left;
}
.form-inline .label-text {
margin-left: 15px
}
}
2013-08-04 15:49:14 +00:00
}
.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;
2013-08-04 17:42:22 +00:00
& > li > a {
&:hover, &:focus {
background-color: @bg-light;
}
}
& > li.active > a {
&, &:hover, &:focus {
color: @text-inv;
2013-08-04 23:49:07 +00:00
background-color: @btn-primary-bg;
border-color: @btn-primary-bg;
2013-08-04 17:42:22 +00:00
}
}
2013-08-04 15:49:14 +00:00
}
2013-08-04 00:54:25 +00:00
}
2013-08-04 17:42:22 +00:00
/*
2013-08-04 00:54:25 +00:00
.nav>li>a:hover,.nav>li>a:focus {
2013-08-04 17:42:22 +00:00
background-color: @bg-light;
2013-08-04 00:54:25 +00:00
}
2013-08-04 17:42:22 +00:00
*/
2013-08-04 00:54:25 +00:00
.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;
}
2013-08-04 23:49:07 +00:00
// Duplicate from .well blockquote
2013-08-04 00:54:25 +00:00
#preview-contents blockquote {
2013-08-04 23:49:07 +00:00
border-color: #ddd;
border-color: rgba(0, 0, 0, 0.15);
2013-08-04 00:54:25 +00:00
}
2013-08-04 23:49:07 +00:00
blockquote {
p {
margin-bottom: 20px;
font-size: 14px;
font-weight: 300;
line-height: 20px;
}
ul:last-child,
ol:last-child {
margin-bottom: 0;
}
}
2013-08-04 00:54:25 +00:00
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;
}