204 lines
4.3 KiB
CSS
204 lines
4.3 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "Kulim Park", sans-serif;
|
|
--dark: hsl(200, 5%, 15%);
|
|
--light: hsl(15, 70%, 98%);
|
|
--grey: hsl(15, 6%, 92%);
|
|
--radius: 8px;
|
|
--size-max: 20px;
|
|
--shadow: 0 0 0 1px var(--dark);
|
|
--shadow-hover: 0 0 0 2px var(--dark);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
transition: all ease-out 0.3s;
|
|
&:hover {
|
|
font-weight: 700;
|
|
}
|
|
&.no-style {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
/*Main content (between header and footer)*/
|
|
body > main {
|
|
min-height: calc(100vh - ((2rem + 2 * 0.75rem) + 6rem));
|
|
/* height: fit-content; */
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/*fix symfony template style*/
|
|
.example-wrapper {
|
|
margin: 0 1em !important;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
|
|
padding: 0.75rem;
|
|
|
|
background-color: var(--dark);
|
|
color: var(--light);
|
|
height: 2rem;
|
|
}
|
|
|
|
header > form {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 2px 8px;
|
|
border: solid 2px var(--light);
|
|
border-radius: var(--radius);
|
|
|
|
& > input[type="text"] {
|
|
border: none;
|
|
outline: none;
|
|
background: none;
|
|
color: var(--light);
|
|
}
|
|
& > select {
|
|
background: none;
|
|
border: none;
|
|
outline: none;
|
|
appearance: none;
|
|
}
|
|
& label > img {
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
padding-top: 1px;
|
|
padding-bottom: -1px;
|
|
}
|
|
& input[type="submit"] {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100vw;
|
|
height: 6rem;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: hsl(200, 5%, 85%);
|
|
& > p {
|
|
font-size: large;
|
|
}
|
|
}
|
|
|
|
main:is(#login, #register) > form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-max);
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-width: 300px;
|
|
max-width: 10rem;
|
|
justify-content: center;
|
|
align-items: center;
|
|
& > label:not(label[for="registration_form_agreeTerms"]) {
|
|
display: none;
|
|
}
|
|
& > :is(input[type="text"], input[type="password"]) {
|
|
height: var(--size-max);
|
|
border-radius: var(--radius);
|
|
padding: calc(var(--size-max) / 2) var(--size-max);
|
|
border: none;
|
|
background: var(--grey);
|
|
width: 80%;
|
|
}
|
|
& > input[type="submit"] {
|
|
cursor: pointer;
|
|
background: var(--light);
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
color: var(--dark);
|
|
padding: calc(var(--size-max) - 8px) 0;
|
|
width: 70%;
|
|
height: 20%;
|
|
transition: all ease-out 0.2s;
|
|
&:hover {
|
|
box-shadow: var(--shadow-hover);
|
|
}
|
|
}
|
|
}
|
|
|
|
main:is(#searchResults, #favorites) {
|
|
& > h1 {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
}
|
|
& div.results {
|
|
width: 90%;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
justify-items: stretch;
|
|
gap: 2rem;
|
|
}
|
|
& > nav {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 24px;
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
section.album {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.6rem;
|
|
padding: 0.7rem;
|
|
width: auto;
|
|
/* max-width: max-content; */
|
|
transition: all ease-out 0.15s;
|
|
box-shadow: var(--shadow);
|
|
border-radius: var(--radius);
|
|
&.fav {
|
|
transform: rotate(-1deg);
|
|
}
|
|
&:hover {
|
|
transform: scale(1.01);
|
|
box-shadow: var(--shadow-hover);
|
|
&.fav {
|
|
transform: rotate(-1deg) scale(1.01);
|
|
}
|
|
}
|
|
& > span {
|
|
width: fit-content;
|
|
& > * {
|
|
display: inline;
|
|
}
|
|
}
|
|
& > img {
|
|
min-width: 180px;
|
|
width: 100%;
|
|
max-width: 260px;
|
|
}
|
|
& > button {
|
|
background: var(--light);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
padding: 8px 12px;
|
|
transition: all ease-out 0.15s;
|
|
border: none;
|
|
outline: none;
|
|
&:hover {
|
|
box-shadow: var(--shadow-hover);
|
|
}
|
|
}
|
|
}
|