質問編集履歴
1
訂正箇所を直しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,7 +30,59 @@
|
|
30
30
|
</div><!-- /.history-Savoia__first-text -->
|
31
31
|
</div><!-- /.history-savoia__first__inner-->
|
32
32
|
```
|
33
|
+
```scss
|
34
|
+
.history-savoia__first__inner {
|
35
|
+
display: flex;
|
33
36
|
|
37
|
+
// 年号
|
38
|
+
.history-savoa__item-year {
|
39
|
+
margin-right: 20px;
|
40
|
+
display: flex;
|
41
|
+
flex-direction: column;
|
42
|
+
justify-content: space-between;
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
.history__year {
|
47
|
+
border: 1px solid $color-blue;
|
48
|
+
color: $color-blue;
|
49
|
+
padding: 0 10px;
|
50
|
+
width: 100%;
|
51
|
+
max-width: 105px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.history__year__num {
|
55
|
+
display: inline-block;
|
56
|
+
font-size: clamp(14px, 3vw, 26px);
|
57
|
+
line-height: 1.7;
|
58
|
+
}
|
59
|
+
|
60
|
+
.history__year__year {
|
61
|
+
font-size: clamp(12px, 3vw, 16px);
|
62
|
+
display: inline-block;
|
63
|
+
}
|
64
|
+
|
65
|
+
// 年号の縦線
|
66
|
+
.history__year-last {
|
67
|
+
position: relative;
|
68
|
+
|
69
|
+
&::before {
|
70
|
+
content: "";
|
71
|
+
display: inline-block;
|
72
|
+
width: 3px;
|
73
|
+
height: 660px;
|
74
|
+
background-color: $color-blue;
|
75
|
+
position: absolute;
|
76
|
+
top: -660px;
|
77
|
+
left: 50%;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
}
|
84
|
+
```
|
85
|
+
|
34
86
|
### 試したこと
|
35
87
|
|
36
88
|
ネットで調べたがわからなかった。
|