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

質問編集履歴

1

SCSSを記載していましたがコンパイル後のCSSを記載してます。

2021/02/04 11:56

投稿

TMTN
TMTN

スコア53

title CHANGED
File without changes
body CHANGED
@@ -63,7 +63,7 @@
63
63
  </html>
64
64
 
65
65
  ```
66
- ```SCSS
66
+ ```CSS
67
67
  /* <====== 全体共通 ======> */
68
68
 
69
69
  * {
@@ -106,14 +106,8 @@
106
106
  font-family: "Caveat", cursive;
107
107
  }
108
108
 
109
- /* <====== 変数 ======> */
110
109
 
111
- $main-bg-color: rgba(102, 89, 89, 0.281);
112
- $main-color-w: rgb(255, 255, 255);
113
- $main-color-b: rgb(0, 0, 0);
114
-
115
110
  /* <====== works ======> */
116
-
117
111
  h2#works {
118
112
  padding-top: 12rem;
119
113
  margin-top: -8rem;
@@ -122,42 +116,54 @@
122
116
  .works-inner {
123
117
  width: 100%;
124
118
  height: 45rem;
119
+ -webkit-box-orient: vertical;
120
+ -webkit-box-direction: normal;
121
+ -ms-flex-direction: column;
125
- flex-direction: column;
122
+ flex-direction: column;
123
+ }
126
124
 
127
- .works-inner-items {
125
+ .works-inner .works-inner-items {
128
- width: 90%;
126
+ width: 90%;
129
- height: 40rem;
127
+ height: 40rem;
130
- margin-top: 8rem;
128
+ margin-top: 8rem;
131
- position: relative;
129
+ position: relative;
132
- z-index: -1;
130
+ z-index: -1;
131
+ -webkit-box-orient: vertical;
132
+ -webkit-box-direction: normal;
133
+ -ms-flex-direction: column;
133
- flex-direction: column;
134
+ flex-direction: column;
135
+ }
134
136
 
135
- &::after {
137
+ .works-inner .works-inner-items::after {
136
- width: 100%;
138
+ width: 100%;
137
- height: 40rem;
139
+ height: 40rem;
138
- content: "";
140
+ content: "";
139
- position: absolute;
141
+ position: absolute;
140
- left: 0rem;
142
+ left: 0rem;
141
- top: 1rem;
143
+ top: 1rem;
144
+ -webkit-transform: skewY(-5deg);
142
- transform: skewY(-5deg);
145
+ transform: skewY(-5deg);
146
+ -webkit-transform-origin: bottom left;
143
- transform-origin: bottom left;
147
+ transform-origin: bottom left;
144
- z-index: -1;
148
+ z-index: -1;
145
- background: $main-color-b;
149
+ background: black;
146
- }
150
+ }
147
151
 
148
- .work-font {
152
+ .works-inner .works-inner-items .work-font {
149
- font-size: 1.5rem;
153
+ font-size: 1.5rem;
150
- color: $main-color-w;
154
+ color: white;
151
- position: relative!important;
155
+ }
152
156
 
153
- .work-arrow {
157
+ .works-inner .works-inner-items .work-font a {
154
- color: $main-color-w;
158
+ position: relative;
155
- padding: 1rem;
159
+ z-index: 10000;
156
- }
157
- }
158
- }
159
160
  }
160
161
 
162
+ .works-inner .works-inner-items .work-font .work-arrow {
163
+ color: white;
164
+ padding: 1rem;
165
+ }
166
+
161
167
  .work-hover:hover {
162
168
  cursor: pointer;
163
169
  }