File tree Expand file tree Collapse file tree 6 files changed +26
-69
lines changed Expand file tree Collapse file tree 6 files changed +26
-69
lines changed Original file line number Diff line number Diff line change @@ -552,3 +552,10 @@ body.td-documentation {
552
552
}
553
553
}
554
554
555
+ /* glossary tooltip */
556
+ .glossary-tooltip {
557
+ display : inline-block ;
558
+ border-bottom : 1px dotted black ; /* If you want dots under the hoverable text */
559
+ color : black ;
560
+ text-decoration : none !important ;
561
+ }
Original file line number Diff line number Diff line change @@ -12,4 +12,16 @@ Add styles or override variables from the theme here. */
12
12
@import " tablet" ;
13
13
@import " desktop" ;
14
14
15
- $primary : #3371e3 ;
15
+ $primary : #3371e3 ;
16
+
17
+ // tooltip
18
+ $tooltip-bg : #555 ;
19
+ $tooltip-arrow-color : $tooltip-bg !default ;
20
+ $tooltip-arrow-width : 10px !default ;
21
+ $tooltip-opacity : 1 !default ;
22
+ $tooltip-color : #fff !default ;
23
+ $tooltip-max-width : 300px !default ;
24
+ $tooltip-font-size : 1rem ;
25
+ $tooltip-padding : 5px 8px ;
26
+ $tooltip-border-radius : 6px ;
27
+ $tooltip-font-weight : 400 ;
Original file line number Diff line number Diff line change @@ -155,8 +155,7 @@ offlineSearch = false
155
155
[params .pushAssets ]
156
156
css = [
157
157
" callouts" ,
158
- " styles" ,
159
- " custom-jekyll/tags"
158
+ " styles"
160
159
]
161
160
js = [
162
161
" script"
Original file line number Diff line number Diff line change 14
14
{{- end }}
15
15
16
16
< link rel ="stylesheet " href ="{{ "css /feature-states.css" | relURL }}">
17
- < link rel =" stylesheet " href =" {{ " css /custom-jekyll/tags.css" | relURL }}" >
17
+
18
18
{{- if .Site.Params.announcement }}
19
19
< link rel ="stylesheet " href ="{{ "css /announcement.css" | relURL }}">
20
20
{{- end }}
Original file line number Diff line number Diff line change 14
14
{{- $glossary_home := "docs/reference/glossary/?all=true" | relLangURL -}}
15
15
{{- $external_link := $term_info.Params.full_link | default (printf "%s#term-%s" $glossary_home $id | safeURL ) -}}
16
16
{{- $tooltip := $term_info.Params.short_description | markdownify -}}
17
- {{- $tooltip := $tooltip | replaceRE "(?s)< a class ='glossary-tooltip '.*? > (.*?)< span class ='tooltip-text '> .*</ a > " "$1" | plainify -}}
17
+
18
+ {{- $tooltip := $tooltip | replaceRE "(?s)< a class ='glossary-tooltip '.*? > (.*?).*</ a > " "$1" | plainify -}}
18
19
{{- $tooltip := trim $tooltip " \n" -}}
19
- < a class ='glossary-tooltip ' href ='{{ $external_link }} ' target ='_blank '>
20
- {{- $text -}}
21
- < span class ='tooltip-text '>
22
- {{- $tooltip | safeHTML -}}
23
- </ span >
20
+ < a class ='glossary-tooltip ' title ='{{- $tooltip | safeHTML -}} ' data-toggle ='tooltip ' data-placement ='top ' href ='{{ $external_link }} ' target ='_blank ' aria-label ='{{ $text }} '>
21
+ {{- $text -}}
24
22
</ a >
25
23
{{- end -}}
26
24
{{- end -}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments