2018-11-07 06:28:56 -05:00
|
|
|
@toolbar-height: 40px;
|
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
.toolbar {
|
2019-12-05 14:09:31 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: @toolbar-height;
|
|
|
|
border-bottom: @toolbar-border-bottom;
|
|
|
|
|
|
|
|
> a,
|
2021-11-03 09:21:14 -04:00
|
|
|
.toolbar-right > a,
|
|
|
|
button {
|
2019-12-05 14:09:31 -05:00
|
|
|
position: relative;
|
|
|
|
.label {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 0.15em 0.6em 0.2em;
|
|
|
|
font-size: 60%;
|
|
|
|
pointer-events: none; // Labels were capturing button/anchor clicks.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:07:11 -05:00
|
|
|
.toolbar-right,
|
|
|
|
.toolbar-left {
|
2024-05-07 05:05:20 -04:00
|
|
|
button {
|
2021-11-03 09:21:14 -04:00
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-30 09:40:06 -04:00
|
|
|
.toolbar-right .back-to-editor-btn {
|
2024-05-06 03:50:12 -04:00
|
|
|
margin-right: 27px;
|
2024-04-30 09:40:06 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-05-07 05:05:20 -04:00
|
|
|
.btn-secondary;
|
2024-04-30 09:40:06 -04:00
|
|
|
|
|
|
|
.toolbar-label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-15 11:33:57 -05:00
|
|
|
> a:focus,
|
|
|
|
button:focus {
|
2019-12-05 14:09:31 -05:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2021-02-09 04:50:34 -05:00
|
|
|
> a:not(.btn),
|
2020-11-26 09:22:30 -05:00
|
|
|
> button,
|
2021-02-09 04:50:34 -05:00
|
|
|
.toolbar-left > a:not(.btn),
|
2020-11-26 09:22:30 -05:00
|
|
|
.toolbar-left > button,
|
2021-02-09 04:50:34 -05:00
|
|
|
.toolbar-right > a:not(.btn),
|
2024-04-30 09:40:06 -04:00
|
|
|
.toolbar-right > button:not(.back-to-editor-btn) {
|
2019-12-05 14:09:31 -05:00
|
|
|
display: inline-block;
|
|
|
|
color: @toolbar-icon-btn-color;
|
2020-11-26 09:22:30 -05:00
|
|
|
background-color: transparent;
|
2019-12-05 14:09:31 -05:00
|
|
|
padding: 4px 2px;
|
|
|
|
line-height: 1;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: @border-radius-small;
|
|
|
|
&.toolbar-header-back-projects {
|
|
|
|
padding: 5px 10px 4px;
|
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-shadow: @toolbar-icon-btn-hover-shadow;
|
|
|
|
color: @toolbar-icon-btn-hover-color;
|
2020-11-26 09:22:30 -05:00
|
|
|
background-color: transparent;
|
2019-12-05 14:09:31 -05:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
.label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
color: white;
|
|
|
|
background-color: @link-color;
|
|
|
|
box-shadow: @toolbar-icon-btn-hover-boxshadow;
|
|
|
|
&:hover {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toolbar-pdf > a:not(.btn) {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-full-height {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
border-right: 1px solid @toolbar-header-btn-border-color;
|
|
|
|
color: @toolbar-btn-color;
|
|
|
|
padding: 3px 10px 5px;
|
|
|
|
font-size: 20px;
|
|
|
|
max-height: 39px;
|
|
|
|
&:hover {
|
|
|
|
text-shadow: @toolbar-btn-hover-text-shadow;
|
|
|
|
background-color: @toolbar-btn-hover-bg-color;
|
|
|
|
color: @toolbar-btn-hover-color;
|
|
|
|
}
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
color: @toolbar-btn-active-color;
|
|
|
|
background-color: @toolbar-btn-active-bg-color;
|
|
|
|
box-shadow: @toolbar-btn-active-shadow;
|
2023-01-10 13:22:03 -05:00
|
|
|
.editor-menu-icon {
|
|
|
|
background: @editor-header-logo-background-active;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
.label {
|
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.header-cobranding-logo-container {
|
|
|
|
height: @toolbar-height - 1;
|
|
|
|
padding: 8px 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn-full-height-no-border {
|
|
|
|
border-right: 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-left {
|
|
|
|
display: flex;
|
|
|
|
float: left;
|
|
|
|
text-align: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-right {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: flex-end;
|
|
|
|
.btn-full-height {
|
|
|
|
border-right: 0;
|
|
|
|
border-left: 1px solid @toolbar-header-btn-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-center {
|
|
|
|
text-align: center;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
// At small screen sizes, center relative to the left menu and right buttons
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toolbar-header {
|
|
|
|
background-color: @toolbar-header-bg-color;
|
|
|
|
box-shadow: @toolbar-header-shadow;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toolbar-alt {
|
|
|
|
.toolbar-alt-mixin;
|
|
|
|
}
|
2017-11-23 10:21:06 -05:00
|
|
|
}
|
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
.header-cobranding-logo {
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
2018-11-07 06:28:56 -05:00
|
|
|
|
2017-11-23 10:21:06 -05:00
|
|
|
.toolbar-small-mixin() {
|
2019-12-05 14:09:31 -05:00
|
|
|
height: @toolbar-small-height;
|
2017-11-23 10:21:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-tall-mixin() {
|
2019-12-05 14:09:31 -05:00
|
|
|
height: @toolbar-tall-height;
|
|
|
|
padding-top: 10px;
|
2017-11-23 10:21:06 -05:00
|
|
|
}
|
|
|
|
.toolbar-alt-mixin() {
|
2019-12-05 14:09:31 -05:00
|
|
|
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 {
|
2019-12-05 14:09:31 -05:00
|
|
|
display: none;
|
|
|
|
margin: 0 4px;
|
|
|
|
font-size: @toolbar-font-size;
|
|
|
|
font-weight: 600;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
@media (min-width: @screen-md-min) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toolbar-label-multiline {
|
|
|
|
line-height: 1.1;
|
|
|
|
}
|
2016-09-26 10:03:04 -04:00
|
|
|
}
|
|
|
|
|
2022-04-27 11:12:04 -04:00
|
|
|
.toolbar-header-upgrade-prompt {
|
2022-06-01 09:18:19 -04:00
|
|
|
margin-left: 10px;
|
2022-04-27 11:12:04 -04:00
|
|
|
@media (max-width: @screen-md-min) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-28 10:06:26 -04:00
|
|
|
.editor-dark {
|
2019-12-05 14:09:31 -05:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
> a:not(.btn) {
|
|
|
|
color: @gray;
|
|
|
|
&:hover {
|
|
|
|
color: @gray-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-28 10:06:26 -04:00
|
|
|
}
|
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 {
|
2022-02-14 06:18:40 -05:00
|
|
|
white-space: nowrap;
|
2018-04-16 04:36:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch {
|
2022-12-07 05:52:05 -05:00
|
|
|
display: inline-flex;
|
2021-12-14 08:25:42 -05:00
|
|
|
align-items: center;
|
2022-11-15 05:55:29 -05:00
|
|
|
height: @toolbar-btn-height;
|
2022-02-14 06:18:40 -05:00
|
|
|
margin-right: 5px;
|
2019-12-05 14:09:31 -05:00
|
|
|
border-radius: @btn-border-radius-base;
|
2022-11-01 06:48:17 -04:00
|
|
|
background-color: @toggle-switch-bg;
|
|
|
|
padding: 2px;
|
2018-04-16 04:36:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label {
|
2021-12-14 08:25:42 -05:00
|
|
|
display: inline-block;
|
2022-01-10 10:45:55 -05:00
|
|
|
float: left;
|
2019-12-05 14:09:31 -05:00
|
|
|
font-weight: normal;
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
2021-12-14 08:25:42 -05:00
|
|
|
margin: 0;
|
2019-12-05 14:09:31 -05:00
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
color: @text-color;
|
2023-03-24 08:06:07 -04:00
|
|
|
border-radius: @btn-border-radius-base;
|
2024-03-25 06:51:40 -04:00
|
|
|
transition:
|
|
|
|
color 0.12s ease-out,
|
|
|
|
background-color 0.12s ease-out,
|
2023-03-24 08:06:07 -04:00
|
|
|
box-shadow 0.12s ease-out;
|
2021-12-14 08:25:42 -05:00
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
span {
|
2022-02-28 06:36:34 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-12-14 08:25:42 -05:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2022-11-01 06:48:17 -04:00
|
|
|
padding: 0 8px;
|
2021-12-14 08:25:42 -05:00
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: 0 0;
|
|
|
|
transition: background-position 0.12s ease-out;
|
2022-11-01 06:48:17 -04:00
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
2021-12-14 08:25:42 -05:00
|
|
|
}
|
2018-04-16 04:36:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input {
|
2019-12-05 14:09:31 -05:00
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
2022-07-07 09:50:25 -04:00
|
|
|
pointer-events: none;
|
2018-04-16 04:36:32 -04:00
|
|
|
}
|
|
|
|
|
2023-02-08 06:02:01 -05:00
|
|
|
.toggle-switch-input:disabled + .toggle-switch-label {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2018-04-16 04:36:32 -04:00
|
|
|
.toggle-switch-input:checked + .toggle-switch-label {
|
2021-12-14 08:25:42 -05:00
|
|
|
span {
|
|
|
|
background-position: -100% 0;
|
|
|
|
}
|
|
|
|
color: @white;
|
2022-11-01 06:48:17 -04:00
|
|
|
background-color: @toggle-switch-highlight-color;
|
|
|
|
border-radius: @btn-border-radius-base;
|
|
|
|
box-shadow: 0px 2px 4px rgba(30, 37, 48, 0.16);
|
2018-04-16 04:36:32 -04:00
|
|
|
}
|
|
|
|
|
2021-12-14 08:25:42 -05:00
|
|
|
.toggle-switch-input:checked:nth-child(2) + .toggle-switch-label {
|
|
|
|
span {
|
|
|
|
background-position: 100% 0;
|
|
|
|
}
|
2018-04-16 04:36:32 -04:00
|
|
|
}
|
2018-05-29 06:41:08 -04:00
|
|
|
|
2022-02-21 06:16:49 -05:00
|
|
|
.editor-toggle-switch {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-06-30 05:46:46 -04:00
|
|
|
white-space: nowrap;
|
2022-02-21 06:16:49 -05:00
|
|
|
|
|
|
|
.toggle-switch {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label span {
|
|
|
|
background: none;
|
|
|
|
transition: background 0.12s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label:first-of-type span {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label:last-of-type span {
|
|
|
|
padding-right: 8px;
|
|
|
|
border-right: none;
|
|
|
|
}
|
2023-06-30 05:46:46 -04:00
|
|
|
|
|
|
|
.badge {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2022-02-21 06:16:49 -05:00
|
|
|
}
|
|
|
|
|
2018-05-29 06:41:08 -04:00
|
|
|
/**************************************
|
|
|
|
Formatting buttons
|
|
|
|
***************************************/
|
2018-05-31 12:47:55 -04:00
|
|
|
.formatting-buttons {
|
2019-12-05 14:09:31 -05:00
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
2018-05-29 11:56:38 -04:00
|
|
|
}
|
|
|
|
|
2018-05-29 06:41:08 -04:00
|
|
|
.formatting-btn {
|
2019-12-05 14:09:31 -05:00
|
|
|
color: @formatting-btn-color;
|
|
|
|
background-color: @formatting-btn-bg;
|
|
|
|
padding: 0;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
border-left: 1px solid @formatting-btn-border;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @formatting-btn-color;
|
|
|
|
}
|
2021-05-25 06:15:45 -04:00
|
|
|
|
2021-05-31 04:27:14 -04:00
|
|
|
&.active {
|
|
|
|
color: @toolbar-btn-active-color;
|
|
|
|
background-color: @toolbar-btn-active-bg-color;
|
|
|
|
box-shadow: @toolbar-btn-active-shadow;
|
2021-11-10 05:50:01 -05:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: @toolbar-btn-active-color;
|
|
|
|
|
|
|
|
&:not(:focus-visible) {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
2021-05-31 04:27:14 -04:00
|
|
|
}
|
|
|
|
|
2021-05-25 06:15:45 -04:00
|
|
|
&:focus {
|
|
|
|
color: @formatting-btn-color;
|
|
|
|
}
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-06-01 08:19:00 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-btn--icon {
|
2019-12-05 14:09:31 -05:00
|
|
|
min-width: 32px;
|
|
|
|
width: 32px;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-05-31 08:31:24 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-btn--icon:last-of-type {
|
2019-12-05 14:09:31 -05:00
|
|
|
border-right: 1px solid @formatting-btn-border;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-05-29 11:56:38 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-btn--more {
|
2019-12-05 14:09:31 -05:00
|
|
|
padding-left: 9px;
|
|
|
|
padding-right: 9px;
|
2018-06-05 09:55:32 -04:00
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
.caret {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
2018-05-31 08:31:24 -04:00
|
|
|
}
|
|
|
|
|
2018-05-31 11:10:40 -04:00
|
|
|
.formatting-icon {
|
2019-12-05 14:09:31 -05:00
|
|
|
font-style: normal;
|
|
|
|
line-height: 1.5;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-06-01 08:45:47 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-icon--small {
|
2019-12-05 14:09:31 -05:00
|
|
|
font-size: small;
|
|
|
|
line-height: 1.9;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-06-01 08:45:47 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-icon--serif {
|
2019-12-05 14:09:31 -05:00
|
|
|
font-family: @font-family-serif;
|
2018-05-29 11:56:38 -04:00
|
|
|
}
|
2018-05-31 11:10:40 -04:00
|
|
|
|
|
|
|
.formatting-more {
|
2019-12-05 14:09:31 -05:00
|
|
|
margin-left: auto;
|
2018-05-31 11:10:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.formatting-menu {
|
2019-12-05 14:09:31 -05:00
|
|
|
min-width: auto;
|
|
|
|
max-width: 130px;
|
|
|
|
background-color: @formatting-menu-bg;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-05-31 11:10:40 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-menu-item {
|
2019-12-05 14:09:31 -05:00
|
|
|
float: left;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-05-31 11:26:40 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
.formatting-menu-item > .formatting-btn {
|
2019-12-05 14:09:31 -05:00
|
|
|
border-right: none;
|
2018-06-01 10:09:15 -04:00
|
|
|
}
|
2018-06-01 08:19:00 -04:00
|
|
|
|
2018-06-01 10:09:15 -04:00
|
|
|
// Disable border on left-most icon in menu
|
|
|
|
.formatting-menu-item:nth-of-type(4n + 1) > .formatting-btn {
|
2019-12-05 14:09:31 -05:00
|
|
|
border-left: none;
|
2018-05-31 11:10:40 -04:00
|
|
|
}
|
2021-01-12 06:24:21 -05:00
|
|
|
|
|
|
|
.toolbar.toolbar-pdf > a[disabled] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
.opacity(0.65);
|
|
|
|
.box-shadow(none);
|
|
|
|
}
|
2022-11-15 05:55:29 -05:00
|
|
|
|
|
|
|
.toolbar-btn-secondary {
|
|
|
|
height: @toolbar-btn-height;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
margin-bottom: 0.5px;
|
|
|
|
}
|
2023-06-06 12:42:28 -04:00
|
|
|
|
|
|
|
.switch-to-editor-btn {
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch-to-editor-btn,
|
|
|
|
.switch-to-pdf-btn {
|
|
|
|
text-align: left;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.toolbar-btn-secondary-icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|