Difference between revisions of "CSS Snippets"
Jump to navigation
Jump to search
(→Portalmodules in a row) |
|||
Line 45: | Line 45: | ||
= Portalmodules in a row = | = Portalmodules in a row = | ||
+ | For the middle positions. | ||
<source lang="css"> | <source lang="css"> | ||
#portal-middle, #portal-footer{ | #portal-middle, #portal-footer{ |
Revision as of 10:55, 18 June 2019
Add it into the custom.css or into the Global CSS field at the ACP settings.
Contents
Game specific background
body {
background:#000000 url('TEMPLATE_BACKGROUND') no-repeat center top;
background-attachment: T_BACKGROUND_POSITION;
}
#wrapper header {
background: none !important;
}
Hide Portal Modules on Smartphones
If you want to hide portal modules on Smartphone, get the CSS-Class for the module from the source text in your browser, uncomment the following block and add the CSS Class
@media all and (max-width: 480px) {
.offi_conf_portal, .birthday_portal {
display: none;
}
}
Give Article Headlines a special color
Giving the article categorie with ID "2" a special color:
.article-container[data-article-category-id="2"] h2 a, .article_detail_container[data-article-category-id="2"] h1{
color: #efefef;
}
.article-container[data-article-category-id="2"] .ribbon > span {
background: linear-gradient(lighten(#efefef,20%) 0%, #efefef 100%);
color: #000;
}
Embed EQdkp Plus
See Embed EQdkp Plus
Portalmodules in a row
For the middle positions.
#portal-middle, #portal-footer{
display:flex;
justify-content:space-around;
align-items:stretch;
.portalbox{
flex:1 1 auto;
display: flex;
flex-direction: column;
}
.portalbox_content{
display:flex;
justify-content: space-around;
flex: 1 1 auto;
}
.colorswitch{
background-color: none;
display: flex;
align-items: flex-end;
text-align: center;
flex-wrap: wrap;
justify-content: center;
div{
background-color: transparent;}
}
}
Color usernames of special group
Here: Group-ID "2"
a[data-user-group-id="2"] {
color: red !important;
}
a[data-usergroup-id="2"] {
background-color: red;
}
[data-user-group-id="2"] img {
border: 2px solid red !important;
}