Improve mobile UI

pull/602/head
Thibaut Courouble 8 years ago
parent 29b839589c
commit f3b5234321

@ -31,6 +31,7 @@
._header-btn { ._header-btn {
position: relative; position: relative;
flex: 0 0 auto;
width: 2.25rem; width: 2.25rem;
height: 100%; height: 100%;
color: $textColorLight; color: $textColorLight;
@ -220,10 +221,12 @@
z-index: 2; z-index: 2;
top: .875rem; top: .875rem;
left: .875rem; left: .875rem;
padding: 0 .5rem; padding: 0 .375rem;
line-height: 1.25rem; line-height: 1.25rem;
font-size: .875rem; max-width: 50%;
font-size: .8125rem;
color: $textColorLight; color: $textColorLight;
background: darken($headerBackground, 5%); background: darken($headerBackground, 5%);
border-radius: 2px; border-radius: 2px;
@extend %truncate-text;
} }

@ -23,7 +23,7 @@
position: static; position: static;
height: auto; height: auto;
margin: 0; margin: 0;
padding: .75rem 1rem 0; padding: .75rem 1rem 1px;
&:before { content: none; } &:before { content: none; }
} }
@ -46,14 +46,13 @@
// Header // Header
._header-btn { width: 2.5rem; }
._header-btn[hidden] { display: block; } ._header-btn[hidden] { display: block; }
._search { ._search {
padding-right: .125rem; padding-right: .125rem;
padding-left: .125rem; padding-left: .125rem;
&:before { left: .5rem; } &:before { left: .625rem; }
} }
._search-tag { left: .5rem; } ._search-tag { left: .5rem; }

@ -20,10 +20,12 @@
iframe { iframe {
display: block; display: block;
max-width: 100%;
margin-bottom: 1em; margin-bottom: 1em;
padding: 1px; padding: 1px;
border: 1px dotted $boxBorder; border: 1px dotted $boxBorder;
border-radius: 3px; border-radius: 3px;
@extend %border-box;
} }
} }

@ -97,6 +97,7 @@
cursor: default; cursor: default;
background: $sidebarBackground; background: $sidebarBackground;
box-shadow: inset -1px 0 $sidebarBorder; box-shadow: inset -1px 0 $sidebarBorder;
@extend %truncate-text;
&, &:hover { &, &:hover {
color: inherit; color: inherit;
@ -126,17 +127,10 @@
} }
} }
._list-item, ._list-text {
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
overflow-wrap: normal;
text-overflow: ellipsis;
}
._list-text { ._list-text {
display: block; display: block;
pointer-events: none; pointer-events: none;
@extend %truncate-text;
} }
._list-count, ._list-enable { ._list-count, ._list-enable {

@ -21,6 +21,14 @@
@extend %user-select-none; @extend %user-select-none;
} }
%truncate-text {
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
overflow-wrap: normal;
text-overflow: ellipsis;
}
// //
// Boxes // Boxes
// //

Loading…
Cancel
Save