Gestion d'un nombre arbitraire de sous catégories + transitions

This commit is contained in:
2015-08-26 20:17:18 +02:00
parent 5b1cec8789
commit d6dad43b3f
5 changed files with 145 additions and 37 deletions

View File

@ -3,21 +3,51 @@
}
html, body {
padding: 1Opx 10px;
padding: 0;
margin: 0;
font-family: 'Droid Sans', 'Ubuntu Sans', sans-serif;
background: url('../img/background.png') no-repeat;
background-size: contain;
background-position: center;
background-color: rgb(34, 107, 160);
}
body, ul.apps-list {
width: 100%;
height: 100%;
color: white;
overflow-x: hidden;
}
ul.apps-list {
/* Launcher View */
.launcher {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
}
.launcher .category-header {
padding: 40px 50px 0;
font-size: 50px;
}
.launcher .category-header a.goback {
text-decoration: none;
color: white;
}
.launcher .category-header a.goback:hover {
-webkit-animation: 500ms pulse-large infinite;
}
.launcher .category-header > .category-label {
float: right;
}
.launcher .category-header .goback {
font-weight: normal;
}
.launcher ul.apps-list {
display: block;
margin: 0;
padding: 0;
@ -28,10 +58,10 @@ ul.apps-list {
justify-content: center;
align-items: center;
align-content: center;
flex-grow: 1;
}
li.app-item {
background-color: red;
.launcher li.app-item {
margin: 5px;
border-radius: 5px;
background-color: rgba(0,0,0,0.4);
@ -43,10 +73,10 @@ li.app-item {
transition: 150ms linear;
position: relative;
overflow: hidden;
min-width: 10%;
min-width: 150px;
}
li.app-item::after {
.launcher li.app-item::after {
content: ' ';
display: block;
border-radius: 50%;
@ -58,22 +88,24 @@ li.app-item::after {
top: -75%;
}
li.app-item:hover {
.launcher li.app-item:hover {
background-color: rgba(0,0,0,0.6);
}
li.app-item > .app-icon {
.launcher li.app-item > .app-icon {
width: 70%;
height: auto;
}
li.app-item > .app-label {
.launcher li.app-item > .app-label {
display: block;
text-align: center;
color: white;
}
li.app-item.loading {
/* Animations */
.pulse {
-webkit-animation: 1s pulse infinite;
}
@ -82,3 +114,29 @@ li.app-item.loading {
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@-webkit-keyframes pulse-large {
0% { transform: scale(1); }
50% { transform: scale(1.5); }
100% { transform: scale(1); }
}
@-webkit-keyframes slide-in-left {
0% { transform: translateX(-100%); }
100% { transform: translateX(0%); }
}
@-webkit-keyframes slide-in-right {
0% { transform: translateX(100%); }
100% { transform: translateX(0%); }
}
@-webkit-keyframes slide-out-left {
0% { transform: translateX(0%); }
100% { transform: translateX(-100%); }
}
@-webkit-keyframes slide-out-right {
0% { transform: translateX(0%); }
100% { transform: translateX(100%); }
}