CodePlayground/assets/css/main.css

127 lines
1.9 KiB
CSS

html, body {
height: 100%;
}
body {
background: #0A3D62;
font-family: sans-serif;
font-size: 21px;
color: white;
}
h1 {
color: white;
text-align: center;
}
a {
color: white;
}
#codeContainer {
display: block;
width: 80%;
margin: auto;
height: 500px;
}
#code {
position: relative;
height: 100%;
}
#runBtn {
background-color: #079992;
color: white;
display: block;
width: 80%;
margin: auto;
border: none;
margin-top: 10px;
line-height: 3rem;
}
#console {
color: white;
width: 80%;
margin: auto;
margin-top: 10px;
}
.error {
background-color: #FF0000;
color: white;
}
footer {
font-size: 10px;
color: white;
margin-top: 10px;
}
.cards {
display: flex;
justify-content: space-around;
}
.card {
position: relative;
display: inline-block;
border-radius: 15px;
background-color: #C0C0C0;
width: 150px;
transition: 0.3s;
}
.bg-img {
height: 120px;
border-radius: 15px;
background-repeat: no-repeat;
background-size: contain;
background-position: center center;
margin: 5px;
}
.card p {
text-align: center;
color: black;
}
.card:hover {
transform: scale(1.1);
}
#js-card {
background-image: url("../img/js.svg");
}
#py-card {
background-image: url("../img/py.svg");
}
#lua-card {
background-image: url("../img/lua.svg");
}
#sqlite-card {
background-image: url("../img/sqlite.svg");
}
#html-card {
background-image: url("../img/html.svg");
}
#html-card:hover::before {
display: inline-block;
content: "Bientôt";
color: white;
height: 100%;
width: 100%;
background-color: black;
opacity: 0.7;
text-align: center;
line-height: 100px;
}
#sqlite-card:hover::before {
display: inline-block;
content: "Bientôt";
color: white;
height: 100%;
width: 100%;
background-color: black;
opacity: 0.7;
text-align: center;
line-height: 100px;
}
#lua-card:hover::before {
display: inline-block;
content: "Bientôt";
color: white;
height: 100%;
width: 100%;
background-color: black;
opacity: 0.7;
text-align: center;
line-height: 100px;
}