Skip to content

Commit 1eaf702

Browse files
committed
Add _example_ folder
1 parent 035bf4e commit 1eaf702

File tree

7 files changed

+287
-263
lines changed

7 files changed

+287
-263
lines changed

example.css

Lines changed: 0 additions & 156 deletions
This file was deleted.

example/demo.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Demo CSS file - example code */
2+
.demo {
3+
display: flex;
4+
}
5+
6+
.demo .item {
7+
cursor: pointer;
8+
flex-grow: 1;
9+
}
10+
11+
.demo .item:hover {
12+
background: rgba(0, 0, 0, .2);
13+
}
14+
15+
.demo .item:focus,
16+
.demo .item.selected {
17+
background-color: rgba(0, 0, 0, .8);
18+
color: #FFF;
19+
}

example/example.css

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
/* External Example Code */
2+
@charset "UTF-8";
3+
4+
:root {
5+
--theme-color: #eb2300;
6+
--my-height: 1.2;
7+
}
8+
9+
::-webkit-scrollbar {
10+
width: 8px;
11+
height: 5px;
12+
}
13+
::-webkit-scrollbar-track {
14+
background-color: #fff;
15+
}
16+
::-webkit-scrollbar-thumb {
17+
background: var(--theme-color);
18+
}
19+
20+
::selection {
21+
background: rgba(0, 0, 0, .3);
22+
}
23+
24+
@import "custom.css";
25+
@import url("bluish.css") screen, tv;
26+
@import url('landscape.css') screen and (orientation:landscape);
27+
28+
* {
29+
margin: 0;
30+
padding: 0;
31+
box-sizing: border-box;
32+
33+
}
34+
35+
#title {
36+
font-weight: 600;
37+
}
38+
39+
@keyframes example {
40+
from { margin-top: 50px; }
41+
50% {
42+
margin-top: 150px;
43+
margin-left: 80px;
44+
}
45+
20%, 80% {
46+
margin-top: 80px;
47+
margin-left: -80px;
48+
}
49+
to { margin-top: 100px; }
50+
}
51+
52+
body {
53+
padding: 20px 40px;
54+
}
55+
56+
input:checked~div {
57+
background: #e3e3e3;
58+
}
59+
60+
input:checked~div:hover {
61+
background: #5f5757;
62+
}
63+
64+
input[class~='danger']:checked ~ div:hover {
65+
background: red !important;
66+
}
67+
68+
body p.warning {
69+
color: yellow;
70+
filter: hue-rotate(180deg) drop-shadow(8px 8px 0 green);
71+
box-shadow: 8px 8px 0 0 green, 12px 12px 0 0 red;
72+
}
73+
74+
@font-face {
75+
font-family: "Open Sans";
76+
src: url("../assets/fonts/OpenSans-Regular-webfont.woff2") format("woff2");
77+
}
78+
79+
@font-face {
80+
font-family: ideal-sans-serif;
81+
src: local(ideal-sans-serif),
82+
url(ideal-sans-serif.woff) format("woff"),
83+
url(basic-sans-serif.ttf) format("truetype");
84+
font-weight: 500;
85+
}
86+
87+
p, span {color: #212121;margin: 5px 0;}
88+
89+
90+
@media (max-width: 760px) {
91+
body {
92+
padding: 10px 20px;
93+
}
94+
95+
p, span {
96+
margin: 0;
97+
}
98+
}
99+
100+
@media (max-height: 500px) and (orientation: landscape), not print {
101+
body {
102+
padding: 5px 10px;
103+
}
104+
}
105+
106+
@media screen, print {
107+
body {
108+
--my-height: 1.2;
109+
line-height: var(--my-height);
110+
line-height: calc(var(--my-height) - 0.2);
111+
}
112+
}
113+
114+
@media only screen and (min-device-width: 320px) and (max-device-width: 480px), not print {
115+
body {
116+
line-height: 1.4;
117+
}
118+
}
119+
120+
pre:hover {
121+
transition: background-color 300ms linear 0s, transform 500ms ease-in-out 300ms;
122+
}
123+
124+
pre::after, pre::before {
125+
/* content: ''; */
126+
background: rgb(250, 119, 11);
127+
margin: 50px;
128+
padding: 50px;
129+
}
130+
131+
[data-span="lead"] {
132+
border-bottom: 1px solid #5f5757;
133+
}
134+
[data-span="lead"]:hover, [data-span="lead"]:focus {
135+
border-bottom: 1px solid var(--theme-color);
136+
}
137+
138+
.btn {
139+
color:white;
140+
background: var(--theme-color);
141+
border-radius: 3px;
142+
font-weight: 600;
143+
margin: 5px;
144+
padding: 5px 10px;
145+
text-decoration: none;
146+
}
147+
148+
.btn:focus {
149+
color: red;
150+
background: url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7) no-repeat;
151+
}
152+
153+
/* PseudoEvent: only-read (not work!) */
154+
.btn@click {
155+
box-shadow: 0 0 5px red;
156+
}

0 commit comments

Comments
 (0)