MediaWiki:Common.css — различия между версиями

Материал из SpaceProgram Wiki
Перейти к: навигация, поиск
Строка 6: Строка 6:
  
 
.info-box {
 
.info-box {
  padding: 1em;
+
    display: inline-block;
  position: relative;
+
    padding: 1em;
 +
    padding-left: 50px;
 +
    background-color: #fffed9;
 +
    position: relative;
 
}
 
}
  
 
.info-box:before {
 
.info-box:before {
  margin-top: -10px;
+
    left: 15px;
  left: 5px;
+
    top: 15px;
  top: 50%;
+
    position: absolute;
  position: absolute;
+
    display: block;
  display: block;
+
    content: "i";
  content: "i";
+
    line-height: 20px;
  line-height: 20px;
+
    text-align: center;
  text-align: center;
+
    width: 20px;
  width: 20px;
+
    height: 20px;
  height: 20px;
+
    border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
+
    -moz-border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
+
    -webkit-border-radius: 15px;
-webkit-border-radius: 10px 10px 10px 10px;
+
    border: 1px solid #04a6f4;
border: 0px solid #000000;
+
    background-color: #ffffff;
 +
    color: #04a6f4;
 +
    font-weight: bold;
 +
    font-family: serif;
 
}
 
}

Версия 23:12, 25 июля 2020

/* Размещённый здесь CSS будет применяться ко всем темам оформления */

.comment {
   background: yellow;
}

.info-box {
    display: inline-block;
    padding: 1em;
    padding-left: 50px;
    background-color: #fffed9;
    position: relative;
}

.info-box:before {
    left: 15px;
    top: 15px;
    position: absolute;
    display: block;
    content: "i";
    line-height: 20px;
    text-align: center;
    width: 20px;
    height: 20px;
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 15px;
    border: 1px solid #04a6f4;
    background-color: #ffffff;
    color: #04a6f4;
    font-weight: bold;
    font-family: serif;
}