-
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.
Merge pull request #2 from moi0dodyr/rsschool-cv-html
HTML, CSS & Git Basics
- Loading branch information
Showing
3 changed files
with
116 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
https://moi0dodyr.github.io/rsschool-cv/cv | ||
https://moi0dodyr.github.io/rsschool-cv/cv | ||
https://moi0dodyr.github.io/rsschool-cv/ |
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,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Hello, world!</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<meta name="description" content="" /> | ||
<link rel="icon" href="favicon.png"> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<h1>Hello, world!</h1> | ||
</body> | ||
</html> |
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,100 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
html, body { | ||
min-height: 100%; | ||
background: #fff; | ||
color: #000; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
/* sets the body height of the browser, so that backgrounds and div heights work correctly. Color and background will almost certainly be altered; they are just placeholders */ | ||
|
||
body { | ||
font-size: 1.4rem; | ||
text-rendering: optimizeLegibility; | ||
} | ||
/* sets the base font size for the document; turns on kerning pairs and ligatures */ | ||
|
||
body, ul, ol, dl { | ||
margin: 0; | ||
} | ||
article, aside, audio, | ||
footer, header, nav, section, video { | ||
display: block; | ||
} | ||
|
||
/* ensures that older browsers will display HTML5 elements correctly */ | ||
|
||
h1 { | ||
font-size: 1.4rem; | ||
} | ||
/* begins to set up font sizes relative to base rem – h1 has been used as an example */ | ||
|
||
p { | ||
-ms-word-break: break-all; | ||
word-break: break-all; | ||
word-break: break-word; | ||
-moz-hyphens: auto; | ||
-webkit-hyphens: auto; | ||
-ms-hyphens: auto; | ||
hyphens: auto; | ||
} | ||
/* sets hyphenation by default on paragraphs */ | ||
|
||
textarea { | ||
resize: vertical; | ||
} | ||
/* changes textarea resizing from "both" (UA default) to vertical only */ | ||
|
||
table { border-collapse: collapse; } | ||
td { | ||
padding: .5rem; | ||
} | ||
/* causes tables to actually look like tables */ | ||
|
||
img { | ||
border: none; | ||
max-width: 100%; | ||
} | ||
/* removes outlines from linked images (for older browsers and IE), sets up images for responsive design layout */ | ||
|
||
input[type="submit"]::-moz-focus-inner, | ||
input[type="button"]::-moz-focus-inner { | ||
border : 0px; | ||
} | ||
/* removes the inner border effect from focused buttons for form elements in Firefox */ | ||
|
||
input[type="search"] { | ||
-webkit-appearance: textfield; | ||
} | ||
input[type="submit"] { | ||
-webkit-appearance:none; | ||
} | ||
/* removes the OS X appearance from HTML5 search inputs and submit buttons when viewed in Safari */ | ||
|
||
input:required:after { | ||
color: #f00; | ||
content: " *"; | ||
} | ||
/* sets up required form fields with the conventional following red asterix */ | ||
input[type="email"]:invalid { | ||
background: #f00; | ||
} | ||
/* causes a visual alert in browsers that do client-side checking of HTML5 email field – this may already be the default in some browsers. */ | ||
|
||
.right { | ||
float: right; | ||
margin-left: 2rem; | ||
clear: right; | ||
} | ||
.left { | ||
float: left; | ||
margin-right: 2rem; | ||
clear: left; | ||
} | ||
/* allows a quick shortcut for floating elements left and right while avoiding the “float quirk” problem */ | ||
|
||
sub, sup { | ||
line-height: 0; | ||
} | ||
/* sets superscript and subscript text so that it doesn't throw off leading for elements in which they are included */ |