MediaWiki

Difference between revisions of "Common.css"

Line 1: Line 1:
  
/* Answer: How to add image with link in a sidebar - MediaWiki https://stackoverflow.com/a/53597787/8992875?stw=2 */
+
/* Answer: How to add image with link in a sidebar - MediaWiki https://stackoverflow.com/a/53597787/8992875?stw=2 * /
 
#n-recordwizard> a:after {
 
#n-recordwizard> a:after {
 
   content: ' ';
 
   content: ' ';
Line 7: Line 7:
 
   width: 40px;
 
   width: 40px;
 
   height: 40px;
 
   height: 40px;
   /*left:-6px; /* :before */
+
   /*left:-6px; /* :before * /
 
   top: -3px;
 
   top: -3px;
 
   background-repeat: no-repeat;
 
   background-repeat: no-repeat;
}
+
}*/
#n-menu-datasets > a[href$='/datasets/'] {
+
#n-menu-datasets > a /*[href$='/datasets/'] */ {
 
     background: #a3dbd7 url(https://upload.wikimedia.org/wikipedia/commons/4/4c/Farm-Fresh_file_extension_zip.png) center right no-repeat;
 
     background: #a3dbd7 url(https://upload.wikimedia.org/wikipedia/commons/4/4c/Farm-Fresh_file_extension_zip.png) center right no-repeat;
 
     padding-right: 32px;
 
     padding-right: 32px;
 +
}
 +
#n-recordwizard > a {
 +
    background: #a3dbd7 url(https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg/45px-Breezeicons-status-22-mic-red-LinguaLibre.svg.png) center right no-repeat;
 +
    padding-right: 45px;
 
}
 
}
 
#n-recordwizard {  
 
#n-recordwizard {  
 
     position:relative;
 
     position:relative;
 
}
 
}

Revision as of 14:27, 26 January 2019

/* Answer: How to add image with link in a sidebar - MediaWiki https://stackoverflow.com/a/53597787/8992875?stw=2 * /
#n-recordwizard> a:after {
  content: ' ';
  background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg);
  position: absolute;
  width: 40px;
  height: 40px;
  /*left:-6px; /* :before * /
  top: -3px;
  background-repeat: no-repeat;
}*/
#n-menu-datasets > a /*[href$='/datasets/'] */ {
    background: #a3dbd7 url(https://upload.wikimedia.org/wikipedia/commons/4/4c/Farm-Fresh_file_extension_zip.png) center right no-repeat;
    padding-right: 32px;
}
#n-recordwizard > a {
    background: #a3dbd7 url(https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg/45px-Breezeicons-status-22-mic-red-LinguaLibre.svg.png) center right no-repeat;
    padding-right: 45px;
}
#n-recordwizard { 
    position:relative;
}