Skip to content

Commit

Permalink
Прячет невидимый заголовок разделов надёжнее (#1270)
Browse files Browse the repository at this point in the history
* Прячет невидимый заголовок разделов надёжнее

* Обнуляет `margin-top`
  • Loading branch information
TatianaFokina authored Jun 4, 2024
1 parent 2008eef commit 0b7c400
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/styles/blocks/index-block.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@
}

.index-block__title {
position: relative;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 10px;
height: auto;
font-size: var(--font-size-xl);
line-height: var(--font-line-height-xl);
font-weight: normal;
white-space: initial;
overflow: unset;
clip-path: unset;
clip: unset;
}

.index-block__description {}
Expand Down Expand Up @@ -99,7 +107,15 @@

.index-block__title {
position: absolute;
opacity: 0;
margin: -1px;
clip-path: inset(50%);
clip: rect(0 0 0 0);
overflow: hidden;
width: 1px;
height: 1px;
border: 0;
padding: 0;
white-space: nowrap;
}

.index-block__description {}
Expand Down

0 comments on commit 0b7c400

Please sign in to comment.