styles cleanup
This commit is contained in:
parent
c9faec9d6e
commit
cfb118ce7c
4 changed files with 151 additions and 184 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>DTCH - PUBG Clan</title>
|
<title>DTCH - PUBG Clan</title>
|
||||||
<link rel="stylesheet" href="./includes/styles.css">
|
<link rel="stylesheet" href="./includes/styles.css">
|
||||||
<link rel="stylesheet" href="./includes/topnav.css">
|
<link rel="stylesheet" href="./includes/styles_mobile.css" media="screen and (max-width: 767px)">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* Add Google Fonts */
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
|
||||||
|
|
||||||
/* Reset some default styles */
|
|
||||||
body, h1, h2, p, ul, li, a {
|
body, h1, h2, p, ul, li, a {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
@ -10,68 +10,64 @@ body, h1, h2, p, ul, li, a {
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
/*background: linear-gradient(to right, #0f2027, #203a43, #2c5364);*/
|
|
||||||
color: white;
|
color: white;
|
||||||
background: url(../images/bck.jpg) no-repeat center center fixed;
|
background: url(../images/bck.jpg) no-repeat center center fixed;
|
||||||
-webkit-background-size: cover;
|
-webkit-background-size: cover;
|
||||||
-moz-background-size: cover;
|
-moz-background-size: cover;
|
||||||
-o-background-size: cover;
|
-o-background-size: cover;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
background: linear-gradient(to right, #FF416C, #FF4B2B); /* Gradient Background */
|
background: linear-gradient(to right, #FF416C, #FF4B2B);
|
||||||
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1); /* Slight Shadow for Depth */
|
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
|
||||||
padding: 10px 0; /* Vertical Padding */
|
padding: 10px 0;
|
||||||
min-width: 800px;
|
min-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul {
|
nav ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center; /* Center the navigation items */
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav li {
|
nav li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 15px; /* Spacing between items */
|
margin: 0 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
color: white;
|
color: white;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
border-radius: 25px; /* Rounded Edges */
|
border-radius: 25px;
|
||||||
transition: background-color 0.3s, transform 0.3s; /* Smooth Transition for Hover Effect */
|
transition: background-color 0.3s, transform 0.3s;
|
||||||
font-weight: 600; /* Slightly Bold */
|
font-weight: 600;
|
||||||
font-size: 16px; /* Adjust as needed */
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a:hover {
|
nav a:hover {
|
||||||
background: rgba(255, 255, 255, 0.1); /* Slight White Background on Hover */
|
background: rgba(255, 255, 255, 0.1);
|
||||||
transform: translateY(-2px); /* Slight Lift on Hover */
|
transform: translateY(-2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a:active {
|
nav a:active {
|
||||||
transform: translateY(1px); /* Slight Pressed-In effect on Click */
|
transform: translateY(1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
header .banner {
|
header .banner {
|
||||||
max-width: 100%; /* Ensures the image is never larger than its container */
|
max-width: 100%;
|
||||||
max-height: 200px; /* Maximum height for the image */
|
max-height: 200px;
|
||||||
display: block; /* Prevents inline default spacing */
|
display: block;
|
||||||
margin: 40px auto 0px auto; /* Centers the image within the header */
|
margin: 40px auto 0px auto;
|
||||||
width: auto; /* Adjusts the width to maintain the aspect ratio */
|
width: auto;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
header, main, footer {
|
header, main, footer {
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
min-width: 800px;
|
min-width: 800px;
|
||||||
margin: 5px auto;
|
margin: 5px auto;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
/*border: 1px solid rgb(255, 255, 255);*/
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
@ -81,7 +77,7 @@ header h1 {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
font-family: 'Bungee Spice';
|
font-family: 'Bungee Spice';
|
||||||
text-align: center; /* Centers the text horizontally */
|
text-align: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
@ -90,62 +86,17 @@ section h2 {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
font-family: 'Bungee Spice';
|
font-family: 'Bungee Spice';
|
||||||
text-align: center; /* Centers the text horizontally */
|
text-align: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
|
|
||||||
th:nth-child(4), td:nth-child(4),
|
|
||||||
th:nth-child(9), td:nth-child(9) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
header .banner {
|
|
||||||
max-height: 100px; /* Resize the maximum height for mobile */
|
|
||||||
width: 100%; /* Take full width of the container */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* You may also want to adjust other elements to fit mobile layout better */
|
|
||||||
header, main, footer {
|
|
||||||
min-width: 0; /* Allow the width to shrink below 800px */
|
|
||||||
padding: 5px; /* Reduce padding for mobile devices */
|
|
||||||
margin: 5px 5px; /* Less margin for tighter mobile layout */
|
|
||||||
max-width: 800px;
|
|
||||||
min-width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
|
||||||
min-width: 0; /* Allow the nav to be responsive below 800px */
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul {
|
|
||||||
text-align: left; /* Align nav items to the left on mobile for better spacing */
|
|
||||||
}
|
|
||||||
th, td {
|
|
||||||
padding: 0px; /* Reduce padding */
|
|
||||||
margin: 0px;
|
|
||||||
font-size: 10px; /* Reduce font size */
|
|
||||||
letter-spacing: -0.5px; /* Reduce space between letters */
|
|
||||||
}
|
|
||||||
/* Other styles can be added here as needed for mobile optimization */
|
|
||||||
table {
|
|
||||||
font-size: 12px; /* Decrease font size for the whole table */
|
|
||||||
margin-top: 5px;
|
|
||||||
border-spacing: 0;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|
@ -194,33 +145,20 @@ tr:hover {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Ensure elements scale well on mobile */
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
body {
|
|
||||||
font-size: 14px; /* Adjust font size for mobile readability */
|
|
||||||
}
|
|
||||||
/* Add additional mobile scaling styles as needed */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Override other elements as needed for the hacker theme */
|
|
||||||
nav {
|
nav {
|
||||||
background: #121212; /* Dark background for navigation */
|
background: #121212;
|
||||||
/* border-bottom: 1px solid #e69109; Bright green border for accent */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure links stand out */
|
|
||||||
a {
|
a {
|
||||||
color: #e69109; /* Blue color for links */
|
color: #e69109;
|
||||||
text-decoration: none; /* Underline links for better visibility */
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Specific button styles for .btn class to match the hacker theme */
|
|
||||||
.btn {
|
.btn {
|
||||||
font-family: 'Roboto', monospace;
|
font-family: 'Roboto', monospace;
|
||||||
background: #222; /* Dark background for buttons */
|
background: #222;
|
||||||
color: #e69109; /* Bright green text */
|
color: #e69109;
|
||||||
border: 1px solid #e69109; /* Border to match text color */
|
border: 1px solid #e69109;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
transition: background-color 0.3s ease, color 0.3s ease;
|
transition: background-color 0.3s ease, color 0.3s ease;
|
||||||
|
|
@ -228,46 +166,72 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover {
|
.btn:hover {
|
||||||
background: #e69109; /* Bright green background on hover */
|
background: #e69109;
|
||||||
color: #000; /* Dark text on hover */
|
color: #000;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive button sizing for mobile for .btn class*/
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.btn {
|
|
||||||
padding: 8px 16px;
|
|
||||||
font-size: 14px; /* Adjust font size for mobile readability */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn:active {
|
.btn:active {
|
||||||
transform: translateY(1px); /* Slight Pressed-In effect on Click */
|
transform: translateY(1px);
|
||||||
}
|
|
||||||
/* Container for tables to manage overflow */
|
|
||||||
.table-container {
|
|
||||||
overflow-x: auto;
|
|
||||||
margin: 0 auto; /* Center the table container if necessary */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for the table */
|
|
||||||
|
.table-container {
|
||||||
|
overflow-x: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
table-layout: auto; /* Let the table layout be automatic */
|
table-layout: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure table cells do not cause overflow */
|
|
||||||
td, th {
|
td, th {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
.topnav {
|
||||||
/* Responsive table adjustments */
|
overflow: hidden;
|
||||||
@media (max-width: 768px) {
|
background-color: #0f0f0f;
|
||||||
table {
|
position: relative;
|
||||||
font-size: 14px; /* Adjust font size for smaller screens */
|
max-width: 1200px;
|
||||||
}
|
min-width: 800px;
|
||||||
td, th {
|
margin: 5px auto 5px auto;
|
||||||
padding: 8px; /* Adjust cell padding for smaller screens */
|
padding: 10px;
|
||||||
}
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
.topnav #myLinks {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.topnav a {
|
||||||
|
padding: 14px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 17px;
|
||||||
|
display: block;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topnav a.icon {
|
||||||
|
color: #e69109;
|
||||||
|
background: black;
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topnav a:hover {
|
||||||
|
background-color: #494949;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
color: #e69109;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
68
includes/styles_mobile.css
Normal file
68
includes/styles_mobile.css
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
table {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td, th {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topnav {
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
position: relative;
|
||||||
|
min-width: 300px;
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
padding: 8px 16px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
th:nth-child(4), td:nth-child(4), th:nth-child(9), td:nth-child(9) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .banner {
|
||||||
|
max-height: 100px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
header, main, footer {
|
||||||
|
min-width: 0;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px 5px;
|
||||||
|
max-width: 800px;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
font-size: 10px;
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
font-size: 12px;
|
||||||
|
margin-top: 5px;
|
||||||
|
border-spacing: 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
@ -1,65 +0,0 @@
|
||||||
/* Style the navigation menu */
|
|
||||||
.topnav {
|
|
||||||
overflow: hidden;
|
|
||||||
background-color: #0f0f0f;
|
|
||||||
position: relative;
|
|
||||||
max-width: 1200px;
|
|
||||||
min-width: 800px;
|
|
||||||
margin: 5px auto 5px auto;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide the links inside the navigation menu (except for logo/home) */
|
|
||||||
.topnav #myLinks {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Style navigation menu links */
|
|
||||||
.topnav a {
|
|
||||||
padding: 14px 16px;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 17px;
|
|
||||||
display: block;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Style the hamburger menu */
|
|
||||||
.topnav a.icon {
|
|
||||||
color: #e69109;
|
|
||||||
background: black;
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Add a grey background color on mouse-over */
|
|
||||||
.topnav a:hover {
|
|
||||||
background-color: #494949;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Style the active link (or home/logo) */
|
|
||||||
.active {
|
|
||||||
background-color: #0f0f0f;
|
|
||||||
color: #e69109;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.topnav {
|
|
||||||
overflow: hidden;
|
|
||||||
background-color: #0f0f0f;
|
|
||||||
position: relative;
|
|
||||||
min-width: 300px;
|
|
||||||
max-width: 500px;
|
|
||||||
margin: 5px;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue