質問編集履歴
2
左カラムと右カラムのcss追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,57 @@
|
|
11
11
|

|
12
12
|
|
13
13
|
### 該当のソースコード
|
14
|
+
・左カラムと右カラム
|
15
|
+
```
|
16
|
+
// マイページ全体
|
17
|
+
.user-showPage {
|
18
|
+
background-color: #f5f5f5;
|
19
|
+
&__main {
|
20
|
+
padding: 50px 120px;
|
21
|
+
display: flex;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// サイドバー上部
|
25
|
+
.sideBar-Top {
|
26
|
+
width: 400px;
|
27
|
+
background-color: #ffffff;
|
28
|
+
}
|
29
|
+
.sideBar-contents li {
|
30
|
+
position: relative;
|
31
|
+
height: 50px;
|
32
|
+
border-bottom: groove 1px;
|
33
|
+
background-color: #ffffff;
|
34
|
+
a {
|
35
|
+
text-decoration: none;
|
36
|
+
font-size: 18px;
|
37
|
+
color: black;
|
38
|
+
line-height: 50px;
|
39
|
+
padding-left: 15px;
|
40
|
+
position: absolute;
|
41
|
+
display: block;
|
42
|
+
top: 0;
|
43
|
+
left: 0;
|
44
|
+
width: 100%;
|
45
|
+
height: 100%;
|
46
|
+
cursor: pointer;
|
47
|
+
transition: all 0.3s ease 0s;
|
48
|
+
}
|
49
|
+
a:hover {
|
50
|
+
opacity: 0.6;
|
51
|
+
background: #333;
|
52
|
+
color: #fff;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// サイドバー下部
|
57
|
+
.sideBar-Low {
|
58
|
+
h2 {
|
59
|
+
font-size: 24px;
|
60
|
+
font-weight: bold;
|
61
|
+
padding-top: 30px;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
```
|
14
65
|
親要素
|
15
66
|
```
|
16
67
|
.main-information
|
1
親要素、子要素のHTMLの記述
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,6 +13,13 @@
|
|
13
13
|
### 該当のソースコード
|
14
14
|
親要素
|
15
15
|
```
|
16
|
+
.main-information
|
17
|
+
- if current_page?(logout_index_path)
|
18
|
+
.logout-btn
|
19
|
+
= link_to "ログアウト", "/"
|
20
|
+
```
|
21
|
+
|
22
|
+
```
|
16
23
|
.main-information {
|
17
24
|
width: 100%;
|
18
25
|
height: auto;
|
@@ -22,6 +29,12 @@
|
|
22
29
|
```
|
23
30
|
子要素
|
24
31
|
```
|
32
|
+
.user-showPage
|
33
|
+
.user-showPage__main
|
34
|
+
= render "users/side_bar"
|
35
|
+
= render "users/main_information"
|
36
|
+
```
|
37
|
+
```
|
25
38
|
.logout-btn {
|
26
39
|
position: relative;
|
27
40
|
width: 300px;
|