Template:Gegbull/styles.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
Created page with ".cow-pattern { position: relative; overflow: hidden; } →Base style for all cow spots: .cow-pattern .spot { position: absolute; background: black; border-radius: 15px; →Rounded rectangles: opacity: 0.95; z-index: 0; →Behind content: } →spots: .cow-pattern .spot1 { width: 60px; height: 40px; top: 10px; left: 20px; transform: rotate(10deg); } .cow-pattern .spot2 { width: 50px; height: 35px; top: 5px; left: 120px; transform: rotate(-20deg); }..." |
SomebodyRum (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
. | /* Wrapper for shrink-to-fit centering */ | ||
.gegbull-aligner { | |||
display: table; | |||
margin: 15px auto; | |||
width: 80%; /* Takes up a good portion of the page */ | |||
max-width: 900px; | |||
} | } | ||
/* | /* Main Box Structure */ | ||
. | .gegbull-container { | ||
position: relative; | |||
overflow: hidden; | |||
background-color: #ffffff; | |||
border: 3px solid #887777; | |||
border-radius: 8px; | |||
box-shadow: 0 4px 6px rgba(0,0,0,0.1); | |||
z-index: 1; | |||
} | } | ||
/* | /* ========================================= | ||
. | COW SPOTS (Converted to responsive percentages) | ||
. | ========================================= */ | ||
. | .gegbull-spot { | ||
. | position: absolute; | ||
. | background: #111111; | ||
. | border-radius: 40%; /* Organic oval shapes */ | ||
. | z-index: 0; | ||
} | |||
.s1 { width: 60px; height: 40px; top: -5%; left: 5%; transform: rotate(10deg); } | |||
.s2 { width: 50px; height: 35px; top: 60%; left: 15%; transform: rotate(-20deg); } | |||
.s3 { width: 70px; height: 45px; top: 5%; left: 25%; transform: rotate(15deg); } | |||
.s4 { width: 55px; height: 35px; top: 70%; left: 35%; transform: rotate(-10deg); } | |||
.s5 { width: 65px; height: 40px; top: -10%; left: 48%; transform: rotate(5deg); } | |||
.s6 { width: 60px; height: 38px; top: 65%; left: 58%; transform: rotate(-15deg); } | |||
.s7 { width: 50px; height: 30px; top: 10%; left: 68%; transform: rotate(12deg); } | |||
.s8 { width: 45px; height: 28px; top: 55%; left: 78%; transform: rotate(25deg); } | |||
.s9 { width: 55px; height: 32px; top: 5%; left: 88%; transform: rotate(-30deg); } | |||
.s10 { width: 40px; height: 30px; top: 75%; left: 90%; transform: rotate(20deg); } | |||
.s11 { width: 35px; height: 25px; top: 40%; left: -2%; transform: rotate(-10deg); } | |||
/* ========================================= | |||
MILK LIQUID SIMULATION | |||
========================================= */ | |||
.gegbull-milk { | |||
position: absolute; | |||
top: 0; left: 0; | |||
width: 100%; height: 100%; | |||
/* Slightly transparent so cow spots look "underwater" */ | |||
background-color: rgba(255, 255, 255, 0.92); | |||
z-index: 1; | |||
/* Sloshing animation */ | |||
animation: milk-wave 4s ease-in-out infinite alternate; | |||
} | |||
/* Adapted from your polygon code! Shifted Y-values to fill the bottom 45% */ | |||
@keyframes milk-wave { | |||
0% { clip-path: polygon(0% 55%, 16% 60%, 33% 55%, 54% 59%, 70% 57%, 84% 56.2%, 100% 57%, 100% 100%, 0% 100%); } | |||
100% { clip-path: polygon(0% 58%, 16% 57%, 34% 61.6%, 51% 61.2%, 67% 62.0%, 84% 62.5%, 100% 60.6%, 100% 100%, 0% 100%); } | |||
} | |||
/* ========================================= | |||
LAYOUT & CONTENT | |||
========================================= */ | |||
.gegbull-inner { | |||
position: relative; | |||
z-index: 2; /* Keeps text and image above the milk */ | |||
display: flex; | |||
flex-flow: row nowrap; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 15px 20px; | |||
gap: 20px; | |||
} | |||
.gegbull-image { | |||
flex: 0 0 auto; | |||
/* Bobs up and down as if treading in the milk */ | |||
animation: gegbull-bob 3s ease-in-out infinite alternate; | |||
} | |||
@keyframes gegbull-bob { | |||
0% { transform: translateY(-3px) rotate(-3deg); } | |||
100% { transform: translateY(5px) rotate(3deg); } | |||
} | |||
. | .gegbull-text { | ||
text-align: center; | |||
} | |||
/* Typography & Thick Outline */ | |||
.outline { | .outline { | ||
/* 8-axis solid white outline to protect against black spots */ | |||
text-shadow: | |||
-2px -2px 0 #ffffff, | |||
0 -2px 0 #ffffff, | |||
2px -2px 0 #ffffff, | |||
2px 0 0 #ffffff, | |||
2px 2px 0 #ffffff, | |||
0 2px 0 #ffffff, | |||
-2px 2px 0 #ffffff, | |||
-2px 0 0 #ffffff, | |||
0 4px 5px rgba(255,255,255,0.8); | |||
} | |||
.gegbull-title { | |||
font-weight: bold; | |||
color: #590000; | |||
font-size: 150%; | |||
margin-bottom: 5px; | |||
} | |||
.gegbull-subtitle { | |||
font-weight: bold; | |||
font-size: 105%; | |||
color: #000000; | |||
} | |||
.gegbull-link { | |||
color: #877070; | |||
text-decoration: underline; | |||
} | } | ||
Revision as of 13:32, 23 April 2026
/* Wrapper for shrink-to-fit centering */
.gegbull-aligner {
display: table;
margin: 15px auto;
width: 80%; /* Takes up a good portion of the page */
max-width: 900px;
}
/* Main Box Structure */
.gegbull-container {
position: relative;
overflow: hidden;
background-color: #ffffff;
border: 3px solid #887777;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
z-index: 1;
}
/* =========================================
COW SPOTS (Converted to responsive percentages)
========================================= */
.gegbull-spot {
position: absolute;
background: #111111;
border-radius: 40%; /* Organic oval shapes */
z-index: 0;
}
.s1 { width: 60px; height: 40px; top: -5%; left: 5%; transform: rotate(10deg); }
.s2 { width: 50px; height: 35px; top: 60%; left: 15%; transform: rotate(-20deg); }
.s3 { width: 70px; height: 45px; top: 5%; left: 25%; transform: rotate(15deg); }
.s4 { width: 55px; height: 35px; top: 70%; left: 35%; transform: rotate(-10deg); }
.s5 { width: 65px; height: 40px; top: -10%; left: 48%; transform: rotate(5deg); }
.s6 { width: 60px; height: 38px; top: 65%; left: 58%; transform: rotate(-15deg); }
.s7 { width: 50px; height: 30px; top: 10%; left: 68%; transform: rotate(12deg); }
.s8 { width: 45px; height: 28px; top: 55%; left: 78%; transform: rotate(25deg); }
.s9 { width: 55px; height: 32px; top: 5%; left: 88%; transform: rotate(-30deg); }
.s10 { width: 40px; height: 30px; top: 75%; left: 90%; transform: rotate(20deg); }
.s11 { width: 35px; height: 25px; top: 40%; left: -2%; transform: rotate(-10deg); }
/* =========================================
MILK LIQUID SIMULATION
========================================= */
.gegbull-milk {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
/* Slightly transparent so cow spots look "underwater" */
background-color: rgba(255, 255, 255, 0.92);
z-index: 1;
/* Sloshing animation */
animation: milk-wave 4s ease-in-out infinite alternate;
}
/* Adapted from your polygon code! Shifted Y-values to fill the bottom 45% */
@keyframes milk-wave {
0% { clip-path: polygon(0% 55%, 16% 60%, 33% 55%, 54% 59%, 70% 57%, 84% 56.2%, 100% 57%, 100% 100%, 0% 100%); }
100% { clip-path: polygon(0% 58%, 16% 57%, 34% 61.6%, 51% 61.2%, 67% 62.0%, 84% 62.5%, 100% 60.6%, 100% 100%, 0% 100%); }
}
/* =========================================
LAYOUT & CONTENT
========================================= */
.gegbull-inner {
position: relative;
z-index: 2; /* Keeps text and image above the milk */
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
padding: 15px 20px;
gap: 20px;
}
.gegbull-image {
flex: 0 0 auto;
/* Bobs up and down as if treading in the milk */
animation: gegbull-bob 3s ease-in-out infinite alternate;
}
@keyframes gegbull-bob {
0% { transform: translateY(-3px) rotate(-3deg); }
100% { transform: translateY(5px) rotate(3deg); }
}
.gegbull-text {
text-align: center;
}
/* Typography & Thick Outline */
.outline {
/* 8-axis solid white outline to protect against black spots */
text-shadow:
-2px -2px 0 #ffffff,
0 -2px 0 #ffffff,
2px -2px 0 #ffffff,
2px 0 0 #ffffff,
2px 2px 0 #ffffff,
0 2px 0 #ffffff,
-2px 2px 0 #ffffff,
-2px 0 0 #ffffff,
0 4px 5px rgba(255,255,255,0.8);
}
.gegbull-title {
font-weight: bold;
color: #590000;
font-size: 150%;
margin-bottom: 5px;
}
.gegbull-subtitle {
font-weight: bold;
font-size: 105%;
color: #000000;
}
.gegbull-link {
color: #877070;
text-decoration: underline;
}