NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Question Trying to change the color of the Navbar
Started by train21

train21

train21

Member
Joined
01 Feb 2017
Last Seen
24 Feb 2021
Topics
17
Posts
26

Hey I am trying to figure out how to change the navbar color on the DefaultRevamp theme. I added below the following code. This is my custom.css file. I applied it and tried to do ctrl-f5 but it didn't work. Can someone explain what I did wrong?

/*
 *  [ HTML & BODY ]
 */

html, body {
	background: #f3f6fa;
}

body.pushable>.pusher {
	background: #f3f6fa;
}

/*
 *  [ NAVIGATION BAR ]
 */

.ui.secondary.menu {
	background: #fff;
	padding: 10px;
}

.ui.secondary.menu .toc.item {
	display: none;
}

.ui.secondary.menu .toc.item i {
	margin: 0;
}

.ui.secondary.menu .ui.medium.label {
	padding: .68em 1em .5em .5em;
}

.ui.secondary.menu .ui.medium.label img {
	font-size: 1.09rem;
	margin: -.6em .5em -.6em -.5em;
}

@media only screen and (max-width: 768px) {
	.ui.secondary.menu .menu,
	.ui.secondary.menu .item {
		display: none;
	}
	.ui.secondary.menu .toc.item {
		display: block;
	}
}

.ui.secondary.menu .ui.popup {
	min-width: 200px;
}

.ui.secondary.menu .ui.popup a:not([href]) {
	cursor: default !important;
}

/*
 *  [ HEADER ]
 */

.ui.masthead {
	background: linear-gradient(90deg, rgb(41, 117, 286) 0%, rgb(2, 117, 216) 100%);
	margin-bottom: 20px;
	padding: 4rem 0;
	border-radius: 0;
	color: #fff;
}

.ui.masthead .connect-server {
	background: rgba(255,255,255,.2);
	width: fit-content;
	padding: 1rem 1.5rem;
	margin-left: auto;
	border-radius: .4rem;
	text-align: center;
	box-shadow: 1px 1px 1px 1px rgba(0,0,0,.1);
}

@media (max-width: 768px) {
	.ui.masthead .ui.grid .ui.row .column > * {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
}

.ui.masthead .connect-server .ui.header {
	margin: 0;
	color: #fff;
}

/*
 *  -[ SEGMENT ]-
 */

.ui.segment {
	background: #fff;
	border-radius: .28571429rem;
	border: none;
	-webkit-box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
	box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
}

.ui.segment .ui.list .list>.item .header,
.ui.segment .ui.list>.item .header {
	display: inline-block;
}

.ui.secondary.segment.segment.segment.segment.segment:not(.inverted) {
	border-top:  none;
}

/*
 *  [ NEWS POST ]
 */

#news-post .badge,
#news-post .ui.label {
	position: absolute;
	margin: 0;
	padding: .75em 1em;
	width: auto;
	top: 0;
	right: 0;
	text-transform: uppercase;
	border-radius: 0 .21428571rem 0 .28571429rem;
}

/*
 *  [ FORUM NODE ]
 */

#forum-node #last-post {
	width: 250px;
}

#forum-node #last-post .avatar {
	margin: 2px 10px 0 0 ;
}

/*
 *  [ FORUM PAGE ]
 */

#sticky-threads tbody tr td:last-child:not(:first-child),
#normal-threads tbody tr td:last-child:not(:first-child) {
	text-align: right;
}

#sticky-threads tbody tr td:last-child .ui.image.header .image,
#normal-threads tbody tr td:last-child .ui.image.header .image {
	float: right;
	margin-left: 1rem;
	margin-top: .24rem;
}

#sticky-threads .badge, #sticky-threads .ui.label,
#normal-threads .badge, #normal-threads .ui.label {
	position: relative;
	top: -1.2px;
	padding: .3rem .5rem;
	font-size: .7rem;
	margin: 0;
	margin-bottom: .1rem;
	margin-right: .2rem;
}

/*
 *  [ TOPIC PAGE ]
 */

#topic-post #post-sidebar .ui.small.image,
#topic-reply #reply-sidebar .ui.small.image {
	width: 120px;
}

