utsushiiro 7 лет назад
Родитель
Сommit
c37e02a5a6
2 измененных файлов с 25 добавлено и 24 удалено
  1. 24 0
      src/client/styles/scss/_admin.scss
  2. 1 24
      src/server/views/admin/widget/passport/saml.html

+ 24 - 0
src/client/styles/scss/_admin.scss

@@ -79,6 +79,14 @@
     .btn.active[data-active-class="primary"] {
       @include active-color($btn-primary-color, $btn-primary-bg, $btn-primary-border);
     }
+
+    // disabled btn-group styles
+    &.btn-group-disabled {
+      .btn:hover {
+        background-color: unset;
+        cursor: not-allowed;
+      }
+    }
   }
 
   // theme selector
@@ -117,4 +125,20 @@
       }
     }
   }
+
+  .authentication-settings-table {
+    table-layout: fixed;
+
+    .item-name {
+      width: 150px;
+    }
+
+    td.unused {
+      opacity: 0.5;
+    }
+
+    &.use-only-env-vars .from-env-vars {
+      background-color: rgba(0, 159, 187, 0.1);
+    }
+  }
 }

+ 1 - 24
src/server/views/admin/widget/passport/saml.html

@@ -5,30 +5,7 @@
   {% set nameForIsSamlEnabled = "settingForm[security:passport-saml:isEnabled]" %}
   {% set isSamlEnabled  = getConfig('crowi', 'security:passport-saml:isEnabled') %}
   {% set useOnlyEnvVars = getConfig('crowi', 'security:passport-saml:useOnlyEnvVarsForSomeOptions') %}
-
-  <style>
-    .authentication-settings-table {
-      table-layout: fixed;
-    }
-
-    .authentication-settings-table .item-name{
-      width: 150px;
-    }
-
-    .authentication-settings-table.use-only-env-vars .from-env-vars {
-      background-color: rgba(0, 159, 187, 0.1);
-    }
-
-    .authentication-settings-table td.unused {
-      opacity: 0.5;
-    }
-
-    .btn-group-disabled .btn:hover {
-      background-color: unset;
-      cursor: not-allowed;
-    }
-  </style>
-
+  
   {% if useOnlyEnvVars %}
     <p class="alert alert-info">
       {{ t("security_setting.SAML.note for the only env option", "SAML_USES_ONLY_ENV_VARS_FOR_SOME_OPTIONS") }}