質問編集履歴
1
sass・compassで記述したものを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,7 +54,59 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
+
sass・compassでは下記のように記述しています。
|
57
58
|
|
59
|
+
```sass・compass
|
60
|
+
|
61
|
+
.loop-article{
|
62
|
+
|
63
|
+
padding-bottom: 40px;
|
64
|
+
|
65
|
+
@include display-flex();
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
.thumbnail-box{
|
70
|
+
|
71
|
+
background-position: 50% 50%;
|
72
|
+
|
73
|
+
background-repeat: no-repeat;
|
74
|
+
|
75
|
+
background-size: cover;
|
76
|
+
|
77
|
+
@include align-self(flex-start);
|
78
|
+
|
79
|
+
@include flex-basis(45%);
|
80
|
+
|
81
|
+
margin-right: 25px;
|
82
|
+
|
83
|
+
&:before{
|
84
|
+
|
85
|
+
content:'';
|
86
|
+
|
87
|
+
display: block;
|
88
|
+
|
89
|
+
padding-top: 60%;
|
90
|
+
|
91
|
+
@include box-sizing(border-box);
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
.text-box{
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
```
|
58
110
|
|
59
111
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
60
112
|
|