CodePlayground/assets/css/main.css

169 lines
2.6 KiB
CSS
Raw Normal View History

2021-04-04 16:55:47 +02:00
* {
box-sizing: border-box;
margin: 0;
}
html, body {
height: 100%;
}
body {
2021-04-04 16:55:47 +02:00
background: #F0F0F0;
font-family: sans-serif;
font-size: 21px;
}
h1 {
2021-04-04 16:55:47 +02:00
color: #505050;
text-align: center;
}
2021-04-04 16:55:47 +02:00
header {
background-color: #E0E0E0;
margin-bottom: 25px;
padding: 10px;
2021-04-03 19:56:35 +02:00
}
2021-04-04 17:07:30 +02:00
#container {
position: relative;
height: 600px;
overflow: hidden;
}
#codeContainer {
2021-04-04 16:55:47 +02:00
display: inline-block;
width: 50%;
2021-04-04 17:07:30 +02:00
height: calc(100% - 50px);
2021-04-04 16:55:47 +02:00
vertical-align: top;
}
#code {
position: relative;
height: 100%;
}
2021-04-05 09:27:12 +02:00
#exBtn {
background-color: #9A9F03;
color: white;
font-weight: bold;
display: inline-block;
width: 25%;
border: none;
height: 50px;
transition: 0.3s;
}
#exBtn:hover {
background-color: #7A7F0A;
}
#runBtn {
background-color: #079992;
color: white;
2021-04-04 17:12:10 +02:00
font-weight: bold;
2021-04-05 09:27:12 +02:00
display: inline-block;
width: 50%;
border: none;
2021-04-04 17:07:30 +02:00
height: 50px;
2021-04-04 16:55:47 +02:00
transition: 0.3s;
}
#runBtn:hover {
background-color: #007972;
}
2021-04-05 09:27:12 +02:00
#clearBtn {
background-color: #832317;
color: white;
font-weight: bold;
display: inline-block;
width: 25%;
border: none;
height: 50px;
transition: 0.3s;
}
#clearBtn:hover {
background-color: #6A1F13;
}
#console {
2021-04-04 16:55:47 +02:00
font-family: monospace;
color: white;
2021-04-04 16:55:47 +02:00
display: inline-block;
background-color: #303030;
width: 50%;
2021-04-04 17:07:30 +02:00
height: calc(100% - 50px);
2021-04-04 16:55:47 +02:00
vertical-align: top;
overflow: auto;
}
.error {
2021-04-04 16:55:47 +02:00
margin: 5px;
padding: 5px;
border-radius: 5px;
background-color: #FF0000;
2021-04-04 16:55:47 +02:00
}
.message {
margin: 5px;
}
footer {
font-size: 10px;
2021-04-04 16:55:47 +02:00
margin-top: 25px;
padding: 10px;
}
p {
padding: 10px;
}
2021-04-03 19:56:35 +02:00
.cards {
display: flex;
justify-content: space-around;
2021-04-04 16:55:47 +02:00
margin-bottom: 20px;
2021-04-03 19:56:35 +02:00
}
.card {
position: relative;
display: inline-block;
border-radius: 15px;
background-color: #C0C0C0;
width: 150px;
transition: 0.3s;
2021-04-04 16:55:47 +02:00
padding: 15px;
2021-04-03 19:56:35 +02:00
}
.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;
}