Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request #631

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions foundations/cascade/01-cascade-fix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
</div>
</body>
</html>
<!--Finishing the Request-->
6 changes: 3 additions & 3 deletions foundations/cascade/01-cascade-fix/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body {
font-weight: 800;
}

.small-para {
p.small-para {
font-size: 14px;
font-weight: 800;
}
Expand All @@ -23,13 +23,13 @@ body {
font-weight: bold;
}

.button {
.button #cancel {
background-color: rgb(255, 255, 255);
color: rgb(0, 0, 0);
font-size: 20px;
}

.child {
.text.child {
color: rgb(0, 0, 0);
font-weight: 800;
font-size: 14px;
Expand Down
12 changes: 6 additions & 6 deletions foundations/intro-to-css/02-class-id-selectors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>Number 1 - I'm a class!</p>
<div>Number 2 - I'm one ID.</div>
<p>Number 3 - I'm a class, but cooler!</p>
<div>Number 4 - I'm another ID.</div>
<p>Number 5 - I'm a class!</p>
<p class="odd">Number 1 - I'm a class!</p>
<div id="one">Number 2 - I'm one ID.</div>
<p class="odd one">Number 3 - I'm a class, but cooler!</p>
<div class="odd two">Number 4 - I'm another ID.</div>
<p class="odd">Number 5 - I'm a class!</p>
</body>
</html>
</html>
16 changes: 16 additions & 0 deletions foundations/intro-to-css/02-class-id-selectors/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.odd{
background-color: lightpink;
font-family: "Verdana", "DejaVu sans", sans serif;
}
#one{
color: rgb(0, 0, 255);
font-size: 36px;
}
.odd.one{
font-size: 24px;
}
.odd.two{
background-color: lightgreen;
font-weight: bold;
}

4 changes: 2 additions & 2 deletions foundations/intro-to-css/03-grouping-selectors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<button>Click Me!</button>
<button>No, Click Me!</button>
<button class="first cls">Click Me!</button>
<button class="second cls">No, Click Me!</button>
</body>
</html>
11 changes: 11 additions & 0 deletions foundations/intro-to-css/03-grouping-selectors/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.first{
background-color: #000000;
color: #FFFFFF;
}
.second{
background-color: yellow;
}
cls{
font-size: 28px;
font-family: "Helvetica", "Times New Roman", "Sans-serif";
}
10 changes: 9 additions & 1 deletion foundations/intro-to-css/04-chaining-selectors/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/* Add CSS Styling */
/* Add CSS Styling */
.avatar.proportioned{
width: 300px;
height: auto;
}
.avatar.distorted{
width: 200px;
height: 400px;
}
3 changes: 2 additions & 1 deletion foundations/intro-to-css/05-descendant-combinator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
<p class="text">This should be styled.</p>
</div>
</body>
</html>
</html>
<!--Finishing -->
6 changes: 6 additions & 0 deletions foundations/intro-to-css/05-descendant-combinator/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
div p{
background-color: yellow;
color: red;
font-size: 20px;
text-align: center;
}