MediaWiki:Common.css: Difference between revisions
From DM Live - the Depeche Mode live encyclopedia for the masses
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 172: | Line 172: | ||
//Start of custom navbar | //Start of custom navbar | ||
// Outer navigation wrapper | // Outer navigation wrapper | ||
.navigation { | .navigation { | ||
height: | height: 70px; | ||
background: | background: #07080d; | ||
} | } | ||
Line 192: | Line 184: | ||
padding-right: 20px; | padding-right: 20px; | ||
float: left; | float: left; | ||
line-height: | line-height: 70px; | ||
text-transform: lowercase; | text-transform: lowercase; | ||
font-size: 1.4em; | font-size: 1.4em; | ||
a, | a, | ||
a:visited { | a:visited { | ||
color: | color: #fbfbfb; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
Line 204: | Line 196: | ||
// Container with no padding for navbar | // Container with no padding for navbar | ||
.nav-container { | .nav-container { | ||
max-width: | max-width: 1000px; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
Line 222: | Line 214: | ||
display: block; | display: block; | ||
padding: 0 20px; | padding: 0 20px; | ||
line-height: | line-height: 70px; | ||
background: | background: #07080d; | ||
color: | color: #fbfbfb; | ||
text-decoration: none; | text-decoration: none; | ||
&:hover { | &:hover { | ||
background: | background: #9d68d9; | ||
color: | color: #fbfbfb; | ||
} | } | ||
&:not(:only-child):after { | &:not(:only-child):after { | ||
Line 262: | Line 254: | ||
top: 0; | top: 0; | ||
right: 0; | right: 0; | ||
background: | background: #07080d; | ||
height: | height: 70px; | ||
width: | width: 70px; | ||
} | } | ||
@media only screen and (max-width: 798px) { | @media only screen and (max-width: 798px) { | ||
Line 273: | Line 265: | ||
nav { | nav { | ||
width: 100%; | width: 100%; | ||
padding: | padding: 70px 0 15px; | ||
ul { | ul { | ||
display: none; | display: none; | ||
Line 292: | Line 284: | ||
} | } | ||
} | } | ||
@media screen and (min-width: | @media screen and (min-width: 799px) { | ||
.nav-list { | .nav-list { | ||
display: block !important; | display: block !important; | ||
Line 310: | Line 302: | ||
height: 5px; | height: 5px; | ||
width: 35px; | width: 35px; | ||
background: | background: #fbfbfb; | ||
position: absolute; | position: absolute; | ||
display: block; | display: block; |
Revision as of 22:56, 2 September 2019
/* CSS placed here will be applied to all skins */ /* Be sure to update Mobile.css as well! Song page infobox styles must also appear in Mobile.css in order to render on the mobile site. */ .noticebar { background: #efe url('https://dmlive.wiki/images/thumb/5/58/Noticebar_background_rev.png/800px-Noticebar_background_rev.png') no-repeat left center; background-color: #f1f1f1; border: 1px solid #9d68d9; margin-top: 0.2em; margin-bottom: 1.2em; padding: 0.2em; text-align: center; } /* Infobox */ .infobox { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px; } .infobox-title { font-size: 2em; text-align: center; } .infobox-image { text-align: center; } .infobox th { text-align: right; vertical-align: top; width: 120px; } .infobox td { vertical-align: top; } .round { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; } /* Tooltip container */ .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .tooltip .tooltiptext { visibility: hidden; width: 120px; background-color: black; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; /* Position the tooltip */ position: absolute; z-index: 1; bottom: 100%; left: 50%; margin-left: -60px; } .tooltip:hover .tooltiptext { visibility: visible; } /* Song page infobox styles */ body.page-Walking_In_My_Shoes table#InfoboxShell.round { background: rgb(106,41,145) !important; background: linear-gradient(155deg, rgba(106,41,145,1) 3%, rgba(111,127,187,1) 24%, rgba(137,175,220,1) 32%, rgba(103,91,165,1) 55%, rgba(101,41,139,1) 65%, rgba(100,43,140,1) 76%, rgba(90,57,78,1) 95%, rgba(65,34,39,1) 100%) !important; } body.page-In_Your_Room table#InfoboxShell.round { background: rgb(234,155,112) !important; background: linear-gradient(180deg, rgba(234,155,112,1) 0%, rgba(235,124,107,1) 10%, rgba(201,79,90,1) 26%, rgba(184,77,87,1) 32%, rgba(137,74,85,1) 47%, rgba(99,76,86,1) 60%, rgba(215,98,89,1) 63%, rgba(242,191,110,1) 65%, rgba(215,98,89,1) 67%, rgba(99,76,86,1) 69%, rgba(99,76,86,1) 74%, rgba(197,209,101,1) 77%, rgba(99,76,86,1) 80%, rgba(99,76,86,1) 87%, rgba(79,141,118,1) 90%, rgba(62,62,70,1) 94%) !important; } body.page-Condemnation table#InfoboxShell.round { background: rgb(243,243,235) !important; background: linear-gradient(231deg, rgba(243,243,235,1) 4%, rgba(232,215,208,1) 8%, rgba(210,183,172,1) 11%, rgba(198,168,157,1) 13%, rgba(138,124,113,1) 34%, rgba(62,62,70,1) 66%, rgba(60,62,61,1) 100%) !important; } body.page-Never_Let_Me_Down_Again table#InfoboxShell.round { background: rgb(143,186,202) !important; background: linear-gradient(148deg, rgba(143,186,202,1) 0%, rgba(163,202,217,1) 14%, rgba(120,149,165,1) 38%, rgba(100,113,132,1) 53%, rgba(96,93,110,1) 66%, rgba(87,82,88,1) 74%, rgba(88,77,81,1) 80%, rgba(59,59,59,1) 100%) !important; } body.page-Shake_The_Disease table#InfoboxShell.round { background: rgb(139,188,218) !important; background: linear-gradient(148deg, rgba(139,188,218,1) 0%, rgba(195,213,215,1) 16%, rgba(246,240,224,1) 30%, rgba(214,205,210,1) 44%, rgba(238,195,202,1) 51%, rgba(215,169,145,1) 59%, rgba(210,122,120,1) 69%, rgba(203,112,81,1) 80%, rgba(110,75,79,1) 90%) !important; } body.page-Home table#InfoboxShell.round { background: rgb(44,204,239) !important; background: linear-gradient(181deg, rgba(44,204,239,1) 0%, rgba(39,106,139,1) 44%, rgba(130,85,65,1) 48%, rgba(105,214,226,1) 51%, rgba(254,251,246,1) 54%, rgba(254,251,246,1) 66%, rgba(233,77,33,1) 72%, rgba(227,99,45,1) 77%, rgba(204,89,58,1) 83%, rgba(221,114,78,1) 100%) !important; } body.page-I_Feel_Loved table#InfoboxShell.round { background: rgb(177,174,167) !important; background: linear-gradient(181deg, rgba(177,174,167,1) 0%, rgba(186,171,133,1) 21%, rgba(174,135,56,1) 30%, rgba(182,173,154,1) 68%, rgba(164,170,204,1) 89%, rgba(140,152,190,1) 99%) !important; } body.page-Dirt table#InfoboxShell.round { background: rgb(177,174,167) !important; background: linear-gradient(181deg, rgba(177,174,167,1) 0%, rgba(186,171,133,1) 21%, rgba(174,135,56,1) 30%, rgba(182,173,154,1) 68%, rgba(164,170,204,1) 89%, rgba(140,152,190,1) 99%) !important; } body.page-Only_When_I_Lose_Myself table#InfoboxShell.round { background: rgb(172,110,33) !important; background: linear-gradient(91deg, rgba(172,110,33,1) 0%, rgba(198,121,43,1) 12%, rgba(182,78,27,1) 48%, rgba(238,159,40,1) 74%, rgba(240,193,89,1) 83%, rgba(243,218,164,1) 99%) !important; } body.page-Surrender table#InfoboxShell.round { background: rgb(172,110,33) !important; background: linear-gradient(91deg, rgba(172,110,33,1) 0%, rgba(198,121,43,1) 12%, rgba(182,78,27,1) 48%, rgba(238,159,40,1) 74%, rgba(240,193,89,1) 83%, rgba(243,218,164,1) 99%) !important; } body.page-Headstar table#InfoboxShell.round { background: rgb(172,110,33) !important; background: linear-gradient(91deg, rgba(172,110,33,1) 0%, rgba(198,121,43,1) 12%, rgba(182,78,27,1) 48%, rgba(238,159,40,1) 74%, rgba(240,193,89,1) 83%, rgba(243,218,164,1) 99%) !important; } .featured { background: rgb(255,249,212) !important; background: linear-gradient(148deg, rgba(255,249,212,1) 0%, rgba(255,252,245,1) 58%, rgba(255,244,230,1) 83%, rgba(237,239,240,1) 100%) !important; } .avoid-clicks { display: block; pointer-events: none; } code { background: rgb(252,228,237) !important; background: linear-gradient(148deg, rgba(252,228,237,1) 0%, rgba(255,232,204,1) 100%) !important; } body.page-Shake_The_Disease table#InfoboxShell.round:hover { animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both; transform: translate3d(0, 0, 0); backface-visibility: hidden; perspective: 1000px; } @keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } } //Start of custom navbar // Outer navigation wrapper .navigation { height: 70px; background: #07080d; } // Logo and branding .brand { position: absolute; padding-left: 20px; padding-right: 20px; float: left; line-height: 70px; text-transform: lowercase; font-size: 1.4em; a, a:visited { color: #fbfbfb; text-decoration: none; } } // Container with no padding for navbar .nav-container { max-width: 1000px; margin: 0 auto; } // Navigation nav { float: right; ul { list-style: none; margin: 0; padding: 0; li { float: left; position: relative; a, a:visited { display: block; padding: 0 20px; line-height: 70px; background: #07080d; color: #fbfbfb; text-decoration: none; &:hover { background: #9d68d9; color: #fbfbfb; } &:not(:only-child):after { padding-left: 4px; content: ' ▾'; } } // Dropdown list ul li { min-width: 190px; a { padding: 15px; line-height: 20px; } } } } } // Dropdown list binds to JS toggle event .nav-dropdown { position: absolute; display: none; z-index: 1; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15); } /* Mobile navigation */ // Binds to JS Toggle .nav-mobile { display: none; position: absolute; top: 0; right: 0; background: #07080d; height: 70px; width: 70px; } @media only screen and (max-width: 798px) { // Hamburger nav visible on mobile only .nav-mobile { display: block; } nav { width: 100%; padding: 70px 0 15px; ul { display: none; li { float: none; a { padding: 15px; line-height: 20px; } ul li a { padding-left: 30px; } } } } .nav-dropdown { position: static; } } @media screen and (min-width: 799px) { .nav-list { display: block !important; } } #nav-toggle { position: absolute; left: 18px; top: 22px; cursor: pointer; padding: 10px 35px 16px 0px; span, span:before, span:after { cursor: pointer; border-radius: 1px; height: 5px; width: 35px; background: #fbfbfb; position: absolute; display: block; content: ''; transition: all 300ms ease-in-out; } span:before { top: -10px; } span:after { bottom: -10px; } &.active span { background-color: transparent; &:before, &:after { top: 0; } &:before { transform: rotate(45deg); } &:after { transform: rotate(-45deg); } } } //End of custom navbar