Просмотр исходного кода

Include `font-feature-settings` directly inside DM Mono font-face to make sure we don't forget it if we're using DM Mono in the future

GitOrigin-RevId: c3ece8af3ee683d351546daa98a9f134fa8548a6
M Fahru 2 лет назад
Родитель
Сommit
ec33ca9bff

+ 6 - 0
services/web/frontend/fonts/dm-mono.css

@@ -1,5 +1,6 @@
 @font-face {
   font-family: 'DM Mono';
+  font-feature-settings: 'ss05';
   font-style: normal;
   font-weight: 300;
   src: url('dm-mono/DMMono-Light.woff2') format('woff2'),
@@ -7,6 +8,7 @@
 
 @font-face {
   font-family: 'DM Mono';
+  font-feature-settings: 'ss05';
   font-style: italic;
   font-weight: 300;
   src: url('dm-mono/DMMono-LightItalic.woff2') format('woff2'),
@@ -14,6 +16,7 @@
 
 @font-face {
   font-family: 'DM Mono';
+  font-feature-settings: 'ss05';
   font-style: normal;
   font-weight: 400;
   src: url('dm-mono/DMMono-Regular.woff2') format('woff2'),
@@ -21,6 +24,7 @@
 
 @font-face {
   font-family: 'DM Mono';
+  font-feature-settings: 'ss05';
   font-style: italic;
   font-weight: 400;
   src: url('dm-mono/DMMono-Italic.woff2') format('woff2'),
@@ -28,6 +32,7 @@
 
 @font-face {
   font-family: 'DM Mono';
+  font-feature-settings: 'ss05';
   font-style: normal;
   font-weight: 500;
   src: url('dm-mono/DMMono-Medium.woff2') format('woff2'),
@@ -35,6 +40,7 @@
 
 @font-face {
   font-family: 'DM Mono';
+  font-feature-settings: 'ss05';
   font-style: italic;
   font-weight: 500;
   src: url('dm-mono/DMMono-MediumItalic.woff2') format('woff2'),

+ 0 - 3
services/web/frontend/stylesheets/app/website-redesign.less

@@ -634,7 +634,6 @@
 
   .text-with-bg {
     font-family: 'DM Mono', monospace;
-    font-feature-settings: 'ss05';
     padding: 0 @padding-sm;
     border-radius: 10px;
     margin-top: 5px;
@@ -730,7 +729,6 @@
   .mono-text {
     font-family: 'DM Mono', monospace;
     color: var(--green-60);
-    font-feature-settings: 'ss05';
     font-size: 1.125rem;
     font-weight: 500;
     line-height: 1.5rem;
@@ -741,7 +739,6 @@
     font-size: 1.125rem;
     line-height: 1.333;
     font-family: 'DM Mono', monospace;
-    font-feature-settings: 'ss05';
     font-weight: 500;
 
     i.material-symbols-rounded {