Lou Montana/common.css – User

From Bohemia Interactive Community
< User:Lou Montana
Revision as of 18:14, 21 February 2024 by Lou Montana (talk | contribs) (Make Bohemia header smaller)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* smaller Bohemia header */
div#bohemia-header {
	height: 50px;
}
div#bohemia-header > header {
	line-height: 50px !important;
	height: 50px !important;
}
#mw-head {
	top: 50px;
}
#mw-panel {
	top: 50px;
}

/* no Bohemia header menus, thanks (mouse hover menu is annoying to me) */
div#bohemia-header > header > nav.bohemia-header-nav.bohemia-header-nav-center > .bohemia-header-nav-items {
	display:none
}

div#bohemia-header > header {
	line-height: inherit;
	height: inherit;
}

/* use the created space to remind me on which server I am */
nav.bohemia-header-nav.bohemia-header-nav-center::before {
	color: #BBB;
	content: 'Production Server';
	font-family: "Unispace", /* "Stencil", "Segoe UI", */ monospace;
	font-size: 1.25em;
	letter-spacing: 0.1em;
	transition-duration: 0.5s;
}

/* with a bit of style */
div#bohemia-header > header > nav.bohemia-header-nav.bohemia-header-nav-center:hover::before {
	color: #FFF;
	transition-duration: 0.5s
}

/* no Bohemia communities / ads thanks */
#p-Bohemia_Interactive {
	display: none;
}

/* no Visual Editor tab thanks */
#ca-ve-edit {
	display: none;
}

/* custom Problems highlight */
._description dt#Problems {
	border-bottom: solid red 0.25em;
	border-image: linear-gradient(90deg,transparent,transparent,red,red,red);
	border-image-slice: 1;
	color: #C00;
	width: 7.75em;
}
._description dt#Problems + dd {
	border-left: solid red 0.25em;
	border-image: linear-gradient(0,transparent,red,red,red,transparent);
	border-image-slice: 1;
	margin-left: 8.25em;
	padding-left: 0;
}