MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 78: | Line 78: | ||
filter: blur(2px); | filter: blur(2px); | ||
transform: scale(0.9, 0.9); | transform: scale(0.9, 0.9); | ||
} | |||
/* === removing default button style ===*/ | |||
.highlight { | |||
margin: 0; | |||
height: auto; | |||
background: transparent; | |||
padding: 0; | |||
border: none; | |||
} | |||
/* button styling */ | |||
.highlight { | |||
--border-right: 6px; | |||
--text-stroke-color: rgba(255,255,255,0.6); | |||
--animation-color: #37FF8B; | |||
--fs-size: 2em; | |||
letter-spacing: 3px; | |||
text-decoration: none; | |||
font-size: var(--fs-size); | |||
font-family: "Arial"; | |||
position: relative; | |||
text-transform: uppercase; | |||
color: transparent; | |||
-webkit-text-stroke: 1px var(--text-stroke-color); | |||
} | |||
/* this is the text, when you hover on button */ | |||
.hover-text { | |||
position: absolute; | |||
box-sizing: border-box; | |||
content: attr(data-text); | |||
color: var(--animation-color); | |||
width: 0%; | |||
inset: 0; | |||
border-right: var(--border-right) solid var(--animation-color); | |||
overflow: hidden; | |||
transition: 0.5s; | |||
-webkit-text-stroke: 1px var(--animation-color); | |||
} | |||
/* hover */ | |||
.highlight:hover .hover-text { | |||
width: 100%; | |||
filter: drop-shadow(0 0 23px var(--animation-color)) | |||
} | } |
Revision as of 22:15, 16 July 2023
/* CSS placed here will be applied to all skins */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading {
display: none;
}
p {
font-size: 20px !important;
}
a.external:after {
display: none !important;
}
.card {
padding: 5px;
box-sizing: border-box;
background: rgba(217, 217, 217, 0.58);
border: 1px solid white;
box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
backdrop-filter: blur(6px);
border-radius: 17px;
text-align: center;
cursor: pointer;
transition: all 0.5s;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
font-weight: bolder;
color: black;
}
.card:hover {
border: 1px solid black;
transform: scale(1.05);
}
.company-cards {
display: flex;
flex-direction: column;
}
.company-cards > ul {
width: 33% !important;
margin: auto;
}
.company-cards > ul > li {
display: flex;
align-items: center;
justify-content: center;
margin: auto;
margin-bottom: 20px;
flex-direction: column;
text-align: center;
width: 100%;
border-radius: 10px;
color: white;
cursor: pointer;
transition: 400ms;
box-shadow: 0 0 10px gray;
padding: 10px;
}
.company-cards > ul > li {
font-size: 30px;
font-weight: 700;
}
.company-cards > ul > li:hover {
transform: scale(1.1, 1.1);
}
.company-cards > ul:hover > li:not(:hover) {
filter: blur(2px);
transform: scale(0.9, 0.9);
}
/* === removing default button style ===*/
.highlight {
margin: 0;
height: auto;
background: transparent;
padding: 0;
border: none;
}
/* button styling */
.highlight {
--border-right: 6px;
--text-stroke-color: rgba(255,255,255,0.6);
--animation-color: #37FF8B;
--fs-size: 2em;
letter-spacing: 3px;
text-decoration: none;
font-size: var(--fs-size);
font-family: "Arial";
position: relative;
text-transform: uppercase;
color: transparent;
-webkit-text-stroke: 1px var(--text-stroke-color);
}
/* this is the text, when you hover on button */
.hover-text {
position: absolute;
box-sizing: border-box;
content: attr(data-text);
color: var(--animation-color);
width: 0%;
inset: 0;
border-right: var(--border-right) solid var(--animation-color);
overflow: hidden;
transition: 0.5s;
-webkit-text-stroke: 1px var(--animation-color);
}
/* hover */
.highlight:hover .hover-text {
width: 100%;
filter: drop-shadow(0 0 23px var(--animation-color))
}