1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
|
@charset "UTF-8";
/* @charset must:
* be on the first line of the file
* appear at the start of the line
* be lowercase
* followed by one space
* have a double quoted encoding name (encoding is case insensitive)
* be terminated by semicolon
*/
/*
* general
*/
/* whitespace */
#main
{
color:aqua;
float: left!important;
margin : 0 ;
width
:
100%
!
important
;
}
/* case insensitivity */
Body {
FONT: 12Px/16pX iTaLiC sans-SERIF;
}
/*
* selectors
*/
/* simple selectors */
#testID, /* id */
.someclass, /* class */
div, /* type */
*, /* universal */
[lang|="zh"] { /* attribute */
color: black;
}
/* combinators */
header + main, /* adjacent sibling */
li ~ li, /* general sibling */
ul > li, /* child */
ul ul { /* descendant */
color: blue;
}
/* pseudo-elements */
:after,
::after,
::placeholder,
::selection {
color: green;
}
/* pseudo-classes */
:hover,
:required,
:lang(fr),
:not(div#sidebar.fancy),
:nth-child(n+1),
:nth-last-child(-2n - 30),
:nth-of-type(5),
:nth-last-of-type(even) {
color: yellow;
}
/* pseudo-classes with invalid arguments */
:not(div:before), /* pseudo-element */
:not(input::placeholder), /* pseudo-element */
:not(p:not(:lang(en))), /* nested :not */
:nth-child(1.2n), /* non-integer */
:nth-child(.5), /* non-integer */
:nth-child(n+-1) { /* number sign */
color: red;
}
/* namespace qualified */
a, /* type in default namespace */
svg|a, /* type in specified namespace */
|a, /* type in no namespace */
*|a, /* type in all namespaces (including no namespace) */
svg|*, /* universal */
svg|[fill] { /* attribute */
color: white;
}
/*
* basic data types
*/
#main {
/* angle */
transform: rotate(+33.333e+3deg);
/* color */
color: #f00;
color: #f00f; /* #rgba */
color: #ff0000;
color: #ff0000ff; /* #rrggbbaa */
color: red;
color: lightgoldenrodyellow;
color: rebeccapurple;
color: currentColor;
/* freqency (not currently used for any property) */
content: 44.1kHz;
/* integer */
z-index: +255;
z-index: -1;
/* length */
width: 10px;
width: 10.5rem;
width: -10e-2vw;
/* number */
opacity: .5;
opacity: 0.3333;
opacity: 1;
opacity: 2e-34;
/* percentage */
width: 100%;
/* string */
content: "double quoted";
content: 'single quoted';
/* time */
transition-duration: .4s;
transition-duration: 400ms;
/* unicode range */
unicode-range: U+0025-00FF;
unicode-range: U+4??; /* wildcard range */
}
/* ratio */
@media (min-aspect-ratio: 16/9) {}
/* resolution */
@media (min-resolution: +2.54dpcm) {}
/*
* identifiers
*/
/* leading hyphens */
#-here.-there,
#-- .--everywhere { /* two hyphens: https://stackoverflow.com/a/30822662 */
color: blue;
}
/* non-ASCII */
#español,
#你好,
.❤♫ {
color: green;
}
/* invalid identifiers */
#1id, /* starts with digit */
.-2class { /* starts with hyphen digit */
color: maroon;
}
/*
* escaping
*/
/* selectors */
#\..\+\ space\@\>, /* special character escape */
#\E9 dition .\0000E9dition .motion_\e9motion, /* Unicode character escape */
.\e33 div, /* trailing space terminates Unicode character escape */
.\e33 div, /* extra space to denote separate tokens */
.\31 23 { /* escape leading digit of identifier */
/* property value */
content: "\E9 dition \
\"\0000E9dition\" \
\e9motion";
/* function name */
background: \u\72\l(image.png);
}
/*
* functions
*/
#main {
/* url */
background: url("image.svg");
/* function argument keywords */
background-image: linear-gradient(to left top, #fff, blue);
grid-template-columns: repeat(2, minmax(max-content, 300px) 1fr) 100px;
}
/*
* style properties
*/
#main {
/* svg */
fill: url(#pattern);
text-rendering: optimizeLegibility;
/* css3 */
font-variant-east-asian: jis04;
size: letter;
transition-timing-function: ease-in;
/* animatable */
transition-property: height, font-size, visibility;
}
/*
* modifiers
*/
body {
background: pink !important;
}
/*
* media queries
*/
@media screen, (orientation: portrait) {}
@media not (print and (min-monochrome: 16) and (color)) {}
@media only screen {} @media not print {}
/*
* at-rules
*/
/* @font-face */
@font-face {
font-family: MyHelvetica;
src: local("Helvetica Neue"),
local("HelveticaNeue"),
url(MgOpenModerna.ttf);
}
/* @font-feature-values */
@font-feature-values Font One {
@styleset {
nice-style: 12;
}
}
.nice-look {
font-variant-alternates: styleset(nice-style);
}
/* @import */
@import URL("fineprint.css");
@import 'custom.css';
@import url('landscape.css') screen and (orientation: landscape), print;
/* @keyframes */
@keyframes myanim {
from { opacity: 0.0; }
50% { opacity: 0.5; }
to { opacity: 1.0; }
}
/* @media */
@media all {
body {
background: gray;
}
@media screen, (orientation: portrait) {
body {
background: grey;
}
}
}
/* @namespace */
@namespace "http://www.w3.org/1999/xhtml";
@namespace svg url(http://www.w3.org/2000/svg);
/* @page */
@page {
bleed: 1cm;
}
@page toc, :blank {
margin: 2cm;
marks: crop cross;
}
@page index:left {
size: A4;
@top-right {
content: "Page " counter(page);
}
}
/* @supports */
@supports (animation-name: test) {
@keyframes 'my-complicated-animation' {
0% { width: 0; }
100% { width: 100%; }
}
}
/*
* vendor-specific extensions
*/
/* pseudo-elements */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
/* pseudo-classes */
#page:-moz-full-screen,
#page:-ms-fullscreen,
#page:-webkit-full-screen {
background: silver;
}
/* functions */
.footer {
background-image: -webkit-linear-gradient(to left top, #fff, blue);
}
/* style properties */
#sidebar {
-ms-overflow-style: -ms-autohiding-scrollbar;
}
@supports not ((text-align-last: justify) or (-moz-text-align-last: justify)) {
body {
text-align: justify;
}
}
/* at-rules */
@-webkit-keyframes myanim {
from { opacity: 0.0; }
50% { opacity: 0.5; }
to { opacity: 1.0; }
}
|