|
|
|
@ -15,9 +15,12 @@
|
|
|
|
|
@bg-color: @colortheme_apps[default], // color of the toolbar background
|
|
|
|
|
) {
|
|
|
|
|
@toolbar-bg-color: @bg-color;
|
|
|
|
|
@desat-color: desaturate(@bg-color, 20%);
|
|
|
|
|
@toolbar-bg-color-light: contrast(@cp_toolbar-fg, lighten(@bg-color, 30%), darken(@desat-color, 20%));
|
|
|
|
|
@toolbar-bg-color-active: contrast(@cp_toolbar-fg, lighten(@bg-color, 20%), darken(@desat-color, 10%));
|
|
|
|
|
// XXX Todo: clean up unused variables
|
|
|
|
|
// XXX: check contrasts of app colors used as btn background
|
|
|
|
|
// @desat-color: desaturate(@bg-color, 20%);
|
|
|
|
|
// @toolbar-bg-color-active: contrast(@cp_toolbar-fg, lighten(@bg-color, 20%), darken(@desat-color, 10%));
|
|
|
|
|
@toolbar-bg-color-light: lighten(@bg-color, 30%);
|
|
|
|
|
@toolbar-bg-color-fade: fade(@toolbar-bg-color-light, 80%);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
.toolbar_main (
|
|
|
|
@ -27,8 +30,9 @@
|
|
|
|
|
.toolbar_vars(@bg-color);
|
|
|
|
|
|
|
|
|
|
--toolbar-bg-color: @toolbar-bg-color;
|
|
|
|
|
--toolbar-bg-color-fade: @toolbar-bg-color-fade;
|
|
|
|
|
--toolbar-bg-color-light: @toolbar-bg-color-light;
|
|
|
|
|
--toolbar-bg-color-active: @toolbar-bg-color-active;
|
|
|
|
|
// --toolbar-bg-color-active: @toolbar-bg-color-active;
|
|
|
|
|
|
|
|
|
|
.help_main();
|
|
|
|
|
.notifications_main();
|
|
|
|
@ -392,7 +396,6 @@
|
|
|
|
|
//display: inline-block;
|
|
|
|
|
button {
|
|
|
|
|
height: 100%;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
@ -439,6 +442,7 @@
|
|
|
|
|
screen and (max-height: 500px) {
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
height: @toolbar_line-height;
|
|
|
|
|
// XXX DB TODO: scale down icon logo on small screens
|
|
|
|
|
.cp-pad-not-pinned {
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
flex: unset;
|
|
|
|
@ -503,9 +507,12 @@
|
|
|
|
|
.cp-toolbar-link {
|
|
|
|
|
height: @toolbar_line-height;
|
|
|
|
|
width: @toolbar_line-height;
|
|
|
|
|
transform: scale(0.5);
|
|
|
|
|
//transform: scale(0.5);
|
|
|
|
|
.cp-toolbar-link-logo {
|
|
|
|
|
padding: 5px;
|
|
|
|
|
span {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-user {
|
|
|
|
@ -514,16 +521,20 @@
|
|
|
|
|
height: @toolbar_line-height;
|
|
|
|
|
width: @toolbar_line-height;
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
padding: 0px;
|
|
|
|
|
button {
|
|
|
|
|
height: @toolbar_line-height;
|
|
|
|
|
width: @toolbar_line-height;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
.cp-dropdown-button-title {
|
|
|
|
|
transform: scale(0.5);
|
|
|
|
|
bottom: -5px;
|
|
|
|
|
right: -5px;
|
|
|
|
|
&::before {
|
|
|
|
|
padding-top: 1px;
|
|
|
|
|
}
|
|
|
|
|
// .cp-dropdown-button-title {
|
|
|
|
|
// transform: scale(0.5);
|
|
|
|
|
// bottom: -5px;
|
|
|
|
|
// right: -5px;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-user-dropdown {
|
|
|
|
@ -723,7 +734,7 @@
|
|
|
|
|
line-height: @toolbar_top-height;
|
|
|
|
|
width: @toolbar_top-height;
|
|
|
|
|
height: @toolbar_top-height;
|
|
|
|
|
padding: 0;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
@ -735,9 +746,10 @@
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: @toolbar_top-height;
|
|
|
|
|
width: @toolbar_top-height - 10px;
|
|
|
|
|
font-size: 1em;
|
|
|
|
|
height: @toolbar_top-height;
|
|
|
|
|
height: @toolbar_top-height - 10px;
|
|
|
|
|
border-radius: @variables_radius;
|
|
|
|
|
padding: 0px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
&::before {
|
|
|
|
@ -795,22 +807,28 @@
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
color: @toolbar-bg-color;
|
|
|
|
|
color: var(--toolbar-bg-color);
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
#outline, #squares {
|
|
|
|
|
fill: @toolbar-bg-color;
|
|
|
|
|
fill: var(--toolbar-bg-color);
|
|
|
|
|
}
|
|
|
|
|
#background {
|
|
|
|
|
fill: @cp_toolbar-logo-bg;
|
|
|
|
|
}
|
|
|
|
|
span {
|
|
|
|
|
font-size: 45px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
// svg {
|
|
|
|
|
// #outline, #squares {
|
|
|
|
|
// fill: @toolbar-bg-color;
|
|
|
|
|
// fill: var(--toolbar-bg-color);
|
|
|
|
|
// }
|
|
|
|
|
// #background {
|
|
|
|
|
// fill: @cp_toolbar-logo-bg;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// img {
|
|
|
|
|
// cursor: pointer;
|
|
|
|
|
// height: 100%;
|
|
|
|
|
// width: 100%;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-user {
|
|
|
|
@ -876,6 +894,19 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-user-menu-logo {
|
|
|
|
|
text-align: left;
|
|
|
|
|
font-family: "IBM Plex Mono";
|
|
|
|
|
color: @cryptpad_color_grey_500;
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
img {
|
|
|
|
|
width: 25px;
|
|
|
|
|
}
|
|
|
|
|
.cp-user-menu-logo-text {
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
p.cp-toolbar-account {
|
|
|
|
|
&> span {
|
|
|
|
|
font-weight: bold;
|
|
|
|
@ -896,8 +927,8 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cp-toolbar-history, .cp-toolbar-snapshots {
|
|
|
|
|
background-color: @toolbar-bg-color-light;
|
|
|
|
|
background-color: var(--toolbar-bg-color-light);
|
|
|
|
|
background-color: @cp_toolbar-bg;
|
|
|
|
|
//background-color: var(--toolbar-bg-color-light);
|
|
|
|
|
color: @toolbar-color;
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-snapshots {
|
|
|
|
@ -935,24 +966,9 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-bottom {
|
|
|
|
|
background-color: @toolbar-bg-color-light;
|
|
|
|
|
background-color: var(--toolbar-bg-color-light);
|
|
|
|
|
color: @cp_toolbar-bottom-fg;
|
|
|
|
|
button:hover, button.cp-toolbar-button-active {
|
|
|
|
|
background-color: @toolbar-bg-color-active;
|
|
|
|
|
background-color: var(--toolbar-bg-color-active);
|
|
|
|
|
}
|
|
|
|
|
button.cp-toolbar-button-active {
|
|
|
|
|
border-color: @toolbar-bg-color-active;
|
|
|
|
|
border-color: var(--toolbar-bg-color-active);
|
|
|
|
|
}
|
|
|
|
|
button:hover, button:focus {
|
|
|
|
|
border-color: @toolbar-bg-color-active;
|
|
|
|
|
border-color: var(--toolbar-bg-color-active);
|
|
|
|
|
//border-color: @cryptpad_text_col;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
margin: 5px 0px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
max-width: 100%;
|
|
|
|
@ -967,18 +983,59 @@
|
|
|
|
|
margin: 5px 0px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
border: 1px solid @cp_toolbar-bottom-bg;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
position: relative;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-radius: @variables_radius;
|
|
|
|
|
height: @toolbar_line-height;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.fa, .cptools {
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
// XXX DB: not working well in dark/light
|
|
|
|
|
background-color: fade(@cp_toolbar-bottom-bg, 70%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-bottom-left > button,
|
|
|
|
|
.cp-toolbar-bottom-mid > button,
|
|
|
|
|
.cp-toolbar-bottom-right > button,
|
|
|
|
|
.cp-toolbar-bottom-right > span > button {
|
|
|
|
|
background-color: @cp_toolbar-bottom-bg;
|
|
|
|
|
color: @cp_toolbar-bottom-fg;
|
|
|
|
|
&:hover {
|
|
|
|
|
// XXX DB: not working well in dark/light
|
|
|
|
|
background-color: fade(@cp_toolbar-bottom-bg, 50%);
|
|
|
|
|
border-color: fade(@cp_toolbar-bottom-bg, 50%);
|
|
|
|
|
}
|
|
|
|
|
&.cp-toolbar-button-active {
|
|
|
|
|
background-color: @cp_toolbar-bg;
|
|
|
|
|
border-color: @cp_toolbar-fg;
|
|
|
|
|
color: @cp_toolbar-fg;
|
|
|
|
|
&:hover {
|
|
|
|
|
// XXX DB: not working well in dark/light
|
|
|
|
|
background-color: fade(@cp_toolbar-bottom-bg, 50%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button.cp-toolbar-button-primary {
|
|
|
|
|
background-color: @toolbar-bg-color-light;
|
|
|
|
|
background-color: var(--toolbar-bg-color-light);
|
|
|
|
|
border-color: @toolbar-bg-color-light;
|
|
|
|
|
border-color: var(--toolbar-bg-color-light);
|
|
|
|
|
color: @cp_toolbar-bottom-fg;
|
|
|
|
|
&:hover {
|
|
|
|
|
// XXX DB: not working well in dark/light
|
|
|
|
|
background-color: fade(@toolbar-bg-color-light, 80%);
|
|
|
|
|
background-color: var(--toolbar-bg-color-fade);
|
|
|
|
|
border-color: fade(@toolbar-bg-color-light, 80%);
|
|
|
|
|
border-color: var(--toolbar-bg-color-fade);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
button.cp-toolbar-collapse {
|
|
|
|
|
/*
|
|
|
|
@ -988,10 +1045,24 @@
|
|
|
|
|
is very small, which makes it unlikely that you'll see the title unless
|
|
|
|
|
you hover perfectly. The same is true of the drive's grid/list view toggle.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
.fa {
|
|
|
|
|
margin-right: 0px;
|
|
|
|
|
}
|
|
|
|
|
.cp-collapsed-notif {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 12px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
background-color: @cryptpad_color_red;
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: -3px;
|
|
|
|
|
right: -3px;
|
|
|
|
|
border: 2px solid @cp_toolbar-bg;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
&:not(.cp-toolbar-button-active) .cp-collapsed-notif {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.cp-toolbar-small {
|
|
|
|
@ -1013,14 +1084,25 @@
|
|
|
|
|
.cp-toolbar-bottom-left {
|
|
|
|
|
display: flex;
|
|
|
|
|
order: 1;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
button {
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-bottom-mid {
|
|
|
|
|
display: flex;
|
|
|
|
|
order: 2;
|
|
|
|
|
button {
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-bottom-right {
|
|
|
|
|
order: 3;
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
button {
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
}
|
|
|
|
|
#cp-toolbar-chat-drawer-open { order: 0; }
|
|
|
|
|
#cp-toolbar-userlist-drawer-open { order: 1; }
|
|
|
|
|
& > .cp-dropdown-container {
|
|
|
|
@ -1081,6 +1163,7 @@
|
|
|
|
|
}
|
|
|
|
|
.cp-toolbar-drawer-content {
|
|
|
|
|
box-shadow: 0px 1px 5px 0px @cp_shadow-color;
|
|
|
|
|
border-radius: @variables_radius;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
&.cp-dropdown-visible {
|
|
|
|
@ -1089,7 +1172,8 @@
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0px;
|
|
|
|
|
top: @toolbar_line-height;
|
|
|
|
|
margin: -1px;
|
|
|
|
|
//margin: -1px;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
min-width: 50px;
|
|
|
|
|
background: @cp_dropdown-bg;
|
|
|
|
|
display: flex;
|
|
|
|
@ -1105,15 +1189,15 @@
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
min-width: 150px;
|
|
|
|
|
height: @toolbar_line-height;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-radius: @variables_radius;
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|
|
|
|
|
button {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
padding: 5px 16px;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
text-align: left;
|
|
|
|
|
margin: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-radius: @variables_radius;
|
|
|
|
|
border: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
line-height: 1em;
|
|
|
|
|