Răsfoiți Sursa

apply styles with link utilities

Yuki Takei 2 ani în urmă
părinte
comite
5379a550ef

+ 9 - 1
apps/app/src/styles/organisms/_wiki.scss

@@ -1,4 +1,4 @@
-@use '@growi/core/scss/bootstrap/init' as bs;
+@use '@growi/core/scss/bootstrap/utilities' as bs;
 
 
 @use '../variables' as var;
 @use '../variables' as var;
 
 
@@ -14,6 +14,14 @@
 
 
   font-size: 16px;
   font-size: 16px;
 
 
+  a {
+    @extend .link-primary;
+    @extend .link-offset-2;
+    @extend .link-underline-opacity-25;
+    @extend .link-underline-opacity-50-hover;
+    text-decoration: underline;
+  }
+
   // @extend .text-break;
   // @extend .text-break;
   // https://github.com/twbs/bootstrap/blob/v4.6.1/scss/utilities/_text.scss#L65-L68
   // https://github.com/twbs/bootstrap/blob/v4.6.1/scss/utilities/_text.scss#L65-L68
   word-break: break-word !important; // Deprecated, but avoids issues with flex containers
   word-break: break-word !important; // Deprecated, but avoids issues with flex containers

+ 1 - 1
packages/core/scss/bootstrap/_variables.scss

@@ -15,7 +15,7 @@
 //
 //
 // Style anchor elements.
 // Style anchor elements.
 
 
-// $link-hover-decoration: none !default;
+$link-decoration: none;
 
 
 // Grid breakpoints
 // Grid breakpoints
 //
 //

+ 4 - 0
packages/core/scss/bootstrap/utilities.scss

@@ -0,0 +1,4 @@
+@import 'init';
+
+@import 'bootstrap/scss/helpers';
+@import 'bootstrap/scss/utilities/api';