mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
185 lines
3.3 KiB
Text
185 lines
3.3 KiB
Text
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 40px;
|
|
border-bottom: @toolbar-border-bottom;
|
|
|
|
> a, .toolbar-right > a {
|
|
position: relative;
|
|
.label {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: .15em .6em .2em;
|
|
font-size: 60%;
|
|
pointer-events: none; // Labels were capturing button/anchor clicks.
|
|
}
|
|
}
|
|
|
|
> a:focus {
|
|
outline: none;
|
|
}
|
|
|
|
> a:not(.btn),
|
|
.toolbar-left > a:not(.btn),
|
|
.toolbar-right > a:not(.btn) {
|
|
display: inline-block;
|
|
color: @toolbar-icon-btn-color;
|
|
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;
|
|
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-border-color;
|
|
color: @toolbar-btn-color;
|
|
padding: 3px 10px 5px;
|
|
font-size: 20px;
|
|
&: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;
|
|
}
|
|
.label {
|
|
top: 4px;
|
|
right: 4px;
|
|
}
|
|
}
|
|
.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-border-color;
|
|
}
|
|
}
|
|
|
|
.toolbar-center {
|
|
width: 300px;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
margin-left: -150px;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&.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-small {
|
|
.toolbar-small-mixin;
|
|
}
|
|
|
|
&.toolbar-tall {
|
|
.toolbar-small-mixin;
|
|
}
|
|
|
|
&.toolbar-alt {
|
|
.toolbar-alt-mixin;
|
|
}
|
|
}
|
|
|
|
.toolbar-small-mixin() {
|
|
height: @toolbar-small-height;
|
|
}
|
|
|
|
.toolbar-tall-mixin() {
|
|
height: @toolbar-tall-height;
|
|
padding-top: 10px;
|
|
}
|
|
.toolbar-alt-mixin() {
|
|
background-color: @toolbar-alt-bg-color;
|
|
}
|
|
|
|
.toolbar-label {
|
|
display: none;
|
|
margin: 0 4px;
|
|
font-size: @toolbar-font-size;
|
|
font-weight: 600;
|
|
margin-bottom: 2px;
|
|
vertical-align: middle;
|
|
|
|
@media (min-width: @screen-sm-min) {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
> a:not(.btn) {
|
|
color: @gray;
|
|
&:hover {
|
|
color: @gray-light;
|
|
}
|
|
}
|
|
}
|
|
}
|