„Melding:Common.css“: Munur á milli breytinga

Úr Kennarakvika

Ekkert breytingarágrip
Ekkert breytingarágrip
Lína 1: Lína 1:
/* Allt CSS sem sett er hér mun verða virkjað í öllum skinnum. */
/* Allt CSS sem sett er hér mun verða virkjað í öllum skinnum. */


ol {
/* Initialize the counter */
  margin:0 0 1.5em;
.skref-listi {
  padding:0;
    counter-reset: skref-teljari;
  counter-reset:item;
}
}
 
ol>li.skref {
/* Increment the counter for each step and style the number */
  margin:0;
.skref .skref-teljari {
  padding:0 0 0 2em;
    counter-increment: skref-teljari;
  text-indent:-2em;
    font-size: 24px; /* Large, prominent size */
  list-style-type:none;
    font-weight: bold; /* Make it bold */
  counter-increment:item;
    color: #333; /* Set a suitable color */
    margin-right: 10px; /* Space between number and text */
    padding: 5px 10px; /* Padding around the number */
    background-color: #f5f5f5; /* Light background for the number */
    border-radius: 50%; /* Circular background */
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}
}
 
ol>li.skref:before {
.skref .skref-lysing, .skref .skref-leidbeining {
  display:inline-block;
    /* Styles for the content */
  width:1.5em;
    padding: 10px;
  padding-right:0.5em;
    margin-top: 5px;
  font-weight:bold;
    background-color: #eee; /* Light background for the content */
  text-align:right;
    border: 1px solid #ccc; /* Border around the content */
  content:counter(item) ".";
}
}

Útgáfa síðunnar 15. maí 2024 kl. 21:37

/* Allt CSS sem sett er hér mun verða virkjað í öllum skinnum. */

/* Initialize the counter */
.skref-listi {
    counter-reset: skref-teljari;
}

/* Increment the counter for each step and style the number */
.skref .skref-teljari {
    counter-increment: skref-teljari;
    font-size: 24px; /* Large, prominent size */
    font-weight: bold; /* Make it bold */
    color: #333; /* Set a suitable color */
    margin-right: 10px; /* Space between number and text */
    padding: 5px 10px; /* Padding around the number */
    background-color: #f5f5f5; /* Light background for the number */
    border-radius: 50%; /* Circular background */
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.skref .skref-lysing, .skref .skref-leidbeining {
    /* Styles for the content */
    padding: 10px;
    margin-top: 5px;
    background-color: #eee; /* Light background for the content */
    border: 1px solid #ccc; /* Border around the content */
}