Improve navigation design and make it more compact

This commit is contained in:
Alice Gaudon 2020-05-05 22:24:05 +02:00
parent 41a3837004
commit 32ef82286a

View File

@ -7,6 +7,7 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
width: 48px;
} }
#service-selector { #service-selector {
@ -15,7 +16,11 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow-y: auto; overflow: hidden auto;
}
#service-selector::-webkit-scrollbar {
width: 6px;
} }
#service-selector [draggable] { #service-selector [draggable] {
@ -29,14 +34,14 @@ body {
} }
#service-selector .drag-target button { #service-selector .drag-target button {
height: 144px; height: 56px;
padding-top: 88px; padding-top: 88px;
} }
#service-selector .drag-target button::after, #service-selector .drag-target button::after,
#service-last-drag-position.drag-target { #service-last-drag-position.drag-target {
content: ""; content: "";
height: 72px; height: 56px;
border: 1px dashed #fff; border: 1px dashed #fff;
box-sizing: border-box; box-sizing: border-box;
@ -71,11 +76,12 @@ body {
} }
#navigation button { #navigation button {
position: relative;
display: block; display: block;
width: 100%; width: 48px;
padding: 16px; height: 48px;
margin: 0; margin: 0;
height: 72px; padding: 0;
color: #fff; color: #fff;
border: 0; border: 0;
@ -84,12 +90,17 @@ body {
cursor: pointer; cursor: pointer;
} }
#navigation button:focus {
outline-color: transparent;
background: #fff3 !important;
}
#navigation button img { #navigation button img {
width: 32px; width: 24px;
} }
#navigation button i { #navigation button i {
font-size: 32px; font-size: 24px;
} }
#service-selector li { #service-selector li {
@ -102,39 +113,39 @@ body {
} }
#service-selector li.active button { #service-selector li.active button {
position: relative;
background-color: #fff2; background-color: #fff2;
} }
#service-selector li.active button::before { #service-selector li.loaded button::before {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
left: 0; right: 0;
top: 0;
height: 100%;
border-left: 4px solid #ffffff2e;
}
#service-selector li.loaded::after {
content: "";
position: absolute;
top: 50%; top: 50%;
right: 2px;
transform: translateY(-50%); transform: translateY(-50%);
width: 4px; height: 75%;
height: 4px; border-right: 4px solid #ffffff3e;
background-color: #fff;
border-radius: 100%;
} }
/*#service-selector li.loaded::after {*/
/* content: "";*/
/* position: absolute;*/
/* top: 50%;*/
/* right: 2px;*/
/* transform: translateY(-50%);*/
/* width: 4px;*/
/* height: 4px;*/
/* background-color: #fff;*/
/* border-radius: 100%;*/
/*}*/
#navigation button:hover { #navigation button:hover {
background-color: #fff3; background-color: #fff3;
} }
#history { #history {
padding: 8px; padding: 2px;
} }
#history button { #history button {
@ -145,8 +156,6 @@ body {
font-size: 12px; font-size: 12px;
background: #fff1; background: #fff1;
border: 1px solid #fff4;
border-radius: 72px;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;