UNPKG

3.81 kBHTMLView Raw
1<style>
2
3html {
4 background-image: url('./hagedesktop_logo_wallpaper.jpg');
5 background-repeat: no-repeat;
6 background-position: center center;
7 background-attachment: fixed;
8 background-size: cover;
9}
10
11/* Button
12 * ---------------------------------------------------------------- */
13button.ui {
14 font-family:
15 Helvetica,
16 Arial,
17 'Hiragino Kaku Gothic ProN',
18 'ヒラギノ角ゴ ProN W3',
19 Meiryo UI,
20 Meiryo,
21 メイリオ,
22 sans-serif;
23
24 -webkit-appearance: none;
25 appearance: none;
26
27 display: inline-block;
28 box-sizing: border-box;
29 margin: 6px;
30 padding: 8px 16px;
31 min-width: 5em;
32 line-height: 1.2em;
33
34 cursor: pointer;
35 font-size: 1.2em;
36 font-weight: bold;
37 text-decoration: none;
38 color: #444;
39 background: #eee;
40 outline: none;
41 border: none;
42 border-radius: 2px;
43
44 transition: all 0.2s ease;
45}
46button.ui:hover {
47 background: #ddd;
48
49 transition: all 0s ease;
50}
51button.ui:focus {
52 outline: solid 1px #ff006c;
53
54 transition: all 0s ease;
55}
56button.ui:active {
57 color: #000;
58 background: #ccc;
59
60 transition: all 0s ease;
61}
62
63/* TextBox
64 * ---------------------------------------------------------------- */
65input[type=text].ui {
66 font-family:
67 Helvetica,
68 Arial,
69 'Hiragino Kaku Gothic ProN',
70 'ヒラギノ角ゴ ProN W3',
71 Meiryo UI,
72 Meiryo,
73 メイリオ,
74 sans-serif;
75
76 margin: 0;
77 padding: 8px 10px;
78 line-height: 1.2em;
79
80 -webkit-appearance: none;
81 appearance: none;
82
83 font-size: 1.2em;
84 outline: none;
85 border: solid 1px #ddd;
86 border-radius: 0;
87 box-shadow: none;
88
89 transition: border 0.5s ease, box-shadow 0.1s ease;
90}
91input[type=text].ui:hover {
92 border: solid 1px #ff006c;
93 transition: border 0.2s ease, box-shadow 0.1s ease;
94}
95input[type=text].ui:focus {
96 border: solid 1px #ff006c;
97 transition: border 0.5s ease, box-shadow 0.05s ease;
98}
99
100/* Window
101 * ---------------------------------------------------------------- */
102window {
103 font-family:
104 Helvetica,
105 Arial,
106 'Hiragino Kaku Gothic ProN',
107 'ヒラギノ角ゴ ProN W3',
108 Meiryo UI,
109 Meiryo,
110 メイリオ,
111 sans-serif;
112
113 display: block;
114
115 width: 600px;
116 margin: 32px;
117
118 box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.1);
119}
120 window > header {
121 display: block;
122 margin: 0;
123 padding: 0;
124
125 cursor: default;
126
127 background: rgba(34, 136, 221, 0.9);
128 }
129 window > header:after {
130 content: "";
131 display: block;
132 clear: both;
133 }
134 window > header > title {
135 display: inline-block;
136 padding: 4px 16px;
137 line-height: 32px;
138
139 font-size: 1.1em;
140 font-weight: bold;
141 color: rgba(0, 0, 0, 0.7);
142 }
143 window > header > .actions {
144 float: right;
145 font-size: 0;
146 }
147 window > header > .actions > button {
148 -webkit-appearance: none;
149 appearance: none;
150
151 margin: 0;
152 padding: 4px 4px;
153
154 outline: none;
155 border: none;
156 background: transparent;
157 }
158 window > header > .actions > button:hover {
159 background: rgba(0, 0, 0, 0.1);
160 }
161 window > header > .actions > button:active {
162 background: rgba(0, 0, 0, 0.2);
163 }
164 window > main {
165 padding: 8px;
166
167 background: #fff;
168 border-right: solid 2px rgba(34, 136, 221, 0.9);
169 border-bottom: solid 2px rgba(34, 136, 221, 0.9);
170 border-left: solid 2px rgba(34, 136, 221, 0.9);
171 }
172
173</style>
174
175<window>
176 <header>
177 <title>ウィンドウ</title>
178 <div class=actions>
179 <button><img src=./minimum.png alt=最小化></button>
180 <button><img src=./maximum.png alt=最大化></button>
181 <button><img src=./close.png alt=閉じる></button>
182 </div>
183 </header>
184 <main>
185 <p>コンテンツ</p>
186 <button class=ui>OK</button><button class=ui>キャンセル</button>
187 <input type=text class=ui></input>
188 </main>
189</window>
\No newline at end of file