TKK_E32210601/style.css

173 lines
2.8 KiB
CSS

html {
scroll-behavior: smooth; /* Membuat scroll lebih smooth */
}
body {
font-family: Arial, sans-serif;
margin: 0;
position: -webkit-sticky;
padding: 0;
background-color: #f0f0f0;
padding-bottom: 50px; /* Tambahkan padding bawah */
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 10px 20px;
}
header {
background-color: #1a237e;
color: white;
padding: 10px 0;
position: sticky;
/* position: -webkit-sticky; */
top: 0;
/* display: flex;
justify-content: space-between; */
/* align-items: center; */
}
.container .title_h1 {
text-align: left;
}
.navbar {
text-align: right;
}
.navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.navbar ul li {
display: inline-block;
margin-left: 15px;
}
.navbar ul li a {
color: white;
text-decoration: none;
padding: 10px 15px;
border-radius: 4px;
transition: background-color 0.3s;
}
.navbar ul li a:hover {
background-color: #3949ab;
}
h1 {
margin: 0;
font-size: 1.2em;
text-align: left;
}
.dashboard {
background-color: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
margin-top: 20px;
padding: 20px;
}
.dashboard-tegangan-arus {
background-color: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 20px;
}
.nama {
background-color: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
margin-top: 20px;
margin-bottom: 2px;
padding: 1px;
}
.chart-nama {
width: 70%;
height: 20px;
margin: 10px;
}
.nama h1 {
margin: 0;
font-size: 1.2em;
text-align: left;
color: #1a237e;
}
.chart-container {
width: 70%;
height: 300px;
margin: 20px auto;
}
#dateFilter {
/* margin-bottom: 7px; */
text-align: right;
margin-right: 10px;
}
#dateFilter input {
padding: 7px;
border-radius: 5px;
}
footer {
background-color: #1a237e;
color: white;
text-align: center;
padding: 5px 0;
position: fixed;
bottom: 0;
width: 100%;
}
.copyright {
font-size: 0.8em;
margin: 0;
}
.btn {
background-color: #1a237e;
color: white;
border: none;
padding: 8px 15px;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
}
.btn:hover {
background-color: #3949ab;
}
.scroll-top-btn {
display: none;
position: fixed;
bottom: 55px;
right: 20px;
background-color: #1e2ab1;
color: white;
border: none;
padding: 10px;
border-radius: 25%; /* Changed to a circle */
cursor: pointer;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
font-size: 18px;
z-index: 1000;
}
.scroll-top-btn:hover {
background-color: #2f3986;
transition: background-color 0.3s;
}