-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7702f7b
commit f9cd450
Showing
7 changed files
with
265 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<style>body{display:flex;justify-content:center;background-color:#C74E4E}div{position:absolute;margin:82px;width:20px;height:20px;background:#FFF;border-radius:100px}div:after{content:"";width:20px;height:20px;background:#E0E246;position:absolute;margin-left:100px;border-radius:5px;box-shadow:25px 0 0 0 #E0E246,50px 0 0 0 #E0E246,75px 0 0 0 #E0E246,100px 0 0 0 #E0E246,100px 25px 0 0 #E0E246,100px 50px 0 0 #E0E246,100px 75px 0 0 #E0E246,100px 100px 0 0 #E0E246,75px 100px 0 0 #E0E246,50px 100px 0 0 #E0E246,25px 100px 0 0 #E0E246,0 100px 0 0 #E0E246,-25px 100px 0 0 #E0E246,-50px 100px 0 0 #E0E246,-75px 100px 0 0 #E0E246,-100px 100px 0 0 #E0E246} | ||
</style> | ||
<title>10CSS Battle</title> | ||
</head> | ||
<body> | ||
<div></div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>12_Cars</title> | ||
</head> | ||
<body> | ||
<div class="car-body"> | ||
<div class="handle"></div> | ||
<div class="top-car"> | ||
<div class="glass"></div> | ||
</div> | ||
</div> | ||
<div class="mirror"></div> | ||
<div class="light"></div> | ||
<div class="wheel"> | ||
<div class="wheel-circle"></div> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* http://meyerweb.com/eric/tools/css/reset/ | ||
v2.0 | 20110126 | ||
License: none (public domain) | ||
*/ | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
vertical-align: baseline; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
@import url(./resetCss.css); | ||
|
||
:root { | ||
--colorDarkDarkRed: #AA231F; | ||
--colorDarkRed: #E62325; | ||
--colorRed: #FF5C49; | ||
--colorSoftSoftRed: #FF806C; | ||
--colorSoftRed: #FBEAAE; | ||
--colorBlack: #343334; | ||
--colorWhite: #EAEAEA; | ||
} | ||
|
||
body { | ||
background-color: var(--colorSoftRed); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
.car-body { | ||
background-color: var(--colorRed); | ||
width: 350px; | ||
height: 91px; | ||
border-radius: 28px 28px 0px 0px; | ||
} | ||
|
||
.car-body::before { | ||
content: ''; | ||
position: absolute; | ||
width: 350px; | ||
height: 28px; | ||
margin-top: 70px; | ||
background-color: var(--colorSoftSoftRed); | ||
border-radius: 0px 0px 10.5px 10.5px; | ||
z-index: 2; | ||
} | ||
|
||
.wheel { | ||
background-color: var(--colorBlack); | ||
position: absolute; | ||
width: 84px; | ||
height: 84px; | ||
border-radius: 67px; | ||
z-index: 3; | ||
margin-top: 70px; | ||
margin-left: -199.5px; | ||
} | ||
|
||
.wheel:after { | ||
content: ""; | ||
background-color: var(--colorBlack); | ||
position: absolute; | ||
width: 84px; | ||
height: 84px; | ||
border-radius: 67px; | ||
z-index: 3; | ||
margin-left: 199.5px; | ||
} | ||
|
||
.wheel-circle { | ||
background-color: var(--colorWhite); | ||
position: absolute; | ||
width: 49px; | ||
height: 49px; | ||
z-index: 4; | ||
margin-top: 17.5px; | ||
margin-left: 17.5px; | ||
border-radius: 49px; | ||
} | ||
|
||
.wheel-circle:after { | ||
content: ""; | ||
background-color: var(--colorWhite); | ||
position: absolute; | ||
width: 49px; | ||
height: 49px; | ||
z-index: 4; | ||
margin-left: 199.5px; | ||
border-radius: 49px; | ||
} | ||
|
||
.light { | ||
background-color: var(--colorSoftRed); | ||
position: absolute; | ||
width: 28px; | ||
height: 21px; | ||
margin-top: -17.5px; | ||
margin-left: -322px; | ||
border-radius: 0px 0px 35px 0px; | ||
} | ||
|
||
.light:before { | ||
content: ""; | ||
background-color: var(--colorDarkDarkRed); | ||
position: absolute; | ||
width: 28px; | ||
height: 21px; | ||
margin-left: 322px; | ||
border-radius: 35px 0px 0px 35px; | ||
z-index: 5; | ||
} | ||
|
||
.mirror { | ||
background-color: var(--colorDarkRed); | ||
position: absolute; | ||
margin-top: -105px; | ||
margin-left: -147px; | ||
width: 31.5px; | ||
height: 21px; | ||
border-radius: 35px 17.5px 17.5px 0px; | ||
z-index: 5; | ||
} | ||
|
||
.top-car { | ||
position: absolute; | ||
border-bottom: 70px solid var(--colorRed); | ||
border-left: 17.5px solid transparent; | ||
border-right: 17.5px solid transparent; | ||
height: 0; | ||
width: 175px; | ||
height: 70px; | ||
margin-top: -140px; | ||
margin-left: 77px; | ||
z-index: 3; | ||
} | ||
|
||
.glass { | ||
border-bottom: 52.5px solid var(--colorSoftRed); | ||
border-left: 17.5px solid transparent; | ||
margin-top: 35px; | ||
width: 66.5px; | ||
height: 52.5px; | ||
} | ||
|
||
.glass:after { | ||
content: ""; | ||
position: absolute; | ||
border-bottom: 52.5px solid var(--colorSoftRed); | ||
border-right: 17.5px solid transparent; | ||
margin-left: 84px; | ||
width: 56px; | ||
height: 52.5px; | ||
} | ||
|
||
.handle { | ||
background-color: var(--colorDarkRed); | ||
position: absolute; | ||
margin-top: 14px; | ||
margin-left: 150.5px; | ||
width: 17.5px; | ||
height: 10.5px; | ||
} | ||
|
||
.handle:after { | ||
content: ""; | ||
background-color: var(--colorDarkRed); | ||
position: absolute; | ||
margin-left: 105.5px; | ||
width: 17.5px; | ||
height: 10.5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters