Files
serwerowe_stefanczyk/Lekcja_08/static/css/style.css
T
2026-10-22 10:52:16 +02:00

151 lines
2.4 KiB
CSS

@font-face {
font-family: 'Montserrat';
src: url('/fonts/Montserrat/Montserrat-VariableFont_wght.ttf');
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Montserrat';
background-color: #FAFAFA;
}
nav {
background-color: darkslategray;
padding: 2rem;
user-select: none;
}
nav>a {
color: white;
text-decoration: none;
font-weight: 500;
margin: 1rem;
cursor: pointer;
transition: color 125ms ease;
}
nav>a:first-child {
font-weight: bold;
font-size: 1.5rem;
color: coral;
}
nav>a:hover {
color: cornflowerblue;
}
h1 {
margin: 3rem;
font-size: 4em;
color: #46F;
padding-bottom: 2rem;
border-bottom: 1px solid lightgray;
}
h2 {
margin: 2rem;
color: #46F;
padding-bottom: 1rem;
border-bottom: 1px solid lightgray;
}
section {
background-color: white;
margin: 0 2rem;
box-shadow: 1px 1px 3px lightgray;
padding: 1rem;
}
#list-item {
display: flex;
justify-content: space-between;
margin: 1rem 0;
}
#list-item:first-child {
margin-top: .5rem;
}
#list-item:last-child {
margin-bottom: .5rem;
}
#list-label {
flex-grow: 1;
display: flex;
user-select: none;
}
.dots {
flex-grow: 1;
height: 1em;
margin-right: .5rem;
margin-left: .25rem;
border-bottom: 1px dotted black;
}
input[type='submit'] {
font-family: 'Montserrat';
background-color: darkgreen;
color: white;
font-weight: bold;
border: none;
padding: .75rem;
min-width: 5rem;
box-shadow: 1px 1px 2px gray;
cursor: pointer;
margin-top: .5rem;
transition: background-color 125ms ease;
}
input[type='submit']:hover {
background-color: purple;
}
.notification-green {
background-color: lightgreen;
margin-bottom: 1rem;
color: rgb(80, 80, 80);
padding: 1rem;
font-weight: 600;
}
table {
border-collapse: collapse;
width: 100%;
}
th {
background-color: cornflowerblue;
padding: 1rem;
color: white;
}
td {
border-bottom: 1px solid lightgray;
padding: 1rem;
}
button {
font-family: 'Montserrat';
background-color: darkgreen;
color: white;
font-weight: bold;
border: none;
padding: .75rem;
min-width: 5rem;
box-shadow: 1px 1px 2px gray;
cursor: pointer;
transition: background-color 125ms ease;
}
button:hover {
background-color: purple;
}