edia / style.css
LMartinezEXEX's picture
Changed buttons labels
664fbd5
raw
history blame
5.81 kB
:root {
--card-bg: white;
--main-btn-primary: black;
--main-btn-secundary: white;
}
body {
padding: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
background-image: url("images/background.png");
}
p {
color: rgb(24, 24, 24);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
text-align: justify;
line-height: 1.7;
}
button {
border: 0;
border-radius: 0.25rem;
font-size: 1rem;
line-height: 1.2;
padding: 0.25rem 0.5rem;
margin: 0.25rem;
cursor: pointer;
}
a.button {
display: block;
border: 0;
border-radius: 0.25rem;
font-size: 1rem;
line-height: 1.2;
padding: 0.25rem 0.5rem;
margin: 0.25rem;
cursor: pointer;
text-decoration: none;
text-align: center;
color: black;
}
#head-flex-container {
margin-bottom: 2rem;
display: flex;
flex-direction: row;
flex-wrap: wrap-reverse;
justify-content: space-between;
align-items: flex-end;
gap: 1rem;
}
#head-flex-container > #title-container {
flex-grow: 3;
}
#title-container > #name {
margin: 0;
font-size: 42px;
}
#title-container > #subname {
margin: 0;
color: white;
font-size: 18px;
}
#main-buttons-flex-container {
margin-top: 1.5rem;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: baseline;
}
#main-buttons-flex-container > .button {
flex: 1;
white-space: nowrap;
min-width: 230px;
}
#cards-container {
padding: 0.5rem 0;
}
.card {
min-width: 230px;
margin: 1rem auto;
padding: 16px;
border: 1px solid var(--card-bg);
border-radius: 16px;
background-color: var(--card-bg);
transition: transform .5s, box-shadow 1s;
}
.card:hover {
transform: scale(1.02) perspective(0px);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}
.card > h3 {
margin: 0.25rem;
}
.card p {
color: rgb(92, 93, 97);
}
.card-description-flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
column-gap: 20px;
min-width: 100%;
}
.card-description-flex-container p:first-child {
flex: 2 1 780px;
}
.card-description-flex-container div:nth-child(2) {
flex: 55 1 0;
}
.card-description-flex-container > p {
display: block;
text-align: justify;
}
.buttons-flex-container {
display: flex;
flex-direction: column;
gap: 7px 5px;
flex: 1;
max-width: 500px;
}
.divided-buttons-flex-container {
display: flex;
flex-direction: row;
gap: 0 5px;
}
.divided-buttons-flex-container > .button {
flex: 1;
}
footer > p {
color: rgb(136, 138, 142);
font-size: 10px;
}
footer > #image-flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 30px 15px;
margin-bottom: 2rem;
}
footer img#viaLibre-logo {
max-width: 25rem;
}
#our-pages-flex-container {
min-width: 230px;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: 0.5rem;
}
#our-pages-flex-container h4 {
color: rgb(24, 24, 24);
margin: 10px 0 5px 0;
}
#our-pages-flex-container a {
text-decoration: none;
color: rgb(24, 24, 24);
}
footer img#github-logo {
vertical-align:middle;
width: 2.5rem;
margin-right: 5px;
}
footer img#docker-logo {
vertical-align:middle;
width: 2.5rem;
margin-right: 5px;
}
footer img#hf-logo {
vertical-align:middle;
width: 2.5rem;
margin-right: 5px;
}
/* Buttons Styling */
button#translate {
padding: 0.5rem 0.75rem;
margin: 5px 0 0 0;
background-color: #58A6FF;
color: white;
transition: background-color 0.6s;
}
button#translate:hover {
background-color: #4080c9;
}
button#translate > img {
vertical-align:bottom;
width: 20px;
}
#main-buttons-flex-container > .button {
padding: 0.5rem 0.75rem;
}
#main-buttons-flex-container > .button:hover {
box-shadow: -7px -7px 20px 0px #fff9,
-4px -4px 5px 0px #fff9,
7px 7px 20px 0px #0002,
4px 4px 5px 0px #0001;
}
#main-buttons-flex-container > .button#hf {
border-radius: 0;
background-color: var(--main-btn-primary);
border: 1px solid var(--main-btn-primary);
color: var(--main-btn-secundary);
transition: 0.4s;
}
#main-buttons-flex-container > .button#ccad {
border-radius: 0;
background-color: var(--main-btn-primary);
border: 1px solid var(--main-btn-primary);
color: var(--main-btn-secundary);
transition: 0.4s;
}
#main-buttons-flex-container > .button#hf:hover,
#main-buttons-flex-container > .button#ccad:hover {
background: var(--main-btn-secundary);
color: var(--main-btn-primary);
border: none;
}
#main-buttons-flex-container > .button#tutorial {
border-radius: 0;
background-color: var(--main-btn-secundary);
border: 1px solid var(--main-btn-primary);
transition: 0.4s;
}
.buttons-flex-container .button.demo {
border-radius: 0;
background: linear-gradient(45deg, purple 0%, rgb(242, 202, 242) 60%, white 100%);
background-size: 200% 200%;
background-position: right bottom;
transition: 0.5s;
}
.buttons-flex-container .button.demo:hover {
background-position: left bottom;
color: white;
}
.buttons-flex-container .button.tuto {
border-radius: 0;
background: linear-gradient(45deg, green 0%, rgb(189, 223, 189) 60%, white 100%);
background-size: 200% 200%;
background-position: right bottom;
transition: 0.5s;
}
.buttons-flex-container .button.tuto:hover {
background-position: left bottom;
color: white;
}
.buttons-flex-container .button.manual {
border-radius: 0;
background: linear-gradient(45deg, orange 0%,rgb(225, 219, 208) 60%, white 100%);
background-size: 200% 200%;
background-position: right bottom;
transition: 0.5s;
}
.buttons-flex-container .button.manual:hover {
background-position: left bottom;
color: white;
}
/* Media queries */
@media only screen and (max-width: 769px) {
footer img#viaLibre-logo {
max-width: 20rem;
}
button#translate {
width: 100%;
}
}