-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48090: ui: CSS modules for Statements Details page r=koorosh a=koorosh Depends on #48012 Related to #47527 Following components are refactored to use CSS modules instead of global styles: - Statement Details page - Statements Diagnostics components - Anchor - Text - Empty Before, `Empty` component had styles which override Text, and Anchor components. Now, these styles are passed via `className` component props and custom styles defined by outer component. Release note: None Co-authored-by: Andrii Vorobiov <and.vorobiov@gmail.com>
- Loading branch information
Showing
15 changed files
with
672 additions
and
117 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
pkg/ui/src/views/shared/components/summaryCard/summaryCard.module.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2018 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
@require "~styl/base/palette.styl" | ||
|
||
.summary--card | ||
border-radius 3px | ||
box-shadow 0 0 1px 0 rgba(67, 90, 111, 0.41) | ||
background-color $adminui-white | ||
padding 25px | ||
margin-bottom 15px | ||
&__divider | ||
width 100% | ||
height 1px | ||
margin 22px 0 | ||
background $table-border | ||
&__title | ||
font-family SourceSansPro-Regular | ||
font-size 20px | ||
line-height 1.6 | ||
letter-spacing -0.2px | ||
color $popover-color | ||
margin-bottom 25px | ||
&__counting | ||
&--value | ||
font-family SourceSansPro-Regular | ||
font-size 20pt | ||
line-height 1.6 | ||
letter-spacing -0.2px | ||
color $text-color | ||
margin-bottom 15px | ||
&--label | ||
font-family SourceSansPro-Regular | ||
font-size 14pt | ||
line-height 1.67 | ||
letter-spacing 0.3px | ||
color $secondary-text-color | ||
margin-bottom 0 | ||
&__item | ||
display flex; | ||
justify-content space-between | ||
margin-bottom 10px | ||
&--label | ||
font-family SourceSansPro-Regular | ||
font-size 14px | ||
line-height 1.57 | ||
letter-spacing 0.1px | ||
color $secondary-text-color | ||
margin-right 5px | ||
margin-bottom 0 | ||
&--value | ||
font-family SourceSansPro-Regular | ||
font-size 14px | ||
font-weight 600 | ||
line-height 1.71 | ||
letter-spacing 0.1px | ||
color $popover-color | ||
margin-bottom 0 | ||
&-red | ||
color $alert-color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.