Link to article: Pride Logos Base.
/* First logo */
#header {
background-image: url("https://scp-wiki.wdfiles.com/local--files/component%3Apride-logos/scp-{$code}.png");
background-image: {$custom};
}
/* The second logo is created by a pseudo-element atop the first one */
#header::before {
position: absolute;
content: '';
width: 100%;
height: 100%;
pointer-events: none; /* Disable clicking event */
top: 0;
left: 0;
background-repeat: no-repeat;
background-position: inherit;
background-size: inherit;
background-image: url("https://scp-wiki.wdfiles.com/local--files/component%3Apride-logos/scp-{$code2}.png");
background-image: {$custom2};
/* 0. Default mask position and size on desktop */
-webkit-mask-position: 10px 40px;
mask-position: 10px 40px;
-webkit-mask-size: 100px 100px;
mask-size: 100px 100px;
/* 1. Default divider */
-webkit-mask-image: linear-gradient(to right, transparent 50%, black 50%);
mask-image: linear-gradient(to right, transparent 50%, black 50%);
/* 2. Angled (non-vertical) divider */
-webkit-mask-image: linear-gradient({$angle}deg, transparent 50%, black 50%);
mask-image: linear-gradient({$angle}deg, transparent 50%, black 50%);
/* 3. User-customizable mask */
-webkit-mask-image: {$mask};
mask-image: {$mask};
}
/* Parallel collage of three logos */
#header::before {
/* 1. Default divider */
-webkit-mask-image: linear-gradient(to right, transparent 35%, black 35%, black 65%, transparent 65%);
mask-image: linear-gradient(to right, transparent 35%, black 35%, black 65%, transparent 65%);
/* 2. Angled (non-vertical) divider */
-webkit-mask-image: linear-gradient({$angle}deg, transparent 35%, black 35%, black 65%, transparent 65%);
mask-image: linear-gradient({$angle}deg, transparent 35%, black 35%, black 65%, transparent 65%);
/* 3. User-customizable mask */
-webkit-mask-image: {$mask};
mask-image: {$mask};
}
/* The third logo is created by ::after */
#header::after {
position: absolute;
content: '';
z-index: 2;
width: 100%;
height: 100%;
pointer-events: none;
top: 0;
left: 0;
background-repeat: no-repeat;
background-position: inherit;
background-size: inherit;
background-image: url("https://scp-wiki.wdfiles.com/local--files/component%3Apride-logos/scp-{$code3}.png");
background-image: {$custom3};
/* 0. Default mask position and size on desktop */
-webkit-mask-position: 10px 40px;
mask-position: 10px 40px;
-webkit-mask-size: 100px 100px;
mask-size: 100px 100px;
/* 1. Default divider */
-webkit-mask-image: linear-gradient(to right, transparent 65%, black 65%);
mask-image: linear-gradient(to right, transparent 65%, black 65%);
/* 2. Angled (non-vertical) divider */
-webkit-mask-image: linear-gradient({$angle}deg, transparent 65%, black 65%);
mask-image: linear-gradient({$angle}deg, transparent 65%, black 65%);
/* 3. User-customizable mask */
-webkit-mask-image: {$mask2};
mask-image: {$mask2};
}
@import url("https://scp-wiki.wdfiles.com/local--code/component%3Apride-logos-base/1");
@import url("https://scp-wiki.wdfiles.com/local--code/component%3Apride-logos-base/2");
@import url("https://scp-wiki.wdfiles.com/local--code/component%3Apride-logos-base/3");
@import url("https://scp-wiki.wdfiles.com/local--code/component%3Apride-logos-base/4");
@import url("https://scp-wiki.wdfiles.com/local--code/component%3Apride-logos-base/5");
:root {
--header-logo: url("https://scp-wiki.wdfiles.com/local--files/component%3Apride-logos/scp-{$code}.png");
}
#header h1 a::before {
background-image: {$custom};
}
@import url("https://scp-wiki.wdfiles.com/local--code/component%3Apride-logos-base/6");
#header h1 a::before {
/* 2. Angled (non-vertical) divider */
-webkit-mask-image: linear-gradient({$angle}deg, transparent 50%, black 50%),
linear-gradient(white, white);
mask-image: linear-gradient({$angle}deg, transparent 50%, black 50%),
linear-gradient(white, white);
/* 3. User-customizable mask */
-webkit-mask-image: {$mask},
linear-gradient(white, white);
mask-image: {$mask},
linear-gradient(white, white);
}
#header h1 a::after {
background-image: url("https://scp-wiki.wdfiles.com/local--files/component%3Apride-logos/scp-{$code2}.png");
background-image: {$custom2};
/* 2. Angled (non-vertical) divider */
-webkit-mask-image: linear-gradient({$angle}deg, transparent 50%, black 50%);
mask-image: linear-gradient({$angle}deg, transparent 50%, black 50%);
/* 3. User-customizable mask */
-webkit-mask-image: {$mask};
mask-image: {$mask};
}
tt {
font-size: 90%;
padding: 0.1em 0.2em;
background-color: #eee;
border-radius: 5px;
}
display: none;