質問編集履歴

1

ソースコードになります。

2017/05/08 02:15

投稿

masahirot
masahirot

スコア7

test CHANGED
File without changes
test CHANGED
@@ -31,3 +31,265 @@
31
31
  一体なぜPCサイズではリンクの行き来ができるのに、
32
32
 
33
33
  SPサイズになるとできないのでしょうか?
34
+
35
+
36
+
37
+ ソースコードはこちらになります。
38
+
39
+ ```ここに言語を入力
40
+
41
+ <body class="drawer drawer--left">
42
+
43
+ <header role="banner">
44
+
45
+ <button type="button" class="drawer-toggle drawer-hamburger">
46
+
47
+ <span class="sr-only">toggle navigation</span>
48
+
49
+ <span class="drawer-hamburger-icon"></span>
50
+
51
+ </button>
52
+
53
+
54
+
55
+ <h1><img src="img/logo1.png" alt="Be-done"></h1>
56
+
57
+ <nav class="drawer-nav" role="navigation">
58
+
59
+ <ul class="drawer-menu">
60
+
61
+ <li><a class="drawer-menu-item" href="#">home</a></li>
62
+
63
+ <li><a class="drawer-menu-item" href="concept.html">concept</a></li>
64
+
65
+ <li><a class="drawer-menu-item" href="#">menu</a></li>
66
+
67
+ <li><a class="drawer-menu-item" href="#">staff</a></li>
68
+
69
+ <li><a class="drawer-menu-item" href="#">information</a></li>
70
+
71
+ </ul>
72
+
73
+ </nav>
74
+
75
+ </header>
76
+
77
+ </body>
78
+
79
+ ```
80
+
81
+ ```ここに言語を入力
82
+
83
+ body{
84
+
85
+ font-size: 16px;
86
+
87
+ line-height: 1.5;
88
+
89
+ background: #eee;
90
+
91
+ color: #4a4a4a;
92
+
93
+ font-family: "游ゴシック Medium", "Yu Gothic Medium", YuGothic, sans-serif;
94
+
95
+ }
96
+
97
+
98
+
99
+ header{
100
+
101
+ float: none;
102
+
103
+ height: auto;
104
+
105
+ text-align: center;
106
+
107
+ width: 100%;
108
+
109
+ background-color: #6ebf8b;
110
+
111
+ padding:1% 0;
112
+
113
+ position:fixed;
114
+
115
+ z-index: 10;
116
+
117
+ }
118
+
119
+
120
+
121
+ header h1 img{
122
+
123
+ max-width:30%;
124
+
125
+ height:auto;
126
+
127
+ }
128
+
129
+
130
+
131
+ nav ul li a{
132
+
133
+ text-decoration:none;
134
+
135
+ color:#4a4a4a;
136
+
137
+ }
138
+
139
+
140
+
141
+ /*=============== PC ===============*/
142
+
143
+ @media screen and (min-width:781px) {
144
+
145
+ header{
146
+
147
+ background: #6ebf8b;
148
+
149
+ width: 22%;
150
+
151
+ float: left;
152
+
153
+ height: 100vh;
154
+
155
+ text-align: right;
156
+
157
+ position: fixed;
158
+
159
+ padding: 42px 1.5% 0;
160
+
161
+ }
162
+
163
+
164
+
165
+ header h1 img{
166
+
167
+ max-width:100%;
168
+
169
+ height:auto;
170
+
171
+ }
172
+
173
+
174
+
175
+ header button{
176
+
177
+ display:none;
178
+
179
+ }
180
+
181
+
182
+
183
+ nav ul li{
184
+
185
+ padding:5%;
186
+
187
+ text-align:center;
188
+
189
+ }
190
+
191
+
192
+
193
+ }
194
+
195
+ ```
196
+
197
+ drawer cssは特に触れていません。
198
+
199
+ http://git.blivesta.com/drawer/
200
+
201
+ ```ここに言語を入力
202
+
203
+ .drawer-open {
204
+
205
+ overflow: hidden !important;
206
+
207
+ }
208
+
209
+
210
+
211
+ .drawer-nav {
212
+
213
+ position: fixed;
214
+
215
+ z-index: 101;
216
+
217
+ top: 0;
218
+
219
+ overflow: hidden;
220
+
221
+ width: 16.25rem;
222
+
223
+ height: 100%;
224
+
225
+ color: #222;
226
+
227
+ background-color: #fff;
228
+
229
+ }
230
+
231
+
232
+
233
+ .drawer-brand {
234
+
235
+ font-size: 1.5rem;
236
+
237
+ font-weight: bold;
238
+
239
+ line-height: 3.75rem;
240
+
241
+ display: block;
242
+
243
+ padding-right: .75rem;
244
+
245
+ padding-left: .75rem;
246
+
247
+ text-decoration: none;
248
+
249
+ color: #222;
250
+
251
+ }
252
+
253
+
254
+
255
+ .drawer-menu {
256
+
257
+ margin: 0;
258
+
259
+ padding: 0;
260
+
261
+ list-style: none;
262
+
263
+ }
264
+
265
+
266
+
267
+ .drawer-menu-item {
268
+
269
+ font-size: 1rem;
270
+
271
+ display: block;
272
+
273
+ padding: .75rem;
274
+
275
+ text-decoration: none;
276
+
277
+ color: #222;
278
+
279
+ }
280
+
281
+
282
+
283
+ .drawer-menu-item:hover {
284
+
285
+ text-decoration: underline;
286
+
287
+ color: #555;
288
+
289
+ background-color: transparent;
290
+
291
+ }
292
+
293
+
294
+
295
+ ```