Skip to content

Commit

Permalink
🚧 Moved some css to external file
Browse files Browse the repository at this point in the history
Move scrollbar, divide and spoiler css to external file
  • Loading branch information
anditv21 committed Oct 23, 2023
1 parent 0e726dc commit 3f19238
Show file tree
Hide file tree
Showing 19 changed files with 70 additions and 411 deletions.
18 changes: 1 addition & 17 deletions src/admin/bans.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,7 @@
}
}
?>
<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);
height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<div class="divide"></div>
<div class="container mt-2">
<div class="row">
Expand Down
18 changes: 1 addition & 17 deletions src/admin/gift.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,7 @@
header("location: gift.php");
}
?>
<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);
height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<div class="divide"></div>
<div class="container mt-2">
<div class="row">
Expand Down
19 changes: 1 addition & 18 deletions src/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,7 @@

?>

<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#1e5799), color-stop(50%,#f300ff), color-stop(100%,#e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%,#f300ff 50%,#e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%,#f300ff 50%,#e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%,#f300ff 50%,#e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%,#f300ff 50%,#e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#e0ff00',GradientType=1 );

height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">

<div class="divide"></div>

Expand Down
19 changes: 1 addition & 18 deletions src/admin/invites.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,7 @@
}
?>

<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);

height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
Expand Down
50 changes: 1 addition & 49 deletions src/admin/ip_whitelist.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,7 @@
}
?>

<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);

height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
Expand Down Expand Up @@ -124,40 +107,9 @@

</div>
<style>
.spoiler:hover {
color: white;
}

.spoiler {
color: black;
background-color: black;
}

p {
max-width: fit-content;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
scrollbar-width: auto;
scrollbar-color: #6cc312 #222222;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 16px;
}

*::-webkit-scrollbar-track {
background: #222222;
}

*::-webkit-scrollbar-thumb {
background-color: #6cc312;
border-radius: 10px;
border: 3px solid #222222;
}
</style>
<script>
$(document).ready(function() {
Expand Down
27 changes: 1 addition & 26 deletions src/admin/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,7 @@
Util::navbar();

?>
<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);
height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<div class="divide"></div>
<div class="container mt-2">
<div class="row">
Expand Down Expand Up @@ -109,15 +93,6 @@
</div>
</center>
</div>
<style>
.spoiler:hover {
color: white;
}
.spoiler {
color: black;
background-color: black;
}
</style>
<?php Util::footer(); ?>
<script>
$(document).ready(function() {
Expand Down
51 changes: 2 additions & 49 deletions src/admin/sub.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

if (isset($delsub)) {
$admin->delsubcode($delsub);
error_log('Sub deleted:' . $delsub);
}

if (isset($flushsub)) {
Expand All @@ -61,24 +62,7 @@
}
?>

<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);

height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
Expand Down Expand Up @@ -158,40 +142,9 @@

</div>
<style>
.spoiler:hover {
color: white;
}

.spoiler {
color: black;
background-color: black;
}

p {
max-width: fit-content;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
scrollbar-width: auto;
scrollbar-color: #6cc312 #222222;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 16px;
}

*::-webkit-scrollbar-track {
background: #222222;
}

*::-webkit-scrollbar-thumb {
background-color: #6cc312;
border-radius: 10px;
border: 3px solid #222222;
}
</style>
<script>
$(document).ready(function() {
Expand Down
18 changes: 1 addition & 17 deletions src/admin/system.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,7 @@


?>
<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);
height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<div class="divide"></div>
<div class="container mt-2">
<div class="row">
Expand Down
18 changes: 1 addition & 17 deletions src/admin/userinvites.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,7 @@
header("location: userinvites.php");
}
?>
<style>
.divide {
padding: 0;
margin: 0;
margin-bottom: 30px;
background: #1e5799;
background: -moz-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #1e5799), color-stop(50%, #f300ff), color-stop(100%, #e0ff00));
background: -webkit-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -o-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: -ms-linear-gradient(left, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#e0ff00', GradientType=1);
height: 3px;
border-bottom: 1px solid #000;
}
</style>
<link rel="stylesheet" href="../assets/css/custom.css">
<div class="divide"></div>
<div class="container mt-2">
<div class="row">
Expand Down
Loading

0 comments on commit 3f19238

Please sign in to comment.