#topic-post #post-sidebar h3,
#topic-reply #reply-sidebar h3 {
	margin: 1rem 0;
}

@media (max-width: 768px) {
	#topic-post #post-sidebar .ui.list,
	#topic-reply #reply-sidebar .ui.list {
		display: none;
	}
}

#topic-post #post-meta [class*="res right floated"] {
	margin-top: -5px;
}

@media (max-width: 576px) {
	#topic-post #post-meta {
		text-align: center;
	}
	#topic-post #post-meta [class*="res right floated"] {
		margin-top: 0;
	}
}

@media only screen and (min-width: 768px) {
	#topic-post #post-sidebar,
	#topic-reply #reply-sidebar {
		border-right: solid 1px rgba(0,0,0,.1);
		margin-top: -1.5rem;
		margin-bottom: -1.5rem;
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
	#topic-post #post-sidebar:before,
	#topic-reply #reply-sidebar:before {
		content: "";
		height: 0;
		border: 8px solid transparent;
		border-right: 8px solid rgba(0,0,0,.2);
		position: absolute;
		top: 75px;
		right: 0;
	}
	#topic-post #post-sidebar:after,
	#topic-reply #reply-sidebar:after {
		content: "";
		height: 0;
		border: 8px solid transparent;
		border-right: 8px solid #fff;
		position: absolute;
		top: 75px;
		right: -1px;
	}
}

@media only screen and (max-width: 768px) {
	#topic-post #post-sidebar,
	#topic-reply #reply-sidebar {
		border-bottom: solid 1px rgba(0,0,0,.1);
	}
}

#topic-post #post-content #reactions {
	margin-top: 1rem;
	padding: .7em 1.2em .7em 1.2em;
	min-height: 32.5px;
	font-size: .85em;
}

#topic-post #post-content #reactions form {
	display: inline-block;
}

#topic-post #post-content #reactions .icon {
	margin-right: .3em;
}

#topic-post #post-meta {
	margin-right: 1.3em;
}

/*
 *  [ ACCOUNT MESSAGES ]
 */

#view-message #message .header {
	font-size: 1.15rem;
	margin-top: 0.01rem;
}

#view-message #message .meta {
	line-height: 0.95rem;
}

@media (max-width: 768px) {
	#messages table thead tr th:first-child {
		width: 100%;
	}
	#messages table thead tr th:not(:first-child),
	#messages table tbody tr td:not(:first-child) {
		display: none;
	}
}

/*
 *  -[ 404 ERROR ]-
 */

#error-404 .ui.container,
#maintenance .ui.container {
	position: relative;
	min-height: 100vh;
}

#error-404 .ui.segment,
#maintenance .ui.segment {
	position: absolute;
	transform: translate(-50%, -70%);
	top: 50%;
	left: 50%;
	width: 500px;
	text-align: center;
}

/*
 *  [ PROFILE PAGE ]
 */

#profile-header .ui.header {
	margin: 8px 0;
}

#profile-header .ui.label {
	margin: 0;
}

#profile-header .actions {
	position: absolute;
	right: 1rem;
}

#profile-forum .emojione {
	height: 24px;
	width: auto;
}

/*
 *  [ FORUM SEARCH ]
 */

#forum-search-result h3.ui.header {
	margin-top: 0;
	margin-bottom: 1rem;
}

/*
 *  [ SERVER PAGE ]
 */

[id*="server"] #server-players a:not(:last-child) {
	margin-right: .3rem;
}

/*
 *  [ WIDGETS ]
 */

[id*="widget"] .item .content  {
	width: calc(100% - 40px) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

[id*="widget"] .item .content * {
	overflow: hidden;
	text-overflow: ellipsis;
}

[id*="widget"] .item .description  {
	width: calc(100% - 120px) !important;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

[id*="widget"] .item .description * {
	overflow: hidden;
}

#widget-online-users .content {
	padding-bottom: .5rem;
}

#widget-online-users .ui.image.label {
	margin-bottom: .5rem;
}

/*
 *  -[ FOOTER ]-
 */


