ptcs-button
{
color: #FAFAFA;
background-color: #2B80D5;
padding: 0px 60px;
font-size: 24px;
font-weight: bold;
height: 80px;
border-radius: 6px;
}

@supports (ptcs-style-unit: "PTCS-DATEPICKER") {
[part=date-field] {
background-color: red;
}
}
|
|
次のスタイルの一部はスタイルプロパティを使用して設定できます。可能な場合は CSS の代わりにスタイルプロパティを使用することをお勧めします。
|
|
CSS
|
説明
|
プレビュー
|
||
|---|---|---|---|---|
@supports (ptcs-style-unit: "PTCS-BUTTON.primary") {
|
ボタンの背景色を赤色に設定し、青色の境界を適用します。
|
![]() |
||
@supports (ptcs-style-unit: "PTCS-BUTTON.danger") {
|
ボタンの危険バリエーションのラベル色を青色に設定し、フォントスタイルを斜体に設定します。
|
![]() |
||
@supports (ptcs-style-unit: "PTCS-BUTTON.primary") {
|
マウスポインタを合わせた状態になるとボタンの周囲に赤色の境界が表示されます。
|
![]() |
||
@supports (ptcs-style-unit: "PTCS-BUTTON.primary") {
|
CustomClass の値が custom-button であるボタンの背景色を赤色に設定し、青色の境界を適用します。この例では、中央のボタンにのみカスタム CSS クラスが設定されています。
|
![]() |
|
CSS
|
説明
|
プレビュー
|
|---|---|---|
@supports (ptcs-style-unit: "PTCS-TEXTFIELD") {
|
クリアボタンの色を赤色に設定します。
|
![]() |
@supports (ptcs-style-unit: "PTCS-TEXTFIELD") {
|
テキストボックスの境界の色を赤色に設定します。
|
![]() |
@supports (ptcs-style-unit: "PTCS-TEXTFIELD") {
|
文字カウンタの色を赤色に設定します。
|
![]() |
|
CSS
|
説明
|
プレビュー
|
|---|---|---|
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
![]() |
|
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
|
|
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
選択したアイテムの値の色を赤色に設定します。
|
![]() |
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
ドロップダウンの背景色を赤色に設定し、境界を青色に設定します。
|
![]() |
|
CSS
|
説明
|
プレビュー
|
|---|---|---|
@supports (ptcs-style-unit: "PTCS-CHART-AXIS") {
|
チャートの軸の色を赤色に設定します。
|
![]() |
@supports (ptcs-style-unit: "PTCS-CHART-CORE-BAR") {
|
棒の右上隅と左上隅にラウンドを適用します。
|
![]() |
@supports (ptcs-style-unit: "PTCS-CHART-CORE-BAR") {
|
棒のデータラベルの色とフォントスタイルを設定します。
|
![]() |