質問編集履歴
1
全てのコードを追加しました。無駄なコードもあるのですが、ご了承ください。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,35 +6,271 @@
|
|
6
6
|
良い方法があれば教えていただきたいです。
|
7
7
|
|
8
8
|
|
9
|
+
|
9
|
-
###
|
10
|
+
###すべてのコード
|
10
|
-
```HTML
|
11
|
+
```HTML CSS Javascript
|
12
|
+
<!DOCTYPE html>
|
11
|
-
<
|
13
|
+
<html lang="ja">
|
14
|
+
<head>
|
15
|
+
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<meta name="viewport" content="width=device-width" ,initial-scale="1.0">
|
18
|
+
|
19
|
+
<title>Sidemenu</title>
|
20
|
+
|
12
|
-
|
21
|
+
<style>
|
22
|
+
*{
|
13
|
-
|
23
|
+
font-family: 'FOT-筑紫ゴシック Pr5 L','ヒラギノ角ゴ ProN W3','Hiragino Kaku Gothic ProN','Meiryo UI','MS UI Gothic','メイリオ',Meiryo,'MS Pゴシック',sans-serif;
|
14
|
-
<li></li>
|
15
|
-
<li></li>
|
16
|
-
<li></li>
|
17
|
-
|
24
|
+
color:#333;
|
25
|
+
|
26
|
+
}
|
27
|
+
body{
|
28
|
+
width:100%;
|
29
|
+
height:100%;
|
30
|
+
}
|
31
|
+
nav{
|
18
|
-
|
32
|
+
position: fixed;;
|
19
|
-
|
33
|
+
top:0;
|
34
|
+
left:0;
|
35
|
+
right:auto;
|
36
|
+
bottom:0;
|
37
|
+
width:200px;
|
38
|
+
height:100%;
|
39
|
+
background:white;
|
40
|
+
box-shadow: 2px 0 4px rgba(50,50,50,0.8);
|
41
|
+
text-align: center;
|
42
|
+
box-sizing: border-box;
|
43
|
+
word-wrap: break-word;
|
44
|
+
|
45
|
+
}
|
20
|
-
#
|
46
|
+
#mail{
|
47
|
+
width:100%;
|
48
|
+
height:30px;
|
49
|
+
margin:8px auto;
|
50
|
+
}
|
21
|
-
|
51
|
+
#mail p{
|
52
|
+
width:150px;
|
53
|
+
height:32px;
|
54
|
+
line-height: 32px;
|
55
|
+
font-size:12px;
|
56
|
+
font-weight: bold;
|
57
|
+
border-radius: 5px;
|
58
|
+
margin:0px auto;
|
59
|
+
background: #45484d; /* Old browsers */
|
60
|
+
background: -moz-linear-gradient(top, #45484d 0%, #333 100%); /* FF3.6-15 */
|
61
|
+
background: -webkit-linear-gradient(top, #45484d 0%,#333 100%); /* Chrome10-25,Safari5.1-6 */
|
62
|
+
background: linear-gradient(to bottom, #45484d 0%,#333 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
63
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#333',GradientType=0 ); /* IE6-9 */
|
64
|
+
box-shadow: 1px 2px 5px black;
|
65
|
+
}
|
66
|
+
#mail p a{
|
67
|
+
width:100%;
|
68
|
+
height:100%;
|
69
|
+
display: inline-block;
|
70
|
+
color:white;
|
71
|
+
text-decoration: none;
|
72
|
+
}
|
22
|
-
#side_menu{
|
73
|
+
#side_menu{
|
23
|
-
|
74
|
+
width:100%;
|
24
|
-
height:
|
75
|
+
height:100%;
|
25
76
|
overflow-y: hidden;
|
77
|
+
box-sizing: border-box;
|
78
|
+
word-wrap: break-word;
|
79
|
+
position: relative;
|
80
|
+
|
26
|
-
}
|
81
|
+
}
|
27
|
-
```
|
28
|
-
###該当のソースコード
|
29
|
-
```CSS
|
30
|
-
#side_menu{
|
82
|
+
#side_menu::-webkit-scrollbar {
|
31
|
-
|
83
|
+
width: 5px;
|
32
|
-
height:
|
84
|
+
height:100px;
|
33
|
-
overflow-y: hidden;
|
34
|
-
}
|
85
|
+
}
|
86
|
+
#side_menu::-webkit-scrollbar-track {
|
87
|
+
background: white;
|
88
|
+
|
35
|
-
|
89
|
+
}
|
90
|
+
#side_menu::-webkit-scrollbar-thumb {
|
91
|
+
box-shadow: inset 0 0 2px rgba(50,50,50,0.4);
|
92
|
+
background-color: rgba(70, 70,70, 0.3);
|
93
|
+
height:100px;
|
94
|
+
|
95
|
+
}
|
96
|
+
#side_menu .side_wrapper h1{
|
97
|
+
width:100%;
|
98
|
+
height:60px;
|
99
|
+
line-height:60px;
|
100
|
+
margin:0 auto;
|
101
|
+
background: white;
|
102
|
+
border-bottom:0.5px solid rgba(137, 140, 142, 0.5);
|
103
|
+
}
|
104
|
+
|
36
|
-
#
|
105
|
+
#share_area{
|
106
|
+
width:90%;
|
107
|
+
height:35px;
|
108
|
+
margin:8px auto;
|
109
|
+
margin-bottom:10px;
|
110
|
+
}
|
37
|
-
|
111
|
+
#share_area .share_b{
|
112
|
+
width:30px;
|
113
|
+
height:30px;
|
114
|
+
float:left;
|
115
|
+
margin-right:5px;
|
116
|
+
margin-left:5px;
|
117
|
+
border-radius: 50%;
|
118
|
+
border:solid 1px g;
|
119
|
+
background: rgba(90, 208, 118, 0.9);
|
120
|
+
padding: 5px;
|
121
|
+
transition: all .3s ease;
|
122
|
+
overflow: hidden;
|
123
|
+
position: relative;
|
124
|
+
z-index: 0;
|
125
|
+
}
|
126
|
+
#share_area .share_b:first-child{
|
127
|
+
margin-left:20px;
|
128
|
+
}
|
129
|
+
#share_area .share_b:after{
|
130
|
+
display: inline-block;
|
131
|
+
content:'';
|
132
|
+
width:100%;
|
133
|
+
height:100%;
|
134
|
+
transform:rotateZ(140deg);
|
135
|
+
background:green;
|
136
|
+
position:absolute;
|
137
|
+
top:13px;
|
138
|
+
right:-13px;
|
139
|
+
z-index:-5;
|
140
|
+
opacity: 0.5;
|
141
|
+
|
142
|
+
}
|
143
|
+
#share_area .share_b img{
|
144
|
+
width:100%;
|
145
|
+
height:100%;
|
146
|
+
z-index: 3;
|
147
|
+
}
|
148
|
+
#share_area .share_b:hover{
|
149
|
+
opacity: 0.7;
|
150
|
+
transition: all .3s ease;
|
151
|
+
}
|
152
|
+
ul{
|
153
|
+
padding:0;
|
154
|
+
width:98%;
|
155
|
+
font-size: 12px;
|
156
|
+
margin:0 auto;
|
157
|
+
|
158
|
+
}
|
159
|
+
.sogo_list,.kategori_list,.gozyu_list{
|
160
|
+
width:100%;
|
161
|
+
list-style-type:none;
|
162
|
+
}
|
163
|
+
.sogo_list li,.kategori_list li,.gozyu_list li{
|
164
|
+
width:100%;
|
165
|
+
height: 35px;
|
166
|
+
line-height: 35px;
|
167
|
+
/*border-bottom:0.3px solid rgba(200, 200, 200, 0.7);*/
|
168
|
+
}
|
169
|
+
.sogo_list li a,.kategori_list li a,.gozyu_list li a{
|
170
|
+
text-decoration:none;
|
171
|
+
color:black;
|
172
|
+
display: inline-block;
|
173
|
+
width:100%;
|
174
|
+
height:100%;
|
175
|
+
transition:all .3s ease-out;
|
176
|
+
position: relative;
|
177
|
+
|
178
|
+
}
|
179
|
+
.sogo_list li:first-child,.kategori_list li:first-child,.gozyu_list li:first-child{
|
180
|
+
font-size:15px;
|
181
|
+
font-weight: 700;
|
182
|
+
height:40px;
|
183
|
+
line-height: 40px;
|
184
|
+
border-bottom:transparent;
|
185
|
+
background:rgba(90, 208, 118, 0.6);
|
186
|
+
color:white;
|
187
|
+
letter-spacing: 1.3px;
|
188
|
+
position: relative;
|
189
|
+
overflow: hidden;
|
190
|
+
text-shadow: 1px 2px 1px #333;
|
191
|
+
}
|
192
|
+
.sogo_list li:first-child::after,.kategori_list li:first-child:after,.gozyu_list li:first-child:after{
|
193
|
+
display: inline-block;
|
194
|
+
content:'';
|
195
|
+
width:120%;
|
196
|
+
height:120%;
|
197
|
+
transform:rotateZ(160deg);
|
198
|
+
background:green;
|
199
|
+
position:absolute;
|
200
|
+
top:15px;
|
201
|
+
right:-50px;
|
202
|
+
z-index: -5;
|
203
|
+
opacity: 0.7;
|
204
|
+
}
|
205
|
+
#side_menu ul li a:hover{
|
206
|
+
transition:all .3s ease-in;
|
207
|
+
background-color: rgba(220, 220, 220, 0.4);
|
208
|
+
}
|
209
|
+
#side_menu ul li a::after{
|
210
|
+
display: inline-block;
|
211
|
+
content: '';
|
212
|
+
position: absolute;
|
213
|
+
bottom:0;
|
214
|
+
left:0;
|
215
|
+
width:100%;
|
216
|
+
height:0px;
|
217
|
+
opacity: 0.4;
|
218
|
+
background: gray;
|
219
|
+
}
|
220
|
+
</style>
|
221
|
+
</head>
|
222
|
+
<body>
|
223
|
+
<nav>
|
224
|
+
<div id="side_menu">
|
225
|
+
<div class="bar"></div>
|
226
|
+
<div class="side_wrapper">
|
227
|
+
<h1>タイトル</h1>
|
228
|
+
</div>
|
229
|
+
<div id="share_area">
|
230
|
+
<div class="share_b"><a href=""><img src="../IMG/CONP/twitter.png"></a></div>
|
231
|
+
<div class="share_b"><a href=""><img src="../IMG/CONP/facebook.png"></a></div>
|
232
|
+
<div class="share_b"><a href=""><img src="../IMG/CONP/google.png"></a></div>
|
233
|
+
</div>
|
234
|
+
<div class="sogo_nav">
|
235
|
+
<ul class="sogo_list">
|
236
|
+
<li></li>
|
237
|
+
<li><a href=""></a></li>
|
238
|
+
<li><a href=""></a></li>
|
239
|
+
<li><a href=""></a></li>
|
240
|
+
<li><a href=""></a></li>
|
241
|
+
<li><a href=""></a></li>
|
242
|
+
</ul>
|
243
|
+
</div>
|
244
|
+
<div class="katgori_nav">
|
245
|
+
<ul class="kategori_list">
|
246
|
+
<li></li>
|
247
|
+
<li><a href=""></a></li>
|
248
|
+
<li><a href=""></a></li>
|
249
|
+
<li><a href=""></a></li>
|
250
|
+
<li><a href=""></a></li>
|
251
|
+
<li><a href=""></a></li>
|
252
|
+
</ul>
|
253
|
+
</div>
|
254
|
+
<div class="gozyu_nav">
|
255
|
+
<ul class="gozyu_list">
|
256
|
+
<li></li>
|
257
|
+
<li><a href=""></a></li>
|
258
|
+
<li><a href=""></a></li>
|
259
|
+
<li><a href=""></a></li>
|
260
|
+
<li><a href=""></a></li>
|
261
|
+
<li><a href=""></a></li>
|
262
|
+
<li><a href=""></a></li>
|
263
|
+
<li><a href=""></a></li>
|
264
|
+
<li><a href=""></a></li>
|
265
|
+
<li><a href=""></a></li>
|
266
|
+
<li><a href=""></a></li>
|
267
|
+
</ul>
|
268
|
+
</div>
|
269
|
+
<div id="mail"><p><a href="">お問い合わせ</a></p></div>
|
270
|
+
|
271
|
+
</div>
|
272
|
+
</nav>
|
273
|
+
|
38
274
|
<script>
|
39
275
|
var Nav = document.querySelector("#side_menu");
|
40
276
|
|
@@ -45,6 +281,8 @@
|
|
45
281
|
Nav.style.overflowY = "hidden";
|
46
282
|
},false);
|
47
283
|
</script>
|
284
|
+
</body>
|
285
|
+
</html>
|
48
286
|
|
49
287
|
|
50
288
|
```
|