GMOD-Loadscreen/css/main.less

65 lines
1.2 KiB
Plaintext

@bg: rgba(20,20,20,0.9); // Red Green Blue Alpha (Transparency)
@text-color: #EEEEEE;
@font-size: 14px;
body {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
margin: 0px;
height: 100%;
background-image: url("../img/bg.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
color: @text-color;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
div.main {
width: 90%;
min-width: 600px;
padding: 20px;
box-sizing: border-box;
background: @bg;
display: flex;
flex-direction: row;
border-radius: 10px;
div {
flex: 1;
&.text {
margin-right: 10px;
overflow-y: auto;
}
&.img {
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
}
img {
border-radius: 10px;
position: absolute;
top: 0;
transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
animation-name: showcase;
animation-duration: 18s;
animation-iteration-count: infinite;
max-width: 100%;
max-height: 100%;
}
}
}
}
@keyframes showcase {
0% {
transform: translateX(110%);
}
6%,27% {
transform: translateX(0%);
}
34%,100% {
transform: translateX(-110%);
}
}