Reduce toolbar height on mobiles

pull/1/head
yflory 7 years ago
parent 7a70d69d8e
commit eac10321ba

@ -362,53 +362,146 @@
flex: 1; flex: 1;
} }
} }
&:not(.cp-toolbar-notitle) { .cp-toolbar-top {
.cp-toolbar-top { @media screen and (max-width: @browser_media-medium-screen) {
@media screen and (max-width: @browser_media-medium-screen) { flex-wrap: wrap;
flex-wrap: wrap; height: @toolbar_line-height;
height: auto; .cp-pad-not-pinned {
.cp-toolbar-top-filler { line-height: 32px;
flex: 1; flex: unset;
} padding: 0;
.cp-toolbar-title { align-self: auto;
flex: auto; margin: 0 5px;
}
.cp-toolbar-top-filler {
height: 32px;
}
.cp-toolbar-title {
height: @toolbar_line-height;
line-height: initial;
margin: 0;
.cp-toolbar-title-hoverable {
width: 100%; width: 100%;
order: 10; }
.cp-toolbar-title-value-page {
padding: 5px;
line-height: unset;
border: 0;
}
.cp-toolbar-title-editable, .cp-toolbar-title-value-page {
max-width: ~"calc(100vw - 26px)";
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
font-size: @colortheme_app-font-size;
height: @toolbar_line-height; height: @toolbar_line-height;
line-height: initial; box-sizing: border-box;
margin: 0; line-height: 20px;
.cp-toolbar-title-hoverable { }
width: 100%; .cp-toolbar-title-edit, .cp-toolbar-title-save {
} box-sizing: border-box;
.cp-toolbar-title-editable { height: @toolbar_line-height;
max-width: ~"calc(100vw - 26px)"; line-height: @colortheme_app-font-size;
display: inline-block; display: inline-block;
overflow: hidden;
text-overflow: ellipsis; .fa {
font-size: @colortheme_app-font-size; font-size: @colortheme_app-font-size;
}
}
input {
height: @toolbar_line-height;
font-size: @colortheme_app-font-size;
flex: 1;
max-width: none;
line-height: calc(@toolbar_line-height - 12px); // padding + border
}
}
.cp-toolbar-link {
height: @toolbar_line-height;
width: @toolbar_line-height;
.cp-toolbar-link-logo {
padding: 5px;
}
}
.cp-toolbar-user {
height: @toolbar_line-height;
.cp-toolbar-new {
height: @toolbar_line-height;
width: @toolbar_line-height;
margin-left: 0;
button {
height: @toolbar_line-height; height: @toolbar_line-height;
box-sizing: border-box; width: @toolbar_line-height;
line-height: 20px; font-size: 20px;
margin-top: -1px;
} }
.cp-toolbar-title-edit, .cp-toolbar-title-save { }
box-sizing: border-box; .cp-toolbar-user-dropdown {
height: @toolbar_line-height;
width: @toolbar_line-height;
&> button {
height: @toolbar_line-height; height: @toolbar_line-height;
line-height: @colortheme_app-font-size; width: @toolbar_line-height;
display: inline-block; span { font-size: unset; }
}
.fa { &> button.cp-avatar.cp-avatar {
font-size: @colortheme_app-font-size; media-tag {
margin: 4px;
max-width: 24px;
min-width: 24px;
max-height: 24px;
min-height: 24px;
} }
} }
input { }
height: @toolbar_line-height; .cp-toolbar-limit {
line-height: 32px;
margin: 0;
}
}
/*
.cp-toolbar-top-filler {
flex: 1;
}
.cp-toolbar-title {
flex: auto;
width: 100%;
order: 10;
height: @toolbar_line-height;
line-height: initial;
margin: 0;
.cp-toolbar-title-hoverable {
width: 100%;
}
.cp-toolbar-title-editable {
max-width: ~"calc(100vw - 26px)";
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
font-size: @colortheme_app-font-size;
height: @toolbar_line-height;
box-sizing: border-box;
line-height: 20px;
}
.cp-toolbar-title-edit, .cp-toolbar-title-save {
box-sizing: border-box;
height: @toolbar_line-height;
line-height: @colortheme_app-font-size;
display: inline-block;
.fa {
font-size: @colortheme_app-font-size; font-size: @colortheme_app-font-size;
flex: 1;
max-width: none;
line-height: calc(@toolbar_line-height - 12px); // padding + border
} }
} }
input {
height: @toolbar_line-height;
font-size: @colortheme_app-font-size;
flex: 1;
max-width: none;
line-height: calc(@toolbar_line-height - 12px); // padding + border
}
} }
*/
} }
} }
@ -471,9 +564,9 @@
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
align-self: center; line-height: @toolbar_top-height;
padding-left: 20px; padding: 0;
padding-right: 5px; margin: 0 5px;
font-size: @colortheme_app-font-size; font-size: @colortheme_app-font-size;
color: @warn-color; color: @warn-color;
.cp-pnp-msg { .cp-pnp-msg {

Loading…
Cancel
Save