Skip to content
Merged
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
15 changes: 15 additions & 0 deletions color.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>
Expand Down
15 changes: 15 additions & 0 deletions css-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>
Expand Down
16 changes: 16 additions & 0 deletions flex-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,25 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>

<div id="content">

<!--Flex box visualizer-->
Expand Down
16 changes: 16 additions & 0 deletions flex-justify-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,25 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>

<div id="content">

<div class="visualizer">
Expand Down
15 changes: 15 additions & 0 deletions grid-extended.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>
Expand Down
21 changes: 18 additions & 3 deletions grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>
Expand All @@ -20,7 +35,7 @@
<div class="controls">
<label for="gridTemplateColumns">Grid Template Columns:</label>
<select id="gridTemplateColumns">
<option value="" hidden selected hidden >Select a value</option>
<option value="" hidden selected>Select a value</option>
<option value="100px 100px 100px">100px 100px 100px</option>
<option value="1fr 2fr 1fr">1fr 2fr 1fr</option>
<option value="repeat(3, 100px)">repeat(3, 100px)</option>
Expand All @@ -34,7 +49,7 @@
<div class="controls">
<label for="gridTemplateRows">Grid Template Rows:</label>
<select id="gridTemplateRows">
<option value="" hidden selected hidden >Select a value</option>
<option value="" hidden selected>Select a value</option>
<option value="100px 100px">100px 100px</option>
<option value="1fr 2fr">1fr 2fr</option>
<option value="repeat(2, 100px)">repeat(2, 100px)</option>
Expand All @@ -48,7 +63,7 @@
<div class="controls">
<label for="gridColumnGap">Grid Column Gap:</label>
<select id="gridColumnGap">
<option value="" hidden selected hidden >Select a value</option>
<option value="" hidden selected>Select a value</option>
<option value="5px">5px</option>
<option value="10px">10px</option>
<option value="15px">15px</option>
Expand Down
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,26 @@
<meta name="twitter:creator" content="@fahdi">
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>

<div id="content">
<div id="css-rule-display">
<pre>Hover over the boxes below to see CSS effects!</pre>
Expand Down
10 changes: 10 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions nth-child.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@
</head>
<body>

<header style="text-align: center">
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<svg width="150" height="40" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#FFF"/>
<text x="4" y="27" font-family="Arial" font-size="25" fill="#333">{ &nbsp; &nbsp;}</text>
<text x="14" y="25" font-family="Arial" font-size="12" font-weight="700" fill="#333">CSS</text>
<text x="52" y="25" font-family="Arial" font-size="10" font-weight="500" fill="#333">VISUAL LEARNER</text>
</svg>
</header>

<div id="sidebar">

</div>
Expand Down
6 changes: 0 additions & 6 deletions sidebar.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<button class="hamburger-menu" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</button>

<div class="main-sidebar" id="main-sidebar">
<button class="close-btn" onclick="toggleSidebar()">&times;</button>
<div class="sidebar-header">
Expand Down
27 changes: 21 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ body {
font-size: 14px;
}

#sidebar {
width: 250px;
height: 20px;
}

#content {
margin: 10px 270px 10px 270px;
padding: 20px;
Expand Down Expand Up @@ -34,14 +39,13 @@ body {
background-color: #f4f4f4;
text-align: left;
min-height: 100px;
position: fixed;
top: 3px;
position: relative;
scroll-behavior: smooth;
width: calc(100% - 50px)
}

.interactive-elements {
margin-top: 120px;
margin-top: 20px;
}

.interactive-element {
Expand Down Expand Up @@ -119,18 +123,22 @@ ul.selector-visualizer {
flex-direction: column;
}

#sidebar {
width: 100%;
height: 20px;
}

#content {
width: 100%;
margin: 10px;
padding: 10px;
}

.interactive-elements {
margin-top: 200px;
margin-top: 20px;
}

#css-rule-display {
top: 100px;
width: inherit;
}
}
Expand Down Expand Up @@ -178,7 +186,7 @@ ul.selector-visualizer {
@media (max-width: 768px) {
.main-sidebar {
width: 100%;
height: auto;
height: 100vh;
position: relative;
border-right: none;
border-bottom: 1px solid #ddd;
Expand All @@ -192,6 +200,9 @@ ul.selector-visualizer {
border-radius: 3px;
border: 1px solid #ddd;
margin: 10px;
position: absolute;
top: 10px;
left: 10px;
}

.hamburger-menu span {
Expand Down Expand Up @@ -238,3 +249,7 @@ ul.selector-visualizer {
.close-btn:hover {
color: #666;
}

header {
margin-top: 30px;
}
4 changes: 1 addition & 3 deletions styles/cssbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
justify-content: center;
align-items: center;
align-content: center;
height: 90vh;

}

:root {
Expand Down Expand Up @@ -141,7 +139,7 @@

#box-model::after {
content: "width = 300px";
color: #AAAAAA;
color: #aaaaaa;
font-weight: 300;
position: absolute;
width: var(--width);
Expand Down