Difference between revisions of "MediaWiki:Common.css"

From Free Software Directory
Jump to: navigation, search
(FSD tracker: add conditional styles.)
(3 intermediate revisions by one other user not shown)
Line 185: Line 185:
 
.fsd-tracker {
 
.fsd-tracker {
 
   list-style: none;
 
   list-style: none;
   margin-right: 0;
+
   margin: 0;
   padding-left: 0;
+
   padding: 0;
 
}
 
}
  
 
.fsd-tracker li {
 
.fsd-tracker li {
   margin: 5px 0;
+
   margin: 0px;
 
   border-style: solid;
 
   border-style: solid;
 
   border-width: 0px 1px 1px 1px;
 
   border-width: 0px 1px 1px 1px;
 
   border-color: #d1d5da;
 
   border-color: #d1d5da;
 +
}
 +
 +
.fsd-tracker li::before {
 +
  content: "\1F6C8";
 +
  width: 2em;
 +
  margin-left: -2em;
 +
  display: inline-block;
 +
}
 +
 +
.fsd-tracker li.closed::before {
 +
  color: red;
 +
}
 +
 +
.fsd-tracker li.open::before {
 +
  color: green;
 
}
 
}
  

Revision as of 14:52, 17 September 2021

/* CSS placed here will be applied to all skins */
span.checkboxSpan {
    width: 220px;
    display: block;
    float: left;
}

/* Generally for divs which distribute to 3 columns */
.use-3-columns {
    columns: 3;
    margin: 2px 2px 2px 2px;
}

/* For SMW queries to to be inserted in 3-column divs */
.list-without-bullets {
    list-style: none;
}

.spaced-whitesmoke {
    background-color: whitesmoke;
    border: 2px inset black;
    border-radius: 3px;
    margin: 2px 20px 2px 20px;
    padding: 0.7em;
}

.Tor {
    background: url("//svnweb.fsf.org/static/trunk/directory/images/logos/Tor.jpg") no-repeat;
    width: 100px;
    height: 100px;
    display: block;
    text-indent: -9999px;
}

.TorChat {
    background: url("//svnweb.fsf.org/static/trunk/directory/images/logos/Tor.jpg") no-repeat;
    width: 100px;
    height: 100px;
    display: block;
    text-indent: -9999px;
}

table.antifeature {
    border: 2px solid red;
    padding: 5px;
}

/* SimpleSearch search box */
@media not screen and (orientation: portrait) {
 @keyframes sboxPulse {
   from {filter: grayscale(1.0);}
   to {filter: none;}
 }
 #simpleSearch input#searchInput {
   font-weight: bolder;
   border: 2px inset black;
   background: linear-gradient(to top, #a7d7f9 15%, white 15%);
   animation: sboxPulse 0.5s 10 alternate ease-in;
   padding-top: 0.7em;
 }
}
@media screen and (orientation: portrait) {
 @keyframes sboxBlink {
   from {opacity: 1.0;}
   to {opacity: 0.7;}
 }
 #simpleSearch input#searchInput {
   border-color: black;
   animation: sboxBlink 0.5s 3 alternate ease;
 }
}

/* Query generator for Categories */
span[id*="Category"] a[href*="Special:RunQuery"]  {
  animation: sboxPulse 1s 7;
  padding-right: 0.3em;
}
span[id*="Category"] a[href *= "Special:RunQuery"]:hover img  {
  animation: none;
  transform: scale(1.7);
}
span[id*="Category"] a[href*="Special:RunQuery"]:before  {
  content: "QUERY";
  font-size: small;
  margin-right: 0.7em;
}

/*The 2 column text of Package entries in desktop mode becomes inline in mobile view*/
.left-float {
    float: left;
    width: 60%;
    margin: 2px 4px 0px 4px;
}

.right-float {
    float: right;
    width: 35%;
    margin: 2px 4px 0px 4px;
}

@media only screen and (max-width: 800px) {
    .left-float, .right-float {
        float: inherit;
        width: inherit;
    }
}

/*To make licenses section vertical for mobile view*/
* {
    box-sizing: border-box;
}

.license-column {
    float: left;
    width: 17%;
    padding: 2px;
}

.license-wide-column {
    float: left;
    width: 49%;
    padding: 2px;
}

.license-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - makes the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 760px) {
    .license-column {
        width: 100%;
    }

    .license-wide-column {
        width: 100%
    }
}

.subject_header {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-top-color: #e74c3c;
    border-top-style: solid;
    border-width: 4px 0px 0px 0px;
    color: #e74c3c;
    font-size: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
    text-transform: uppercase;
}

span.get_involved a:hover {
    border-radius: inherit;
    background-color: #64cb00;
}

span.get_involved_test a:hover {
    border-radius: inherit;
    background-color: black;
}

/* Small screens: prevent Category 6 of the Entry formedit from being corrupted */
#pfForm .section-6 .checkboxesSpan label {
    display: inline-block;
}

/* also delineate the table rows to aid distinguishing the categories */
#pfForm .section-6 table.formtable {
    border-collapse: collapse;
}

#pfForm .section-6 .checkboxesSpan label:hover {
    color: black;
}

#pfForm .section-6 table.formtable tr {
    border-top: 3px dotted white;
    border-bottom: 3px dotted white;
}

.fsd-tracker {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fsd-tracker li {
  margin: 0px;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
  border-color: #d1d5da;
}

.fsd-tracker li::before {
  content: "\1F6C8";
  width: 2em;
  margin-left: -2em;
  display: inline-block;
}

.fsd-tracker li.closed::before {
  color: red;
}

.fsd-tracker li.open::before {
  color: green;
}

.fsd-tracker li:hover {
  background-color: lightgray;
}

/* Single-page JS tracker */


/* Hide dangerous and confusing MW commands on certain special pages */
body.page-Main_Page li#ca-delete,
body.page-Main_Page li#ca-move,
body.page-Main_Page li#ca-formedit,
body.page-Free_Software_Directory_Backlog li#ca-delete,
body.page-Free_Software_Directory_Backlog li#ca-move,
body.page-Free_Software_Directory_Backlog li#ca-talk {
  display: none!important;
}

/* Message in the sub-header of the pages w/o approved revs */
#bodyContent #contentSub > a[href*="oldid"]::after {
  content: "This page is a submission in progress.\A We do not yet know if this page exclusively refers or links to free software.\A Please browse the Discussion page for more information.";
  display: block;
  font-weight: bold;
  font-size: larger;
  white-space: pre-wrap;
  margin-top: 0.7em;
  color: black;
  background-color: white;
  line-height: 120%;
}


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.