مدیاویکی:Common.css: تفاوت بین نسخهها
| سطر ۷۷: | سطر ۷۷: | ||
margin-right: 14em; | margin-right: 14em; | ||
} | } | ||
| + | } | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | .neon { | ||
| + | position: relative; | ||
| + | overflow: hidden; | ||
| + | filter: brightness(200%); | ||
| + | } | ||
| + | |||
| + | .text { | ||
| + | background-color: black; | ||
| + | color: white; | ||
| + | font-size: 180px; | ||
| + | font-weight: bold; | ||
| + | font-family: sans-serif; | ||
| + | text-transform: uppercase; | ||
| + | position: relative; | ||
| + | user-select: none; | ||
| + | } | ||
| + | |||
| + | .text::before { | ||
| + | content: attr(data-text); | ||
| + | position: absolute; | ||
| + | color: white; | ||
| + | filter: blur(0.02em); | ||
| + | mix-blend-mode: difference; | ||
| + | } | ||
| + | |||
| + | .gradient { | ||
| + | position: absolute; | ||
| + | background: linear-gradient(45deg, red, gold, lightgreen, gold, red); | ||
| + | top: 0; | ||
| + | left: 0; | ||
| + | right: 0; | ||
| + | bottom: 0; | ||
| + | mix-blend-mode: multiply; | ||
| + | } | ||
| + | |||
| + | .spotlight { | ||
| + | position: absolute; | ||
| + | top: -100%; | ||
| + | left: -100%; | ||
| + | right: 0; | ||
| + | bottom: 0; | ||
| + | background: | ||
| + | radial-gradient( | ||
| + | circle, | ||
| + | white, | ||
| + | transparent 25% | ||
| + | ) center / 25% 25%, | ||
| + | radial-gradient( | ||
| + | circle, | ||
| + | white, | ||
| + | black 25% | ||
| + | ) center / 12.5% 12.5%; | ||
| + | animation: light 5s linear infinite; | ||
| + | mix-blend-mode: color-dodge; | ||
| + | } | ||
| + | |||
| + | @keyframes light { | ||
| + | to { | ||
| + | transform: translate(50%, 50%); | ||
| + | } | ||
} | } | ||
نسخهٔ ۲۱ مهٔ ۲۰۱۹، ساعت ۱۵:۰۷
/* دستورات این بخش همهٔ کاربران را تحت تاثیر قرار میدهند. */
@font-face {
font-family: Sahel;
src: url('../fonts/Sahel-FD.eot');
src: url('../fonts/Sahel-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Sahel-FD.woff') format('woff'), url('../fonts/Sahel-FD.ttf') format('truetype');
font-weight: normal;
}
@font-face {
font-family: Sahel;
src: url('../fonts/Sahel-Bold-FD.eot');
src: url('../fonts/Sahel-Bold-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Sahel-Bold-FD.woff') format('woff'), url('../fonts/Sahel-Bold-FD.ttf') format('truetype');
font-weight: bold;
}
@font-face {
font-family: Sahel;
src: url('../fonts/Sahel-Black-FD.eot');
src: url('../fonts/Sahel-Black-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Sahel-Black-FD.woff') format('woff'), url('../fonts/Sahel-Black-FD.ttf') format('truetype');
font-weight: 900;
}
*, html, body,
h1, h2, h3, h4, h5, h6, pre, code, tt, kbd, samp, .mw-code,.mw-body h1, .mw-body-content h1, .mw-body-content h2 {
font-family: Sahel
}
/*Navigation Menu*/
#mw-panel {
width: 13em;
font-size: 17px;
}
/*Head*/
@media screen and (min-width: 982px){
#left-navigation {
margin-right: 14em;
}
}
/*Content area*/
@media screen and (min-width: 982px){
.mw-body {
margin-right: 14em;
}
}
.page-صفحهٔ_اصلی .mw-body .firstHeading {
visibility: hidden;
}
@media screen and (max-width: 725px){
.page-صفحهٔ_اصلی h2.title{
font-size:14px;
text-align: center!important;
margin-right: 0px!important;
}
}
.mw-ui-button {
background-color: #133251;
color: #f2eaea;
font-weight: 500;
}
.mw-ui-button:hover {
background-color: #ffffff;
color: #133251
}
/*Footer*/
@media screen and (min-width: 982px){
#footer {
margin-right: 14em;
}
}
.neon {
position: relative;
overflow: hidden;
filter: brightness(200%);
}
.text {
background-color: black;
color: white;
font-size: 180px;
font-weight: bold;
font-family: sans-serif;
text-transform: uppercase;
position: relative;
user-select: none;
}
.text::before {
content: attr(data-text);
position: absolute;
color: white;
filter: blur(0.02em);
mix-blend-mode: difference;
}
.gradient {
position: absolute;
background: linear-gradient(45deg, red, gold, lightgreen, gold, red);
top: 0;
left: 0;
right: 0;
bottom: 0;
mix-blend-mode: multiply;
}
.spotlight {
position: absolute;
top: -100%;
left: -100%;
right: 0;
bottom: 0;
background:
radial-gradient(
circle,
white,
transparent 25%
) center / 25% 25%,
radial-gradient(
circle,
white,
black 25%
) center / 12.5% 12.5%;
animation: light 5s linear infinite;
mix-blend-mode: color-dodge;
}
@keyframes light {
to {
transform: translate(50%, 50%);
}
}