Foundation - 工具提示 SASS 參考



描述

您可以使用 SASS 參考來更改元件的樣式。

變數

下表列出了專案設定檔案中用於自定義此元件預設樣式的 SASS 變數。

序號 名稱及描述 型別 預設值
1

$tooltip-background-color

它表示工具提示的預設背景顏色。

顏色 $black
2

$tooltip-color

它表示工具提示的預設字型顏色。

顏色 $white
3

$tooltip-padding

它表示工具提示背景的預設內邊距。

數字 0.75rem
4

$tooltip-font-size

它表示工具提示文字的預設字型大小。

數字 $small-font-size
5

$tooltip-pip-width

它表示預設的引導線寬度。

數字 0.75rem
6

$tooltip-pip-height

它表示預設的引導線高度,用於計算工具提示與其文字的距離。

數字 $tooltip-pip-width * 0.866
7

$tooltip-pip-offset

它表示工具提示引導線的預設偏移量。這顯示了引導線從工具提示左邊緣縮排的距離。

數字 1.25rem
8

$tooltip-radius

它表示工具提示的預設圓角。

數字 $global-radius
foundation_media.htm
廣告
© . All rights reserved.