Template:Cloudflare/styles.css: Difference between revisions
From KolymaPEDIA
Jump to navigationJump to search
Created page with ".template-cloudflare { background: #000000; border: 2px solid #FC7C1E; border-radius: 5px; color: #FFFFFF; font-family: 'Inter', sans-serif; line-height: 1.35; text-align: left; box-sizing: border-box; →should help avoid issues on mobile: max-width: 100%; →should help avoid issues on mobile: } .template-cloudflare .line1, .template-cloudflare .line2 { text-align: left; } .template-cloudflare .line1 { font-weight: normal; } .template-cloudflare..." |
No edit summary |
||
| Line 7: | Line 7: | ||
line-height: 1.35; | line-height: 1.35; | ||
text-align: left; | text-align: left; | ||
box-sizing: border-box; | |||
max-width: 100%; | |||
} | } | ||
| Line 42: | Line 42: | ||
display: block; | display: block; | ||
font-size: 15px; | font-size: 15px; | ||
text-align: left; | |||
} | } | ||
| Line 63: | Line 63: | ||
inset 0 0 0 1px #292929, | inset 0 0 0 1px #292929, | ||
0 2px 6px #000000; | 0 2px 6px #000000; | ||
} | } | ||
.cloudflare-verification { | .cloudflare-verification { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 7px; | gap: 7px; | ||
min-width: 0; | min-width: 0; | ||
padding: 5px; | |||
text-align: left; | text-align: left; | ||
} | } | ||
| Line 110: | Line 94: | ||
} | } | ||
/* status text */ | |||
.cloudflare-status { | .cloudflare-status { | ||
position: relative; | position: relative; | ||
| Line 121: | Line 106: | ||
} | } | ||
.cloudflare-status > | .cloudflare-status > .cloudflare-idle, | ||
.cloudflare-status > .cloudflare-raping, | |||
.cloudflare-status > .cloudflare-success { | |||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
transform: translateY(-50%); | transform: translateY(-50%); | ||
} | } | ||
| Line 136: | Line 122: | ||
.cloudflare-raping { | .cloudflare-raping { | ||
opacity: 0; | |||
animation: cloudflare-raping 4s step-end forwards; | animation: cloudflare-raping 4s step-end forwards; | ||
} | } | ||
.cloudflare-success { | .cloudflare-success { | ||
opacity: 0; | |||
animation: cloudflare-success 4s step-end forwards; | animation: cloudflare-success 4s step-end forwards; | ||
} | } | ||
/* logo */ | |||
.cloudflare-box { | .cloudflare-box { | ||
display: flex; | display: flex; | ||
| Line 155: | Line 144: | ||
.cloudflare-box img { | .cloudflare-box img { | ||
display: block; | display: block !important; | ||
width: 50px; | width: 50px !important; | ||
height: auto; | height: auto !important; | ||
max-width: 50px !important; | |||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
| Line 182: | Line 172: | ||
text-shadow: none; | text-shadow: none; | ||
} | } | ||
@keyframes cloudflare-checkbox { | @keyframes cloudflare-checkbox { | ||
0% { | 0% { | ||
Revision as of 19:48, 26 August 2026
.template-cloudflare {
background: #000000;
border: 2px solid #FC7C1E;
border-radius: 5px;
color: #FFFFFF;
font-family: 'Inter', sans-serif;
line-height: 1.35;
text-align: left;
box-sizing: border-box;
max-width: 100%;
}
.template-cloudflare .line1,
.template-cloudflare .line2 {
text-align: left;
}
.template-cloudflare .line1 {
font-weight: normal;
}
.template-cloudflare a,
.template-cloudflare a:visited {
color: #FC7C1E;
text-shadow: 0 0 15px #FFA945;
}
.cloudflare-title {
display: block;
font-size: 18px;
}
.cloudflare-verification-rowalign {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-top: 5px;
}
.cloudflare-subtitle {
display: block;
font-size: 15px;
text-align: left;
}
.cloudflare-description {
display: block;
color: #888888;
font-size: 12px;
}
.cloudflare-challenge {
box-sizing: border-box;
flex: 0 0 230px;
width: 230px;
max-width: 100%;
margin: 0;
background: #181818;
border: 1px solid #666666;
border-radius: 3px;
box-shadow:
inset 0 0 0 1px #292929,
0 2px 6px #000000;
}
.cloudflare-verification {
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
padding: 5px;
text-align: left;
}
.cloudflare-verification::before {
box-sizing: border-box;
display: grid;
flex: 0 0 20px;
width: 20px;
height: 20px;
place-items: center;
content: "";
background: #111111;
border: 2px solid #888888;
border-radius: 3px;
color: #FFFFFF;
font-size: 15px;
font-weight: bold;
line-height: 1;
animation:
cloudflare-checkbox 4s step-end forwards,
cloudflare-spinner 2s linear 2s;
}
/* status text */
.cloudflare-status {
position: relative;
display: block;
flex: 1 1 auto;
min-width: 0;
min-height: 36px;
color: #EEEEEE;
font-size: 10px;
line-height: 1.15;
}
.cloudflare-status > .cloudflare-idle,
.cloudflare-status > .cloudflare-raping,
.cloudflare-status > .cloudflare-success {
position: absolute;
top: 50%;
left: 0;
width: 100%;
transform: translateY(-50%);
}
.cloudflare-idle {
opacity: 1;
animation: cloudflare-idle 4s step-end forwards;
}
.cloudflare-raping {
opacity: 0;
animation: cloudflare-raping 4s step-end forwards;
}
.cloudflare-success {
opacity: 0;
animation: cloudflare-success 4s step-end forwards;
}
/* logo */
.cloudflare-box {
display: flex;
flex: 0 0 65px;
flex-direction: column;
align-items: center;
justify-content: center;
padding-left: 7px;
border-left: 1px solid #666666;
line-height: 1;
}
.cloudflare-box img {
display: block !important;
width: 50px !important;
height: auto !important;
max-width: 50px !important;
margin: 0 auto;
}
.cloudflare-link {
display: block;
margin-top: 2px;
font-size: 7px;
line-height: 1.1;
white-space: nowrap;
}
.cloudflare-link a,
.cloudflare-link a:visited {
color: #3366CC;
text-decoration: none;
text-shadow: none;
}
.cloudflare-link a:hover,
.cloudflare-link a:active {
color: #3366CC;
text-decoration: underline;
text-shadow: none;
}
@keyframes cloudflare-checkbox {
0% {
content: "";
background: #111111;
border-color: #888888;
border-radius: 3px;
color: transparent;
}
50% {
content: "";
background: transparent;
border-color: #555555;
border-top-color: #FC7C1E;
border-radius: 50%;
color: transparent;
}
100% {
content: "✓";
background: #34B233;
border-color: #34B233;
border-radius: 3px;
color: #FFFFFF;
}
}
@keyframes cloudflare-spinner {
0% {
transform: rotate(0);
}
100% {
transform: rotate(720deg);
}
}
@keyframes cloudflare-idle {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@keyframes cloudflare-raping {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes cloudflare-success {
0% {
opacity: 0;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}