2024-10-23 03:32:40 -04:00
|
|
|
@import '../../abstracts/variables';
|
|
|
|
|
2024-09-04 03:52:08 -04:00
|
|
|
:root {
|
|
|
|
--toolbar-border-color: var(--neutral-80);
|
|
|
|
--toolbar-header-bg-color: var(--neutral-90);
|
|
|
|
--toolbar-header-btn-border-color: var(--neutral-80);
|
|
|
|
--toolbar-btn-color: var(--white);
|
|
|
|
--toolbar-btn-hover-bg-color: var(--neutral-80);
|
2024-09-25 09:46:17 -04:00
|
|
|
--toolbar-btn-hover-color: var(--white);
|
2024-09-30 04:11:26 -04:00
|
|
|
--toolbar-btn-active-color: var(--white);
|
|
|
|
--toolbar-btn-active-bg-color: var(--green-50);
|
2024-10-23 03:32:40 -04:00
|
|
|
--toolbar-height: #{$toolbar-height};
|
|
|
|
--toolbar-small-height: #{$toolbar-small-height};
|
2024-10-08 10:22:13 -04:00
|
|
|
--toolbar-alt-bg-color: var(--neutral-80);
|
2024-09-30 04:11:26 -04:00
|
|
|
--formatting-btn-color: var(--white);
|
|
|
|
--formatting-btn-bg: var(--neutral-80);
|
|
|
|
--formatting-btn-border: var(--neutral-70);
|
2024-09-04 03:52:08 -04:00
|
|
|
--project-name-color: var(--neutral-40);
|
2024-09-25 09:46:17 -04:00
|
|
|
--toolbar-filetree-bg-color: var(--neutral-80);
|
2024-09-04 03:52:08 -04:00
|
|
|
--project-rename-link-color: var(--neutral-40);
|
|
|
|
--project-rename-link-color-hover: var(--neutral-20);
|
|
|
|
--editor-header-logo-background: url(../../../../../public/img/ol-brand/overleaf-o-white.svg)
|
|
|
|
center / contain no-repeat;
|
2024-09-30 04:11:26 -04:00
|
|
|
--editor-toolbar-bg: var(--neutral-80);
|
2024-09-04 03:52:08 -04:00
|
|
|
}
|
2024-09-03 07:30:25 -04:00
|
|
|
|
2024-09-06 08:36:15 -04:00
|
|
|
@include theme('light') {
|
|
|
|
--toolbar-border-color: var(--neutral-20);
|
|
|
|
--toolbar-header-bg-color: var(--white);
|
|
|
|
--toolbar-header-btn-border-color: var(--neutral-20);
|
|
|
|
--toolbar-btn-color: var(--neutral-70);
|
|
|
|
--toolbar-btn-hover-bg-color: var(--neutral-10);
|
2024-09-25 09:46:17 -04:00
|
|
|
--toolbar-btn-hover-color: var(--neutral-70);
|
2024-09-30 04:11:26 -04:00
|
|
|
--toolbar-btn-active-bg-color: var(--green-50);
|
2024-10-08 10:22:13 -04:00
|
|
|
--toolbar-alt-bg-color: var(--white);
|
2024-09-30 04:11:26 -04:00
|
|
|
--formatting-btn-color: var(--neutral-70);
|
|
|
|
--formatting-btn-bg: transparent;
|
|
|
|
--formatting-btn-border: var(--neutral-20);
|
2024-09-06 08:36:15 -04:00
|
|
|
--project-name-color: var(--neutral-70);
|
2024-09-25 09:46:17 -04:00
|
|
|
--toolbar-filetree-bg-color: var(--white);
|
2024-09-06 08:36:15 -04:00
|
|
|
--project-rename-link-color: var(--neutral-70);
|
|
|
|
--project-rename-link-color-hover: var(--neutral-70);
|
|
|
|
--editor-header-logo-background: url(../../../../../public/img/ol-brand/overleaf-o.svg)
|
|
|
|
center / contain no-repeat;
|
2024-09-30 04:11:26 -04:00
|
|
|
--editor-toolbar-bg: var(--white);
|
2024-09-06 08:36:15 -04:00
|
|
|
}
|
|
|
|
|
2024-09-03 07:30:25 -04:00
|
|
|
.toolbar {
|
|
|
|
display: flex;
|
2024-09-25 09:46:17 -04:00
|
|
|
align-items: center;
|
2024-09-04 03:52:08 -04:00
|
|
|
height: var(--toolbar-height);
|
|
|
|
border-bottom: 1px solid var(--toolbar-border-color);
|
|
|
|
|
|
|
|
button {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
pointer-events: none; // Labels were capturing button/anchor clicks.
|
|
|
|
|
|
|
|
.badge-content {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-right,
|
|
|
|
.toolbar-left {
|
2024-09-06 08:36:15 -04:00
|
|
|
button:not(.back-to-editor-btn) {
|
2024-09-04 03:52:08 -04:00
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-right .back-to-editor-btn {
|
|
|
|
margin-right: var(--spacing-09);
|
2024-09-25 09:46:17 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.toolbar-label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> a:focus,
|
|
|
|
button:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> a:not(.btn),
|
|
|
|
> button,
|
|
|
|
.toolbar-left > a:not(.btn),
|
|
|
|
.toolbar-left > button,
|
|
|
|
.toolbar-right > a:not(.btn),
|
|
|
|
.toolbar-right > button:not(.back-to-editor-btn) {
|
|
|
|
display: inline-block;
|
|
|
|
color: var(--toolbar-btn-color);
|
|
|
|
background-color: transparent;
|
|
|
|
padding: var(--spacing-01);
|
|
|
|
line-height: 1;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: var(--border-radius-base);
|
|
|
|
|
|
|
|
&.toolbar-header-back-projects {
|
|
|
|
padding: var(--spacing-02) var(--spacing-04) var(--spacing-02);
|
|
|
|
margin-bottom: var(--spacing-01);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-shadow: none;
|
|
|
|
color: var(--toolbar-btn-hover-color);
|
|
|
|
background-color: transparent;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
.label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
color: white;
|
|
|
|
background-color: var(--bg-info-01);
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
}
|
2024-09-04 03:52:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
a.btn-full-height,
|
|
|
|
button.btn-full-height {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
2024-09-06 08:36:15 -04:00
|
|
|
border-right: 1px solid var(--toolbar-header-btn-border-color);
|
2024-09-04 03:52:08 -04:00
|
|
|
color: var(--toolbar-btn-color);
|
|
|
|
padding: var(--spacing-02) var(--spacing-05) var(--spacing-03);
|
|
|
|
font-size: var(--font-size-05);
|
|
|
|
max-height: 39px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-shadow: none;
|
|
|
|
background-color: var(--toolbar-btn-hover-bg-color);
|
|
|
|
color: var(--toolbar-btn-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
color: var(--white);
|
|
|
|
background-color: $bg-accent-01;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
top: var(--spacing-01);
|
|
|
|
right: var(--spacing-02);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.header-cobranding-logo-container {
|
|
|
|
height: calc(var(--toolbar-height) - 1px);
|
|
|
|
padding: var(--spacing-04) var(--spacing-05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner-border {
|
|
|
|
vertical-align: middle;
|
|
|
|
font-size: var(--font-size-02);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dropdown-toggle {
|
|
|
|
line-height: 1;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
vertical-align: middle;
|
|
|
|
font-size: var(--font-size-02);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-left {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
float: left;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-right {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
2024-09-06 08:36:15 -04:00
|
|
|
a.btn-full-height,
|
|
|
|
button.btn-full-height {
|
2024-09-04 03:52:08 -04:00
|
|
|
border-right: 0;
|
|
|
|
border-left: 1px solid var(--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 {
|
2024-09-25 09:46:17 -04:00
|
|
|
align-items: stretch;
|
2024-09-04 03:52:08 -04:00
|
|
|
background-color: var(--toolbar-header-bg-color);
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-item {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-28 08:52:25 -04:00
|
|
|
.layout-dropdown .dropdown-item {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2024-09-04 03:52:08 -04:00
|
|
|
.header-cobranding-logo {
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-label {
|
|
|
|
display: none;
|
|
|
|
margin: 0 var(--spacing-02);
|
|
|
|
font-size: var(--font-size-02);
|
|
|
|
font-weight: 600;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toolbar-label-multiline {
|
|
|
|
line-height: 1.1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-header-upgrade-prompt {
|
|
|
|
margin-left: var(--spacing-05);
|
|
|
|
|
|
|
|
@include media-breakpoint-down(lg) {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-25 09:46:17 -04:00
|
|
|
.toolbar-filetree {
|
|
|
|
@include toolbar-sm-height;
|
|
|
|
|
|
|
|
background-color: var(--toolbar-filetree-bg-color);
|
|
|
|
padding: 0 var(--spacing-03);
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
2024-09-04 03:52:08 -04:00
|
|
|
.editor-menu-icon {
|
|
|
|
&.material-symbols {
|
|
|
|
width: 1em;
|
|
|
|
text-indent: -9999px;
|
|
|
|
background: var(--editor-header-logo-background);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.project-name {
|
|
|
|
.name {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
@include text-truncate;
|
|
|
|
|
|
|
|
padding: var(--spacing-03);
|
|
|
|
vertical-align: top;
|
|
|
|
color: var(--project-name-color);
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
height: 30px;
|
|
|
|
margin-top: var(--spacing-02);
|
|
|
|
padding: var(--spacing-03);
|
|
|
|
max-width: 500px;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.rename {
|
|
|
|
visibility: hidden;
|
|
|
|
display: inline-block;
|
|
|
|
color: var(--project-rename-link-color);
|
|
|
|
padding: var(--spacing-03);
|
|
|
|
border-radius: var(--border-radius-base);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-shadow: 0 1px 0 rgb(0 0 0 / 25%);
|
|
|
|
color: var(--project-rename-link-color-hover);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
a.rename {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
2024-09-03 07:30:25 -04:00
|
|
|
}
|
2024-09-30 04:11:26 -04:00
|
|
|
|
|
|
|
.toolbar-editor {
|
2024-10-23 03:32:40 -04:00
|
|
|
height: var(--toolbar-small-height);
|
2024-09-30 04:11:26 -04:00
|
|
|
background-color: var(--editor-toolbar-bg);
|
|
|
|
padding: 0 5px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
z-index: 10; // Prevent track changes showing over toolbar
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************
|
|
|
|
Toggle Switch
|
|
|
|
***************************************/
|
|
|
|
|
|
|
|
.toggle-switch {
|
2024-10-14 04:00:41 -04:00
|
|
|
--toggle-switch-height: 26px;
|
|
|
|
--toggle-switch-padding: var(--spacing-01);
|
|
|
|
|
2024-09-30 04:11:26 -04:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2024-10-14 04:00:41 -04:00
|
|
|
height: var(--toggle-switch-height);
|
2024-09-30 04:11:26 -04:00
|
|
|
margin-right: var(--spacing-03);
|
|
|
|
border-radius: var(--border-radius-full);
|
|
|
|
background-color: var(--neutral-20);
|
2024-10-14 04:00:41 -04:00
|
|
|
padding: var(--toggle-switch-padding);
|
2024-09-30 04:11:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label {
|
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
|
|
|
font-weight: normal;
|
2024-10-14 04:00:41 -04:00
|
|
|
|
|
|
|
// It seems we need to set the height explicitly rather than using 100% to get the button to display correctly in Blink
|
|
|
|
height: calc(var(--toggle-switch-height) - 2 * var(--toggle-switch-padding));
|
2024-09-30 04:11:26 -04:00
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
color: var(--content-secondary);
|
|
|
|
border-radius: var(--border-radius-full);
|
|
|
|
transition:
|
|
|
|
color 0.12s ease-out,
|
|
|
|
background-color 0.12s ease-out,
|
|
|
|
box-shadow 0.12s ease-out;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 var(--spacing-08);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: 0 0;
|
|
|
|
transition: background-position 0.12s ease-out;
|
|
|
|
font-size: var(--font-size-02);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input:disabled + .toggle-switch-label {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input:checked + .toggle-switch-label {
|
|
|
|
span {
|
|
|
|
background-position: -100% 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
color: var(--white);
|
|
|
|
background-color: var(--bg-accent-01);
|
|
|
|
border-radius: var(--border-radius-full);
|
|
|
|
box-shadow: 0 2px 4px rgb(30 37 48 / 16%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-input:checked:nth-child(2) + .toggle-switch-label {
|
|
|
|
span {
|
|
|
|
background-position: 100% 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-toggle-switch {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
.toggle-switch {
|
|
|
|
margin-left: var(--spacing-03);
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label span {
|
|
|
|
background: none;
|
|
|
|
transition: background 0.12s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label:first-of-type span {
|
|
|
|
padding-left: var(--spacing-04);
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-switch-label:last-of-type span {
|
|
|
|
padding-right: var(--spacing-04);
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************
|
|
|
|
Formatting buttons
|
|
|
|
***************************************/
|
|
|
|
.formatting-btn {
|
|
|
|
color: var(--formatting-btn-color);
|
|
|
|
background-color: var(--formatting-btn-bg);
|
|
|
|
padding: 0;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
border-left: 1px solid var(--formatting-btn-border);
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--formatting-btn-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--white);
|
|
|
|
background-color: var(--toolbar-btn-active-bg-color);
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: var(--toolbar-btn-active-color);
|
|
|
|
|
|
|
|
&:not(:focus-visible) {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: var(--formatting-btn-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.formatting-btn-icon {
|
|
|
|
min-width: 32px;
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formatting-btn-icon:last-of-type {
|
|
|
|
border-right: 1px solid var(--formatting-btn-border);
|
|
|
|
}
|