pitaya-launcher/css/style.css

383 regels
6.2 KiB
CSS

@font-face {
font-family: 'sawasdeeregular';
src: url('../fonts/sawasdee-webfont.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
* {
box-sizing: border-box;
}
html, body {
padding: 0;
margin: 0;
font-family: 'sawasdeeregular';
width: 100%;
height: 100%;
color: white;
overflow-x: hidden;
background:
url(../img/pitaya.png) no-repeat bottom 15px left 30px,
url(../img/cadoles.png) no-repeat bottom 15px right 30px,
radial-gradient(circle at top left, rgba(255,207,104, 0.9), rgba(255,207,104, 0)),
linear-gradient(30deg, rgba(241,26,96,0.7), rgba(6,188,137,0.8)),
linear-gradient(145deg, rgba(254,139,85,0.7), rgba(59,23,119,1));
background-size: 120px, 100px, cover, cover, cover;
}
/* Common */
.alert.alert-default {
border-radius: 4px;
border: 1px solid #ddd;
}
.app-icon {
background-position: center center;
background-size: contain;
background-repeat: no-repeat;
}
.full-width {
width: 100%;
}
/* Launcher View */
.launcher {
display: flex;
flex-direction: column;
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
.launcher > .crossfade-image {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
.launcher .crossfade-image .top,
.launcher .crossfade-image .bottom {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
}
.launcher .main {
flex-direction: row;
display: flex;
flex-grow: 1;
}
.launcher .nav {
justify-content: center;
align-items: center;
display: flex;
width: 60px;
z-index: 10;
padding-left: 40px;
}
.launcher .nav a.goback {
text-decoration: none;
color: white;
font-size: 75px;
text-shadow: 1px 1px #444;
font-family: arrows;
}
.launcher .nav a.goback:hover {
-webkit-animation: 500ms pulse-large infinite;
}
.launcher .category-header {
padding: 25px 40px 0;
font-size: 50px;
color: #fff;
text-shadow: 1px 1px #444;
z-index: 10;
}
.launcher .category-header > .category-label {
float: right;
font-size: 46px;
letter-spacing: -4px;
text-shadow: none;
}
.launcher .category-header .goback {
font-weight: normal;
}
.launcher ul.apps-list {
margin: 0;
padding: 0 20%;
display: flex;
flex-direction: row;
list-style: none;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: center;
flex-grow: 1;
}
.launcher .nav ~ ul.apps-list {
margin-left: -60px;
}
.launcher li.app-item {
margin: 5px;
border-radius: 5px;
background-color: rgba(0,0,0,0.4);
box-shadow: 5px 5px 30px -2px rgba(0,0,0,0.5);
cursor: pointer;
padding: 10px 5px;
text-align: center;
margin-top: 5px;
transition: 150ms linear;
position: relative;
overflow: hidden;
width: 138px;
height: 138px;
}
.launcher li.app-item::after {
content: ' ';
display: block;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
width: 150%;
height: 125%;
position: absolute;
left: -50%;
top: -75%;
}
.launcher li.app-item:hover {
background-color: rgba(0,0,0,0.6);
}
.launcher li.app-item > .app-icon {
width: 90px;
height: 90px;
margin: auto;
}
.launcher li.app-item > .app-label {
display: block;
text-align: center;
color: white;
text-overflow: ellipsis;
max-width: 90%;
overflow: hidden;
margin: 5px auto;
}
/* Edit View */
.edit {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
background-color: #f7f7f7;
}
.edit .title {
margin-top: 5px;
}
.edit .menu-bar {
padding: 5px 10px;
display: flex;
flex-direction: row;
}
.edit .menu-bar button {
margin-right: 3px;
}
.edit .left {
flex: 1;
display: flex;
}
.edit .main {
flex: 3;
display: flex;
}
.edit .right {
flex: 1;
display: flex;
}
.edit .workspace {
display: flex;
flex-direction: row;
padding: 10px;
flex: 1;
}
.edit .workspace .main {
flex-direction: column;
}
.edit .left-menu {
display: flex;
flex-direction: column;
flex: 1;
overflow-y: auto;
}
.edit .workspace .left .apps-menu {
display: flex;
flex-direction: column;
}
.edit .workspace .right {
flex-direction: column;
}
.edit .item-form {
display: flex;
flex-direction: row;
flex: 2;
}
.edit .item-form > form {
width: 100%;
}
.edit .apps-list {
overflow: auto;
margin-top: 5px;
}
.edit .apps-list .icon-theme-selector > select {
width: 100%;
}
.edit .apps-list ul.desktop-apps {
list-style: none;
padding: 0;
height: 100%;
display: block;
margin-right: 5px;
}
.edit .desktop-app > .app-icon {
height: 20px;
width: 20px;
display: inline-block;
vertical-align: middle;
margin-right: 10px;
}
.edit .desktop-app.list-group-item {
padding: 5px 10px;
}
.edit .profile-tree {
padding: 0 5px;
width: 100%;
height: 100%;
overflow-y: auto;
}
.edit .profile-tree ul {
list-style: none;
margin: 0;
}
.edit .profile-tree > .tree-item > ul {
padding: 0;
}
.edit .profile-tree .tree-item .alert {
padding: 5px;
margin-bottom: 2px;
}
.edit .profile-tree .tree-item .app-icon {
height: 25px;
width: 25px;
margin-right: 5px;
display: inline-block;
vertical-align: middle;
}
.edit .app-item-edit {
padding: 0 5px;
}
/* Animations */
.crossfade-leave {
opacity: 1;
}
.crossfade-leave.crossfade-leave-active {
opacity: 0.01;
transition: opacity 500ms ease-in-out;
}
.pulse {
-webkit-animation: 1s pulse infinite;
}
@-webkit-keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@-webkit-keyframes pulse-large {
0% { transform: scale(1); }
50% { transform: scale(1.3); }
100% { transform: scale(1); }
}
@-webkit-keyframes fade-out {
0% { opacity: 1; }
1% { opacity: 0.99; }
99% { opacity: 0.01; }
100% { opacity: 0; }
}
@-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%); }
}