cs50/style.css

99 lines
1.9 KiB
CSS
Raw Normal View History

2024-04-17 22:03:27 +03:00
body, html{
font-family: Arial, Helvetica, sans-serif;
}
.bg{
background-image: url(img/vinni.jpg);
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 15px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.7);
}
.topnav {
overflow: hidden;
background-color: #242428;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #04AA6D;
color: white;
}
.topnav .icon {
display: none;
}
.index-container{
margin: 2rem 1.5rem;
}
.card{
border-radius: 0px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 50ms;
border-radius: 15px;
}
.mycard{
padding: 1rem;
margin: 0.5rem;
white-space: nowrap;
overflow-x: scroll;
}
tr {
border-bottom: 1px solid #ddd;
}
td, th{
padding-right: 1.5rem;
}
.datarow:hover{
background-color: rgba(236, 238, 240, 0.821);
}
img{
padding: 10px;
border-radius: 20px;
}
iframe{
width: 100vw;
height: 95vh;
padding: 0.5rem;
border-radius: 1.5rem;
}
details[open] summary ~ * {
animation: sweep .5s ease-in-out;
}
@media screen and (max-width:600px){
.topnav a:not(:first-child) {display: none;}
.topnav a.icon {
float: right;
display: block;
}
}
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
}
@keyframes sweep {
0% {opacity: 0; margin-left: -10px;}
100% {opacity: 1; margin-left: 0px;}
}