overleaf/services/web/public/stylesheets/app/editor/toolbar.less

180 lines
3.2 KiB
Text
Raw Normal View History

2014-06-26 11:39:52 -04:00
.toolbar {
display: flex;
align-items: center;
2014-06-26 11:39:52 -04:00
height: 40px;
border-bottom: @toolbar-border-bottom;
2014-06-26 11:39:52 -04: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%;
pointer-events: none; // Labels were capturing button/anchor clicks.
2014-07-17 06:05:08 -04: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;
color: @toolbar-icon-btn-color;
padding: 0 5px;
2014-06-29 09:22:08 -04:00
border-radius: @border-radius-small;
&.toolbar-header-back-projects {
padding: 5px 10px 4px;
margin-bottom: 1px;
}
2014-06-26 11:39:52 -04:00
&:hover {
text-shadow: @toolbar-icon-btn-hover-shadow;
color: @toolbar-icon-btn-hover-color;
2014-06-29 09:22:08 -04: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;
}
}
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;
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
}
.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 {
display: flex;
2016-09-26 11:09:27 -04:00
float: left;
text-align: center;
align-items: center;
2016-09-26 11:09:27 -04:00
}
2014-06-26 11:39:52 -04:00
.toolbar-right {
display: flex;
align-items: center;
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
}
&.toolbar-tall {
2017-11-23 10:21:06 -05:00
.toolbar-small-mixin;
}
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
}
2016-09-26 10:03:04 -04:00
.toolbar-label {
display: none;
2016-09-26 11:09:27 -04:00
margin: 0 4px;
font-size: @toolbar-font-size;
font-weight: 600;
margin-bottom: 2px;
2016-09-26 11:09:27 -04:00
vertical-align: middle;
@media (min-width: @screen-sm-min) {
display: inline-block;
}
2016-09-26 10:03:04 -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;
}
> a:not(.btn) {
color: @gray;
&:hover {
color: @gray-light;
}
}
}
}