質問編集履歴
2
左カラムと右カラムのcss追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,108 @@
|
|
24
24
|
|
25
25
|
### 該当のソースコード
|
26
26
|
|
27
|
+
・左カラムと右カラム
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
// マイページ全体
|
32
|
+
|
33
|
+
.user-showPage {
|
34
|
+
|
35
|
+
background-color: #f5f5f5;
|
36
|
+
|
37
|
+
&__main {
|
38
|
+
|
39
|
+
padding: 50px 120px;
|
40
|
+
|
41
|
+
display: flex;
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
// サイドバー上部
|
48
|
+
|
49
|
+
.sideBar-Top {
|
50
|
+
|
51
|
+
width: 400px;
|
52
|
+
|
53
|
+
background-color: #ffffff;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
.sideBar-contents li {
|
58
|
+
|
59
|
+
position: relative;
|
60
|
+
|
61
|
+
height: 50px;
|
62
|
+
|
63
|
+
border-bottom: groove 1px;
|
64
|
+
|
65
|
+
background-color: #ffffff;
|
66
|
+
|
67
|
+
a {
|
68
|
+
|
69
|
+
text-decoration: none;
|
70
|
+
|
71
|
+
font-size: 18px;
|
72
|
+
|
73
|
+
color: black;
|
74
|
+
|
75
|
+
line-height: 50px;
|
76
|
+
|
77
|
+
padding-left: 15px;
|
78
|
+
|
79
|
+
position: absolute;
|
80
|
+
|
81
|
+
display: block;
|
82
|
+
|
83
|
+
top: 0;
|
84
|
+
|
85
|
+
left: 0;
|
86
|
+
|
87
|
+
width: 100%;
|
88
|
+
|
89
|
+
height: 100%;
|
90
|
+
|
91
|
+
cursor: pointer;
|
92
|
+
|
93
|
+
transition: all 0.3s ease 0s;
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
a:hover {
|
98
|
+
|
99
|
+
opacity: 0.6;
|
100
|
+
|
101
|
+
background: #333;
|
102
|
+
|
103
|
+
color: #fff;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
// サイドバー下部
|
112
|
+
|
113
|
+
.sideBar-Low {
|
114
|
+
|
115
|
+
h2 {
|
116
|
+
|
117
|
+
font-size: 24px;
|
118
|
+
|
119
|
+
font-weight: bold;
|
120
|
+
|
121
|
+
padding-top: 30px;
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
}
|
126
|
+
|
127
|
+
```
|
128
|
+
|
27
129
|
親要素
|
28
130
|
|
29
131
|
```
|
1
親要素、子要素のHTMLの記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,6 +28,20 @@
|
|
28
28
|
|
29
29
|
```
|
30
30
|
|
31
|
+
.main-information
|
32
|
+
|
33
|
+
- if current_page?(logout_index_path)
|
34
|
+
|
35
|
+
.logout-btn
|
36
|
+
|
37
|
+
= link_to "ログアウト", "/"
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
```
|
44
|
+
|
31
45
|
.main-information {
|
32
46
|
|
33
47
|
width: 100%;
|
@@ -43,6 +57,18 @@
|
|
43
57
|
```
|
44
58
|
|
45
59
|
子要素
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
.user-showPage
|
64
|
+
|
65
|
+
.user-showPage__main
|
66
|
+
|
67
|
+
= render "users/side_bar"
|
68
|
+
|
69
|
+
= render "users/main_information"
|
70
|
+
|
71
|
+
```
|
46
72
|
|
47
73
|
```
|
48
74
|
|