Skip to content

Commit

Permalink
https://github.com/cabinetsbay/site/issues/138
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 20, 2024
1 parent f685a1f commit f15a954
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,24 @@
// https://github.com/cabinetsbay/site/issues/119
// 2024-04-20 "Improve frontend titles": https://github.com/cabinetsbay/site/issues/138
h1, h2, h3, h4 {font-weight: bold;}
h1.page-title {font-weight: 300;}
h1.page-title {
font-weight: 300;
// 2024-04-20 Dmitrii Fediuk https://upwork.com/fl/mage2pro
// 1) It is `40px` in `Magento/blank`:
// 1.1)
// .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
// h1 {
// .lib-css(font-size, @h1__font-size-desktop);
// .lib-css(margin-bottom, @h1__margin-bottom__desktop);
// }
// }
// https://github.com/magento/magento2/blob/2.4.4/app/design/frontend/Magento/blank/web/css/source/_typography.less#L44-L53
// 1.2) @h1__margin-bottom__desktop: @indent__xl;
// https://github.com/magento/magento2/blob/2.4.4/app/design/frontend/Magento/blank/Magento_Theme/web/css/source/_module.less#L42
// 1.3) @indent__xl: @indent__base * 2; // 40px
// https://github.com/magento/magento2/blob/2.4.4/lib/web/css/source/lib/variables/_typography.less#L73
margin: 0;
}
.cms-page-view h1.page-title {margin-bottom: .5em;}
.product-info-main h1 {
font-weight: bold;
Expand Down

0 comments on commit f15a954

Please sign in to comment.