Skip to content

Commit ca0c807

Browse files
authored
Finished ID selectors
1 parent 89c46c8 commit ca0c807

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@
136136
* Harry Roberts' [BEM-ის შესავალი](http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/)
137137

138138
We recommend a variant of BEM with PascalCased “blocks”, which works particularly well when combined with components (e.g. React). Underscores and dashes are still used for modifiers and children.
139+
რეკომენდაციას ვუწევთ BEM-ის და PascalCased ბლოკების სინთეზის ვარიანტს, რომელიც განსაკუთრებულად კარგად მუშაობს კომპონენტებთან(მაგ. რეაქთ) კომბინაციის შემთხვევაში. ქვედა ტირეები და ტირეები კვლავინდებურად გამოიყენება მოდიფიკატორებსა და შვილებთან.
139140

140-
**Example**
141+
**მაგალითი**
141142

142143
```jsx
143144
// ListingCard.jsx
@@ -164,15 +165,15 @@ function ListingCard() {
164165
.ListingCard__content { }
165166
```
166167

167-
* `.ListingCard` is the “block” and represents the higher-level component
168-
* `.ListingCard__title` is an “element” and represents a descendant of `.ListingCard` that helps compose the block as a whole.
169-
* `.ListingCard--featured` is a “modifier” and represents a different state or variation on the `.ListingCard` block.
168+
* `.ListingCard` არის ბლოკი და წარმოადგენს ყველაზე ზედა დონის კომპონენტს
169+
* `.ListingCard__title` არის ელემენტი და წარმოადგენს `.ListingCard`-ის შთამომავალს რომელიც მონაწილეობს მთლიანი ბლოკის შექმნაში.
170+
* `.ListingCard--featured` არის მოდიფიკატორი რომელიც წარმოადგენს `.ListingCard` ბლოკის ერთ-ერთ ვარიაციას ან მდგომარეობას.
170171

171-
### ID selectors
172+
### ID სელექტორები
172173

173-
While it is possible to select elements by ID in CSS, it should generally be considered an anti-pattern. ID selectors introduce an unnecessarily high level of [specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) to your rule declarations, and they are not reusable.
174+
მიუხედავად იმისა რომ CSS-ში ელემენტების დასელექთება შესაძლებელია ID-ს მეშვეობით, ეს მიდგომა ზოგადად მიჩნეულია როგორც ცუდი პრაქტიკა. ID სელექტორებს შემოაქვთ ზედმეტად მაღალი დონის [სპეციფიკურობა](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) ინსტრუქციებში და მათი ხელახლა გამოყენება შეუძლებელია.
174175

175-
For more on this subject, read [CSS Wizardry's article](http://csswizardry.com/2014/07/hacks-for-dealing-with-specificity/) on dealing with specificity.
176+
სპეციფიკურობასთან დაკავშირებით დამატებითი ინფორმაციისთვის წაიკითხეთ [CSS Wizardry-ს სტატის](http://csswizardry.com/2014/07/hacks-for-dealing-with-specificity/)
176177

177178
### JavaScript hooks
178179

0 commit comments

Comments
 (0)