Files
s41r4j-cybersecurity/assets/styles.css
T
2024-08-14 08:03:29 +05:30

127 lines
2.0 KiB
CSS

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
/* max-width: 800px; */
margin: 0 auto;
padding: 2%;
}
header {
background-color: #f0f0f0;
border-bottom: 1px solid #ccc;
padding: 10px 0;
margin-bottom: 20px;
}
header h1 {
margin: 0;
font-size: 1.5rem;
color: #333;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.tabs {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
margin-top: 3%;
}
.tabs li {
margin-right: 10px;
}
.tabs a {
text-decoration: none;
color: #333;
padding: 10px 15px;
border-radius: 5px 5px 0 0;
position: relative;
background-color: white;
transition: background-color 0.3s ease, color 0.3s ease;
}
.tabs a:before {
content: '';
position: absolute;
top: -2px;
left: 0;
width: 100%;
height: 2px;
background-color: #007bff;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.tabs a:hover {
background-color: #f0f0f0; /* Grey tone when hovered */
color: #007bff;
}
.tabs a:hover:before {
transform: scaleX(1);
}
.theme-dropdown {
display: flex;
align-items: center;
}
.theme-dropdown label {
margin-right: 10px;
color: #333;
}
.theme-dropdown select {
padding: 5px;
border-radius: 5px;
border: 1px solid #ccc;
background-color: white;
color: #333;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
font-size: 14px;
}
.theme-dropdown select:focus {
outline: none;
border-color: #007bff;
}
.tab-content {
display: none;
padding: 20px;
background-color: white;
border: 1px solid #ccc;
border-top: none;
}
.theme-dark .tab-content {
background-color: #333;
color: white;
}
.theme-warm .tab-content {
background-color: #ffd966;
}
.tab-content h2 {
color: #007bff;
}
.tab-content p {
line-height: 1.6;
}