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

Merge pull request #5994 from overleaf/ta-beta-badge-font-size

Enforce Beta & Info Badges Font Size

GitOrigin-RevId: 679e5c0ee90f541be003891e85074212961f1571
Jessica Lawshe 4 лет назад
Родитель
Сommit
c8521820fa
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      services/web/frontend/stylesheets/components/beta-badges.less

+ 7 - 1
services/web/frontend/stylesheets/components/beta-badges.less

@@ -3,10 +3,16 @@
   display: inline-block;
   display: inline-block;
   width: @line-height-computed * 0.75;
   width: @line-height-computed * 0.75;
   height: @line-height-computed * 0.75;
   height: @line-height-computed * 0.75;
-  line-height: @line-height-computed * 0.75;
+  line-height: @font-size-small;
+  font-size: @line-height-computed * 0.75;
   text-align: center;
   text-align: center;
   color: #fff;
   color: #fff;
 
 
+  &::before {
+    line-height: @font-size-small;
+    font-size: @font-size-small;
+  }
+
   &:hover,
   &:hover,
   &:focus {
   &:focus {
     color: #fff;
     color: #fff;