teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

sass を css に

2017/07/22 02:58

投稿

bouyomisan
bouyomisan

スコア87

title CHANGED
File without changes
body CHANGED
@@ -25,37 +25,43 @@
25
25
 
26
26
  ```css
27
27
 
28
- .news_list
28
+ .news_list {
29
- max-height: 220px
29
+ max-height: 220px;
30
- width: 660px
30
+ width: 660px;
31
- margin-bottom: 30px
31
+ margin-bottom: 30px;
32
- list-style: none
32
+ list-style: none;
33
- background: grey
33
+ background: grey;
34
- overflow-y: auto
34
+ overflow-y: auto;
35
+ }
36
+ .news_item {
37
+ height: 50px;
38
+ }
35
39
 
36
- .news_item
37
- height: 50px
38
-
39
- .news_item a
40
+ .news_item a{
40
41
  display: block
42
+ }
41
43
 
42
- .news_item:nth-last-child(even)
44
+ .news_item:nth-last-child(even){
43
- background: blueviolet
45
+ background: blueviolet;
46
+ }
44
47
 
45
- .news_item_time
48
+ .news_item_time {
46
- display: inline-block
49
+ display: inline-block;
47
- width: 15%
50
+ width: 15%;
51
+ }
48
52
 
49
- .news_item_category
53
+ .news_item_category {
50
- display: inline-block
54
+ display: inline-block;
51
- width: 8%
55
+ width: 8%;
52
- border-radius: 5px
56
+ border-radius: 5px;
53
- background-color: beige
57
+ background-color: beige;
54
- text-align: center
58
+ text-align: center;
55
- line-height: 40px
59
+ line-height: 40px;
56
- vertical-align: middle
60
+ vertical-align: middle;
61
+ }
57
62
 
58
- .news_item_ttl
63
+ .news_item_ttl {
59
- width: 75%
64
+ width: 75%;
60
- margin-left: 100px
65
+ margin-left: 100px;
66
+ }
61
67
  ```