.ui.footer.segment {
	margin: 1rem 0 -.5rem 0;
	padding: 3em 0;
}

@media only screen and (max-width: 768px) {
	.ui.footer.segment {
		text-align: center;
	}
}

/*
 *  [ TABLE ]
 */

@media (max-width: 576px) {
	.ui.table.res thead tr th:first-child {
		width: 100%;
	}
	.ui.table.res thead tr th:not(:first-child),
	.ui.table.res tbody tr td:not(:first-child) {
		display: none;
	}
}

@media (max-width: 992px) {
	.ui.table.res thead tr th:first-child,
	.ui.table.res thead tr th:last-child {
		width: 50%;
	}
	.ui.table.res thead tr th:not(:first-child):not(:last-child),
	.ui.table.res tbody tr td:not(:first-child):not(:last-child) {
		display: none;
	}
}

/*
 *  -[ GRID ]-
 */

.ui.grid + .grid {
	margin-top: 0.3rem;
}

.ui.row + .row {
	padding-top: 0.3rem;
}

.ui.padded.grid:not(.vertically):not(.horizontally) {
	margin: 0 -1rem 0 -1rem !important;
}

@media only screen and (max-width: 768px) {
	.ui.padded.grid:not(.vertically):not(.horizontally) {
		margin: 0 !important;
	}
}

/*
 *  [ LINK LIST ]
 */

.ui.link.list.list .item a:not(.ui):hover,
.ui.link.list.list a.item:hover {
	background: none;
}
.ui.link.list.list .ui.divider {
	margin: 0.5rem 0;
}

/*
 *  [ USES POPUP ]
 */

#user-popup .header {
	text-align: center;
}

#user-popup .header .ui.header {
	padding: .5rem 0;
}

#user-popup .header .ui.image {
	margin: auto;
}

/*
 *  [ TOASTR ]
 */

#toast-container {
	font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
	width: 100%;
}

#toast-container .toast-close-button {
	color: #000;
	opacity: .4;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
	color: #000;
	opacity: .6;
}

#toast-container .toast {
	padding: 1rem 1.5rem;
	background: #fff;
	color: rgba(0,0,0,.68);
	-webkit-box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
	box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
	border: none;
	border-radius: .28571429rem;
	cursor: default;
	opacity: 1;
	transition: .5s all ease;
}

#toast-container .toast-success {
	border-bottom: solid 2px #30B245;
}

#toast-container .toast-success .toast-progress {
	background: #30B245;
}

#toast-container .toast-error {
	border-bottom: solid 2px #CE1D28;
}

#toast-container .toast-error .toast-progress {
	background: #CE1D28;
}

#toast-container .toast-warning {
	border-bottom: solid 2px #EE6A1C;
}

#toast-container .toast-warning .toast-progress {
	background: #EE6A1C;
}

#toast-container .toast-info {
	border-bottom: solid 2px #367DC4;
}

#toast-container .toast-info .toast-progress {
	background: #367DC4;
}

#toast-container .toast:hover {
	-webkit-box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
	box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
	cursor: default;
}

@media (max-width: 576px) {
	#toast-container .toast {
		width: calc(100% - 24px);
	}
}

/*
 *  [ SPOILER ]
 */

#tinymce .spoiler, .spoiler {
	color: rgba(0,0,0,.87);
	border-radius: .28571429rem;
	-webkit-box-shadow: 0 0 0 1px rgba(34,36,38,.22) inset, 0 0 0 0 transparent;
	box-shadow: 0 0 0 1px rgba(34,36,38,.22) inset, 0 0 0 0 transparent;
	border: none;
}

#tinymce .spoiler-toggle, .spoiler-toggle {
	color: rgba(0,0,0,.87);
}

#tinymce .spoiler-text, .spoiler-text {
	color: rgba(0,0,0,.87);
}

/*
 *  [ PAGINATION ]
 */

.ui.mini.pagination.menu .item:first-child,
.ui.mini.pagination.menu .item:last-child {
	padding-top: .5rem;
}

/*
 *  -[ ALIGNMENTS ]-
 */

