Skip to content

Commit

Permalink
new ep
Browse files Browse the repository at this point in the history
  • Loading branch information
realtux committed Feb 27, 2022
1 parent 51ca29b commit b036dfe
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 155/notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tips:
- use less or sass
- considering using a component type framework
e.g. react, vue.js, angular, polymer, and others
- use scoped css
- use consistent naming
- use tables only for tabular data
- avoid deprecated html elements
- use open graph meta tags
5 changes: 5 additions & 0 deletions 155/scoped.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="section1">
<h2 class="header"></h2>
<span class="description"></span>
<img class="avatar" src="dog.png" />
</div>
11 changes: 11 additions & 0 deletions 155/scoped.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.section1 {
.header {
font-weight: bold;
}
.description {

}
img {

}
}
11 changes: 11 additions & 0 deletions 155/style.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.outer {
h2 {
font-size: 40px;
}
}

// becomes

.outer h2 {
font-size: 40px;
}

0 comments on commit b036dfe

Please sign in to comment.