diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index 287e073ec8..934371db72 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -514,6 +514,36 @@ body { h1:first-of-type + .alert.callout { margin-top: 1.5em; } + + div.feature-state-notice { + background-color: #daeaf9; + border-radius: 0.75rem; + padding: 1rem; + margin-bottom: 1em; + + font-size: 1.2em; + + > .feature-state-name::before { + content: 'ⓘ '; + color: #326ce5; // Kubernetes blue + } + > .feature-state-name { + display: inline-block; + font-size: 0.95em; + font-weight: bold; + color: #000; + background-color: #daeaf9; + } + + code { + color: #000; + font-size: 1em; + background-color: #daeaf9; + } + + margin-right: 2em; + max-width: 80%; + } } // Special color for third party content disclaimers diff --git a/layouts/shortcodes/feature-state.html b/layouts/shortcodes/feature-state.html index 822f68d822..47abccdc51 100644 --- a/layouts/shortcodes/feature-state.html +++ b/layouts/shortcodes/feature-state.html @@ -9,8 +9,8 @@ {{ if not $is_valid }} {{ errorf "%q is not a valid feature-state, use one of %q" $state $valid_states }} {{ else }} -
{{T "feature_state_kubernetes_label" }} {{ $for_k8s_version }} [{{ $state }}]
+ {{T "feature_state_kubernetes_label" }} {{ $for_k8s_version }} [{{ $state }}]
{{T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]
- {{T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]
+