[class*="left aligned"] {
	text-align: left;
}

[class*="center aligned"] {
	text-align: center;
}

[class*="right aligned"] {
	text-align: right;
}

/*
 *  [ FLOATS ]
 */

[class*="left floated"],
[class*="res left floated"] {
	float: left;
}

[class*="right floated"],
[class*="res right floated"] {
	float: right;
}

[class*="right floated"] + .ui.segment,
[class*="res right floated"] + .ui.segment {
	margin-top: 1rem;
}

@media only screen and (max-width: 576px) {
	[class*="res right floated"],
	[class*="res left floated"] {
		margin-top: 1rem;
		float: none;
	}

	[class*="res right floated"] .button:not(.mini),
	[class*="res left floated"] .button:not(.mini) {
		width: 100%;
		text-align: center;
	}

	[class*="res right floated"] .button:not(:first-child),
	[class*="res left floated"] .button:not(:first-child) {
		margin-top: 0.5rem;
	}
}

/*
 *  [ DISPLAY ]
 */

[display="block"] {
	display: block !important;
}

[display="inline"] {
	display: inline !important;
}

[display="inline block"] {
	display: inline-block !important;
}

/*
 *  [ VISIBILITY ]
 */

@media only screen and (max-width: 576px) {
	[class*="mobile hidden"],
	[class*="tablet only"]:not(.mobile),
	[class*="computer only"]:not(.mobile),
	[class*="large screen only"]:not(.mobile),
	[class*="widescreen only"]:not(.mobile),
	[class*="or lower hidden"] {
		display: none !important;
	}
}

@media only screen and (min-width: 576px) and (max-width: 768px) {
	[class*="mobile only"]:not(.tablet),
	[class*="tablet hidden"],
	[class*="computer only"]:not(.tablet),
	[class*="large screen only"]:not(.tablet),
	[class*="widescreen only"]:not(.tablet),
	[class*="or lower hidden"]:not(.mobile) {
		display: none !important;
	}
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
	[class*="mobile only"]:not(.computer),
	[class*="tablet only"]:not(.computer),
	[class*="computer hidden"],
	[class*="large screen only"]:not(.computer),
	[class*="widescreen only"]:not(.computer),
	[class*="or lower hidden"]:not(.tablet):not(.mobile) {
		display: none !important;
	}
}

@media only screen and (min-width: 992px) and (max-width: 1280px) {
	[class*="mobile only"]:not([class*="large screen"]),
	[class*="tablet only"]:not([class*="large screen"]),
	[class*="computer only"]:not([class*="large screen"]),
	[class*="large screen hidden"],
	[class*="widescreen only"]:not([class*="large screen"]),
	[class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile) {
		display: none !important;
	}
}

@media only screen and (min-width: 1280px) {
	[class*="mobile only"]:not([class*="widescreen"]),
	[class*="tablet only"]:not([class*="widescreen"]),
	[class*="computer only"]:not([class*="widescreen"]),
	[class*="large screen only"]:not([class*="widescreen"]),
	[class*="widescreen hidden"],
	[class*="widescreen or lower hidden"] {
		display: none !important;
	}
}

/*
 *  [ USER BADGES ]
 */

.badge {
	display: inline-block;
	line-height: 1;
	vertical-align: baseline;
	margin: 0 .14285714em;
	background-color: #e8e8e8;
	background-image: none;
	padding: .5833em .833em;
	color: rgba(0,0,0,.6);
	text-transform: none;
	font-size: .85714286rem;
	font-weight: 700;
	border: 0 solid transparent;
	border-radius: .28571429rem;
	-webkit-transition: background .1s ease;
	transition: background .1s ease;
}

a.badge:hover, a.badge:focus {
	text-decoration: none;
}

.badge:empty {
	display: none;
}

.badge-primary {
	color: #fff;
	background-color: #007bff;
}

a.badge-primary:hover, a.badge-primary:focus {
	color: #fff;
	background-color: #0062cc;
}

.badge-secondary {
	color: #fff;
	background-color: #6c757d;
}

