1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-23 00:05:09 +00:00
profile.volt.link/src/App.css

209 lines
3.5 KiB
CSS
Raw Normal View History

2021-01-21 18:51:09 +00:00
:root{
--volt-purple: #582C83;
--background: #140022;
2021-01-23 20:33:32 +00:00
--editor-purple: #522e77;
2021-01-21 18:51:09 +00:00
}
2021-01-21 18:50:54 +00:00
*{
2021-01-21 18:57:26 +00:00
margin: 0;
padding: 0;
font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2021-01-21 18:50:54 +00:00
}
body{
background-color: var(--background);
}
2021-01-23 18:37:59 +00:00
footer{
margin: 10vmin 0 0 0;
}
2021-01-23 20:18:18 +00:00
.locale_chooser{
margin: -8vmin 10vmin 10vmin 10vmin;
text-align: center;
}
2021-01-21 14:18:25 +00:00
.App {
text-align: center;
/* min-height: 100vh; */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
2021-01-21 22:15:09 +00:00
padding: 10vmin;
}
2021-01-21 18:16:17 +00:00
2021-01-23 21:09:14 +00:00
h1{
font-size: calc(10px + 10vmin);
line-height: 0.9;
margin-top: 2vmin;
}
2021-01-21 18:33:07 +00:00
h2{
margin: 10vh 0 2vh 0;
font-size: calc(10px + 4vmin);
}
p{
max-width: 100%;
width: calc(40vh + 15vw);
}
a{
color: white;
}
a:hover{
color: rgba(255,255,255,0.8);
}
2021-01-21 18:16:17 +00:00
.HeaderImage{
2021-01-23 21:09:14 +00:00
height: calc(10px + 20vmin);
2021-01-21 18:16:17 +00:00
max-width: 100%;
}
2021-01-21 18:32:45 +00:00
.FinishedFrame {
height: 36vh;
margin: 2vh;
2021-01-21 14:18:25 +00:00
}
2021-01-21 18:11:37 +00:00
.FrameChooser .frame{
position: relative;
display: inline-block;
font-size: 0;
2021-01-21 18:11:37 +00:00
margin: 2vh;
cursor: pointer;
/* box-shadow: 0 0 0 1vh rgba(255,255,255,0); */
2021-01-21 18:11:37 +00:00
transition: transform 0.2s ease;
}
.FrameChooser .frame img{
height: 12vh;
pointer-events: none;
}
2021-01-21 18:11:37 +00:00
.FrameChooser .frame:hover{
transform-origin: center center;
transform: scale(1.1);
}
/* .FrameChooser .frame.choosen{
2021-01-21 18:11:37 +00:00
box-shadow: 0 0 0 1vh white;
} */
.FrameChooser .frame.choosen:after {
content: "";
position: absolute;
top: -0.5vh;
right: -0.5vh;
bottom: -0.5vh;
left: -0.5vh;
box-shadow: 0 0 0 0.5vh white;
2021-01-21 14:18:25 +00:00
}
.HashtagChooser .hashtag_button {
/* display: block; */
margin: 1vmin;
}
2021-01-21 18:31:57 +00:00
button,
.labelButton{
position: relative;
2021-01-21 18:31:57 +00:00
outline: none;
border: none;
2021-01-23 21:36:27 +00:00
margin: 1vh;
2021-01-21 18:31:57 +00:00
padding: 1vh 2vh;
font-size: calc(10px + 2vmin);
font-weight: bold;
cursor: pointer;
background: white;
color: var(--volt-purple);
transition: transform 0.2s ease;
}
button:hover,
.labelButton:hover{
transform-origin: center center;
transform: scale(1.05);
2021-01-21 14:18:25 +00:00
}
button.choosen:after {
content: "";
position: absolute;
top: -0.5vh;
right: -0.5vh;
bottom: -0.5vh;
left: -0.5vh;
box-shadow: 0 0 0 0.5vh white;
}
2021-01-21 14:18:25 +00:00
2021-01-21 18:31:57 +00:00
.labelButton img{
display: inline;
height: calc(10px + 4vmin);
vertical-align: middle;
margin: 0 2vh 0 -1vh;
}
.labelButton span{
vertical-align: middle;
2021-01-21 14:18:25 +00:00
}
.droparea{
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: calc(10px + 10vmin);
background: rgba(20, 0, 34, 0.7);
backdrop-filter: blur(10px);
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
.droparea.active{
opacity: 1;
}
.Editor{
pointer-events: all;
position: relative;
margin: 2vh;
font-size: 0;
cursor: move;
overflow: hidden;
2021-01-23 18:02:48 +00:00
background: var(--editor-purple);
}
.Editor .background{
pointer-events: none;
position: absolute;
top: 50%;
left: 50%;
}
.Editor .foreground{
pointer-events: none;
position: relative;
width: 36vh;
height: 36vh;
}
.Editor .hashtag{
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}