2014-06-26 11:39:52 -04:00
|
|
|
.toolbar {
|
2017-11-23 11:42:38 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2014-06-26 11:39:52 -04:00
|
|
|
height: 40px;
|
2017-11-23 11:42:38 -05:00
|
|
|
border-bottom: @toolbar-border-bottom;
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2016-02-02 09:48:22 -05:00
|
|
|
> a, .toolbar-right > a {
|
2014-07-17 06:05:08 -04:00
|
|
|
position: relative;
|
|
|
|
.label {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: .15em .6em .2em;
|
|
|
|
font-size: 60%;
|
2017-06-15 11:14:06 -04:00
|
|
|
pointer-events: none; // Labels were capturing button/anchor clicks.
|
2014-07-17 06:05:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-16 07:17:26 -05:00
|
|
|
> a:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2016-09-26 11:09:27 -04:00
|
|
|
> a:not(.btn),
|
|
|
|
.toolbar-left > a:not(.btn),
|
|
|
|
.toolbar-right > a:not(.btn) {
|
2014-06-26 11:39:52 -04:00
|
|
|
display: inline-block;
|
2017-11-21 06:20:39 -05:00
|
|
|
color: @toolbar-icon-btn-color;
|
2018-02-08 09:41:39 -05:00
|
|
|
padding: 4px 2px;
|
|
|
|
line-height: 1;
|
|
|
|
height: 24px;
|
2014-06-29 09:22:08 -04:00
|
|
|
border-radius: @border-radius-small;
|
2017-12-05 05:20:25 -05:00
|
|
|
&.toolbar-header-back-projects {
|
|
|
|
padding: 5px 10px 4px;
|
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
&:hover {
|
2017-11-21 06:20:39 -05:00
|
|
|
text-shadow: @toolbar-icon-btn-hover-shadow;
|
|
|
|
color: @toolbar-icon-btn-hover-color;
|
2014-06-29 09:22:08 -04:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2014-08-12 08:18:22 -04:00
|
|
|
&.active, &:active {
|
|
|
|
.label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
color: white;
|
|
|
|
background-color: @link-color;
|
2017-12-05 05:20:25 -05:00
|
|
|
box-shadow: @toolbar-icon-btn-hover-boxshadow;
|
2014-08-12 08:18:22 -04:00
|
|
|
&:hover {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
|
|
|
|
2018-02-08 09:41:39 -05:00
|
|
|
&.toolbar-pdf > a:not(.btn) {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
.btn-full-height {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
border-right: 1px solid @toolbar-border-color;
|
2017-11-13 07:03:28 -05:00
|
|
|
color: @toolbar-btn-color;
|
2014-07-02 05:59:18 -04:00
|
|
|
padding: 3px 10px 5px;
|
|
|
|
font-size: 20px;
|
2014-06-26 11:39:52 -04:00
|
|
|
&:hover {
|
2017-11-13 07:03:28 -05:00
|
|
|
text-shadow: @toolbar-btn-hover-text-shadow;
|
|
|
|
background-color: @toolbar-btn-hover-bg-color;
|
|
|
|
color: @toolbar-btn-hover-color;
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
|
|
|
&.active, &:active {
|
2017-11-13 07:03:28 -05:00
|
|
|
color: @toolbar-btn-active-color;
|
|
|
|
background-color: @toolbar-btn-active-bg-color;
|
|
|
|
box-shadow: @toolbar-btn-active-shadow;
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2014-07-17 06:05:08 -04:00
|
|
|
.label {
|
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2017-05-01 10:04:08 -04:00
|
|
|
.btn-full-height-no-border {
|
|
|
|
border-right: 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2016-09-26 11:09:27 -04:00
|
|
|
.toolbar-left {
|
2017-11-23 11:42:38 -05:00
|
|
|
display: flex;
|
2016-09-26 11:09:27 -04:00
|
|
|
float: left;
|
|
|
|
text-align: center;
|
2017-11-24 10:36:23 -05:00
|
|
|
align-items: center;
|
2016-09-26 11:09:27 -04:00
|
|
|
}
|
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
.toolbar-right {
|
2017-11-23 11:42:38 -05:00
|
|
|
display: flex;
|
2017-11-24 10:36:23 -05:00
|
|
|
align-items: center;
|
2017-11-23 11:42:38 -05:00
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: flex-end;
|
2014-06-26 11:39:52 -04:00
|
|
|
.btn-full-height {
|
|
|
|
border-right: 0;
|
|
|
|
border-left: 1px solid @toolbar-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-03 11:18:49 -04:00
|
|
|
.toolbar-center {
|
|
|
|
width: 300px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -150px;
|
|
|
|
text-align: center;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
&.toolbar-header {
|
2017-11-13 07:03:28 -05:00
|
|
|
background-color: @toolbar-header-bg-color;
|
|
|
|
box-shadow: @toolbar-header-shadow;
|
2014-06-26 11:39:52 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toolbar-small {
|
2017-11-23 10:21:06 -05:00
|
|
|
.toolbar-small-mixin;
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2014-06-28 07:07:18 -04:00
|
|
|
|
|
|
|
&.toolbar-tall {
|
2017-11-23 10:21:06 -05:00
|
|
|
.toolbar-small-mixin;
|
2014-06-28 07:07:18 -04:00
|
|
|
}
|
2014-07-11 08:55:14 -04:00
|
|
|
|
|
|
|
&.toolbar-alt {
|
2017-11-23 10:21:06 -05:00
|
|
|
.toolbar-alt-mixin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-small-mixin() {
|
2017-12-07 09:14:42 -05:00
|
|
|
height: @toolbar-small-height;
|
2017-11-23 10:21:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-tall-mixin() {
|
2017-12-07 09:14:42 -05:00
|
|
|
height: @toolbar-tall-height;
|
2017-11-23 10:21:06 -05:00
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
.toolbar-alt-mixin() {
|
|
|
|
background-color: @toolbar-alt-bg-color;
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2014-07-28 10:06:26 -04:00
|
|
|
|
2016-09-26 10:03:04 -04:00
|
|
|
.toolbar-label {
|
2016-11-22 05:59:20 -05:00
|
|
|
display: none;
|
2016-09-26 11:09:27 -04:00
|
|
|
margin: 0 4px;
|
2017-12-13 11:23:50 -05:00
|
|
|
font-size: @toolbar-font-size;
|
2016-09-28 04:31:59 -04:00
|
|
|
font-weight: 600;
|
|
|
|
margin-bottom: 2px;
|
2016-09-26 11:09:27 -04:00
|
|
|
vertical-align: middle;
|
2016-11-22 05:59:20 -05:00
|
|
|
|
|
|
|
@media (min-width: @screen-sm-min) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-09-26 10:03:04 -04:00
|
|
|
}
|
|
|
|
|
2014-07-28 10:06:26 -04:00
|
|
|
.editor-dark {
|
|
|
|
.toolbar-alt {
|
|
|
|
background-color: darken(@editor-dark-background-color, 0%);
|
|
|
|
}
|
|
|
|
.toolbar {
|
|
|
|
border-color: @editor-dark-toolbar-border-color;
|
|
|
|
.btn-full-height {
|
|
|
|
border-color: @editor-dark-toolbar-border-color;
|
|
|
|
&:hover {
|
|
|
|
background-color: black;
|
|
|
|
color: lighten(@link-color, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.toolbar-header {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2016-02-02 09:48:22 -05:00
|
|
|
> a:not(.btn) {
|
2014-07-28 10:06:26 -04:00
|
|
|
color: @gray;
|
|
|
|
&:hover {
|
|
|
|
color: @gray-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-16 04:36:32 -04:00
|
|
|
|
2018-05-29 06:41:08 -04:00
|
|
|
/**************************************
|
|
|
|
Toggle Switch
|
|
|
|
***************************************/
|
|
|
|
|
2018-04-16 04:36:32 -04:00
|
|
|
.toggle-wrapper {
|
2018-05-29 06:41:08 -04:00
|
|
|
min-width: 200px;
|
2018-04-16 04:36:32 -04:00
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch {
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
background-color: @toggle-switch-bg;
|
|
|
|
border-radius: @btn-border-radius-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
font-weight: normal;
|
|
|
|
z-index: 2;
|
|
|
|
float: left;
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
line-height: 24px;
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
transition: color 0.12s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input:checked + .toggle-switch-label {
|
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-selection {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
top: 2px;
|
|
|
|
left: 2px;
|
|
|
|
right: 2px;
|
|
|
|
width: calc(~"50% - 2px");
|
|
|
|
height: calc(~"100% - 4px");
|
|
|
|
background: @toggle-switch-highlight-color;
|
|
|
|
border-radius: @btn-border-radius-base 0 0 @btn-border-radius-base;
|
|
|
|
transition: transform 0.12s ease-out, border-radius 0.12s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input:checked:nth-child(4) ~ .toggle-switch-selection {
|
|
|
|
transform: translate(100%);
|
|
|
|
border-radius: 0 @btn-border-radius-base @btn-border-radius-base 0;
|
|
|
|
}
|
2018-05-29 06:41:08 -04:00
|
|
|
|
|
|
|
/**************************************
|
|
|
|
Formatting buttons
|
|
|
|
***************************************/
|
2018-05-31 08:31:24 -04:00
|
|
|
formatting-buttons {
|
2018-05-29 11:56:38 -04:00
|
|
|
display: flex;
|
2018-05-31 08:31:24 -04:00
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
2018-05-29 11:56:38 -04:00
|
|
|
}
|
|
|
|
|
2018-05-29 06:41:08 -04:00
|
|
|
.formatting-btn {
|
|
|
|
padding: 0;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
border-left: 1px solid #ccc;
|
2018-05-29 11:56:38 -04:00
|
|
|
border-radius: 0;
|
2018-05-29 06:41:08 -04:00
|
|
|
|
2018-05-31 11:10:40 -04:00
|
|
|
&--icon {
|
|
|
|
min-width: 32px;
|
|
|
|
width: 32px;
|
2018-05-31 08:31:24 -04:00
|
|
|
|
2018-05-31 11:10:40 -04:00
|
|
|
&:last-of-type {
|
|
|
|
border-right: 1px solid @formatting-btn-border;
|
|
|
|
}
|
2018-05-29 06:41:08 -04:00
|
|
|
}
|
2018-05-29 11:56:38 -04:00
|
|
|
|
2018-05-31 11:10:40 -04:00
|
|
|
&--more {
|
|
|
|
padding-left: 9px;
|
|
|
|
padding-right: 9px;
|
|
|
|
}
|
2018-05-31 08:31:24 -04:00
|
|
|
}
|
|
|
|
|
2018-05-31 11:10:40 -04:00
|
|
|
.formatting-icon {
|
2018-05-29 11:56:38 -04:00
|
|
|
font-style: normal;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
2018-05-31 11:10:40 -04:00
|
|
|
|
|
|
|
.formatting-more {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formatting-menu {
|
|
|
|
min-width: auto;
|
|
|
|
|
|
|
|
.formatting-menu-item {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|