a.badge-secondary:hover, a.badge-secondary:focus {
	color: #fff;
	background-color: #545b62;
}

.badge-success {
	color: #fff;
	background-color: #28a745;
}

a.badge-success:hover, a.badge-success:focus {
	color: #fff;
	background-color: #1e7e34;
}

.badge-info {
	color: #fff;
	background-color: #17a2b8;
}

a.badge-info:hover, a.badge-info:focus {
	color: #fff;
	background-color: #117a8b;
}

.badge-warning {
	color: #212529;
	background-color: #ffc107;
}

a.badge-warning:hover, a.badge-warning:focus {
	color: #212529;
	background-color: #d39e00;
}

.badge-danger {
	color: #fff;
	background-color: #dc3545;
}

a.badge-danger:hover, a.badge-danger:focus {
	color: #fff;
	background-color: #bd2130;
}

.badge-light {
	color: #212529;
	background-color: #f8f9fa;
}

a.badge-light:hover, a.badge-light:focus {
	color: #212529;
	background-color: #dae0e5;
}

.badge-dark {
	color: #fff;
	background-color: #343a40;
}

a.badge-dark:hover, a.badge-dark:focus {
	color: #fff;
	background-color: #1d2124;
}

/*
 *  [ OTHER ]
 */

select {
	font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
	font-size: 0.9rem;
	padding: 10px !important;
}

.ui.popup {
	z-index: 99999;
	text-align: left;
}

.ui.popup .ui.header {
	margin: 0;
}

.ui.message {
	margin: 0.5em 0;
}

.tox-tinymce {
	min-height: 300px;
}

.forum_post {
	word-wrap: break-word;
}

.forum_post img {
	overflow: auto;
	max-width: 100%;
	height: auto;
}

img.emojione {
	height: 24px;
	width: 24px;
}
.navbar-default {
  background-color: #343434;
  border-color: #343434;
}
.navbar-default .navbar-brand {
  color: #858585;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ffffff;
}
.navbar-default .navbar-text {
  color: #858585;
}
.navbar-default .navbar-nav > li > a {
  color: #858585;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #ffffff;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #ffffff;
  background-color: #343434;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: #ffffff;
  background-color: #343434;
}
.navbar-default .navbar-toggle {
  border-color: #343434;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #343434;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #858585;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #858585;
}
.navbar-default .navbar-link {
  color: #858585;
}
.navbar-default .navbar-link:hover {
  color: #ffffff;
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #858585;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #ffffff;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #ffffff;
    background-color: #343434;
  }
}
x1
train21 · over 5 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

One thing to mention first is that if you use Cloudflare, you need to purge the cache in there.

Otherwise, can you send me a link to your site so I can check it out?

Samerton · over 5 years ago
train21

train21

Member
Joined
01 Feb 2017
Last Seen
24 Feb 2021
Topics
17
Posts
26

Okay I cleared the cache and I broke the website. The website link is https://thedungeonmc.com and now it won't work.

train21 · over 5 years ago
train21

train21

Member
Joined
01 Feb 2017
Last Seen
24 Feb 2021
Topics
17
Posts
26

Okay I cleared the cache and I broke the website. The website link is https://thedungeonmc.com and now it won't work.

 

Edited: Ignore that, my wifi died at the same time. Seems like purging didn't work so the link is https://thedungeonmc.com

train21 · over 5 years ago · Last edited: over 5 years ago
train21

train21

Member
Joined
01 Feb 2017
Last Seen
24 Feb 2021
Topics
17
Posts
26

Do you think it could be a setting in cpanel that would be causing this issue?

train21 · over 5 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

As you're using the normal Default template you'll need to override Bootstrap's navbar colours.

The navbar class is navbar navbar-expand-lg fixed-top navbar-dark bg-dark so something like

.navbar.navbar-expand.lg.fixed-top.navbar-dark.bg-dark {
    background-color: #fff !important;
}

would need adding for each element in the navbar (note this will recolour only the base navbar, you'll need even more CSS to recolour each link, active + hover statuses; right click on each section of the navbar -> Inspect Element to get info on the CSS)

Samerton · over 5 years ago