Skip to content

HTML & CSS Basics practice - Done#225

Open
TetraMeister wants to merge 10 commits intodevmentor-pl:masterfrom
TetraMeister:master
Open

HTML & CSS Basics practice - Done#225
TetraMeister wants to merge 10 commits intodevmentor-pl:masterfrom
TetraMeister:master

Conversation

@TetraMeister
Copy link
Copy Markdown

W Task05 zrobilem troche inaczej jak w PDF potem poprawilem dlatego sa 2 proby (pierwsza nastapila przed przeczytaniem koncowki PDFa)

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Łukaszu,

Całość prezentuje się bardzo dobrze! 👍
Zostawiłem jedną drobną uwagę do BEM oraz do nazwy klas - to drugie może wynikać z "prostoty" zadania, ale wolałem zwrócić na to uwagę :)

Comment on lines +316 to +317
</footer>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

-o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

.parent--flexbox {
display: flex;
gap: 10px;
} No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

.dropdown-menu__list-item:hover > a,
.dropdown-menu__sublist-item:hover > a {
color: white;
} No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

<li class="nav__list-item"><a href="#">Home</a></li>
<li class="nav__list-item">
<a href="#">Items</a>
<ul class="dropdown-menu__list">
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeśli mamy BEM i mamy Element o nazwie "dropdown-menu__list", to gdzieś w strukturze powinniśmy mieć Block o nazwie "dropdown-menu". U Cibie go brakuje - można dodać do najbliższego li.

Tutaj przeczytasz więcej o BEM: https://devmentor.pl/b/metodologia-bem-w-css-i-sass

.footer__div {
height: 90%;
width: 250px;
} No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


<section class="first-section">
<article class="first-section__article">
<div class="first-section__div"></div>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Umieszczenie w klasie nazwy tagu nie jest najlepszym pomysłem. Często tagi ulegają zmianie i potem trzeba też nazwę klasy zmieniać. Ogólnie w programowaniu zasada jest taka, że zmiana w jednym miejscu nie powinna wymuszać zmiany w innym.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dzielenie kodu CSS na pliki w późniejszych materiałach będzie "wygodniejsze", obecnie brakuje nam narzędzi, ale w niedalekiej przyszłości już tak nie będzie ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants