File tree Expand file tree Collapse file tree 3 files changed +39
-48
lines changed Expand file tree Collapse file tree 3 files changed +39
-48
lines changed Original file line number Diff line number Diff line change @@ -514,6 +514,36 @@ body {
514
514
h1 :first-of-type + .alert.callout {
515
515
margin-top : 1.5em ;
516
516
}
517
+
518
+ div .feature-state-notice {
519
+ background-color : #daeaf9 ;
520
+ border-radius : 0.75rem ;
521
+ padding : 1rem ;
522
+ margin-bottom : 1em ;
523
+
524
+ font-size : 1.2em ;
525
+
526
+ > .feature-state-name ::before {
527
+ content : ' ⓘ ' ;
528
+ color : #326ce5 ; // Kubernetes blue
529
+ }
530
+ > .feature-state-name {
531
+ display : inline-block ;
532
+ font-size : 0.95em ;
533
+ font-weight : bold ;
534
+ color : #000 ;
535
+ background-color : #daeaf9 ;
536
+ }
537
+
538
+ code {
539
+ color : #000 ;
540
+ font-size : 1em ;
541
+ background-color : #daeaf9 ;
542
+ }
543
+
544
+ margin-right : 2em ;
545
+ max-width : 80% ;
546
+ }
517
547
}
518
548
519
549
// Special color for third party content disclaimers
Original file line number Diff line number Diff line change 9
9
{{ if not $is_valid }}
10
10
{{ errorf "%q is not a valid feature-state, use one of %q" $state $valid_states }}
11
11
{{ else }}
12
- < div class ="my-2 feature-state-notice feature-{{ $state }} ">
13
- < b > {{ T "feature_state" }}</ b > < code > {{T "feature_state_kubernetes_label" }} {{ $for_k8s_version }} [{{ $state }}]</ code >
12
+ < div class ="feature-state-notice feature-{{ $state }} ">
13
+ < span class =" feature-state-name " > {{ T "feature_state" }}</ span > < code > {{T "feature_state_kubernetes_label" }} {{ $for_k8s_version }} [{{ $state }}]</ code >
14
14
</ div >
15
15
{{ end }}
16
16
31
31
<!-- Iterate through feature gate files -->
32
32
{{- range $featureGateFile := $sortedFeatureGates -}}
33
33
{{- $featureGateNameFromFile := $featureGateFile.Params.Title -}}
34
-
34
+
35
35
{{- if eq $featureGateNameFromFile $feature_gate_name -}}
36
36
<!-- Extract information from the final stage of the feature gate -->
37
37
{{- $currentStage := index $featureGateFile.Params.stages (sub (len $featureGateFile.Params.stages) 1) -}}
38
- {{- with $currentStage -}}
38
+ {{- with $currentStage -}}
39
39
40
40
<!-- Display feature state information -->
41
- < div class ="my-2 feature-state-notice feature-{{ .stage }} " title ="{{ printf "%s %s " (T "feature_state_feature_gate_tooltip") $feature_gate_name }}">
42
- < b > {{ T "feature_state" }}</ b > < code > {{T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]</ code >
43
- </ div >
41
+ < div class ="feature-state-notice feature-{{ .stage }} " title ="{{ printf "%s %s " (T "feature_state_feature_gate_tooltip") $feature_gate_name }}">
42
+ < span class =" feature-state-name " > {{ T "feature_state" }}</ span > < code > {{T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]</ code >
43
+ </ div >
44
44
45
- {{- $featureGateFound = true -}}
46
- {{- end -}}
45
+ {{- $featureGateFound = true -}}
46
+ {{- end -}}
47
47
{{- end -}}
48
48
{{- end -}}
49
49
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments