55 lines
891 B
CSS
55 lines
891 B
CSS
h3{
|
|
text-align: center;
|
|
margin: 1vh;
|
|
}
|
|
|
|
.content{
|
|
background-color: lightgreen;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
padding:10px;
|
|
}
|
|
|
|
.topic > b{
|
|
display: block;
|
|
width: 40%;
|
|
}
|
|
.topic * {
|
|
display: inline-block;
|
|
}
|
|
.content :first-child b, .content :first-child a{
|
|
background-color: lightgreen;
|
|
}
|
|
|
|
.topic{
|
|
/* width:calc(50%-10px); */
|
|
padding:5px 10px;
|
|
margin: 10px ;
|
|
background-color: white;
|
|
}
|
|
@media (max-width:800px) {
|
|
.content{
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* grid part */
|
|
|
|
p{
|
|
margin: 5px auto;
|
|
max-width: 600px;
|
|
display: grid;
|
|
grid-template-rows: 1fr 1fr;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-gap: 5px;
|
|
}
|
|
p > a{
|
|
background-color: lightgray;
|
|
text-decoration: none;
|
|
color: black;
|
|
text-align: center;
|
|
}
|
|
p> :first-child{
|
|
background-color: lightgreen;
|
|
} |