forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create global_styles dir with sub-directories. (elastic#12833)
- Loading branch information
Showing
17 changed files
with
105 additions
and
119 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
@import 'reset/index'; | ||
@import 'variables/index'; | ||
@import 'mixins/index'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'global_mixins'; |
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 @@ | ||
@import "reset"; |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
ui_framework/components/global_styles/variables/_animations.scss
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,9 @@ | ||
// Animations | ||
|
||
$globalAnimSlightBounce: cubic-bezier(0.34,1.61,0.7,1); | ||
$globalAnimSlightResistance: cubic-bezier(0.694, 0.0482, 0.335, 1); | ||
$globalAnimSpeedVeryFast: 90ms; | ||
$globalAnimSpeedFast: 150ms; | ||
$globalAnimSpeedNormal: 250ms; | ||
$globalAnimSpeedSlow: 350ms; | ||
$globalAnimSpeedVerySlow: 500ms; |
6 changes: 6 additions & 0 deletions
6
ui_framework/components/global_styles/variables/_borders.scss
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,6 @@ | ||
// Borders | ||
|
||
$globalBorderColor: $globalColorLightGray; | ||
$globalBorderRadius: 4px; | ||
$globalBorderThick: 2px solid $globalBorderColor; | ||
$globalBorderThin: 1px solid $globalBorderColor; |
49 changes: 49 additions & 0 deletions
49
ui_framework/components/global_styles/variables/_colors.scss
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,49 @@ | ||
// True colors | ||
|
||
$globalColorBlue: #0079a5; | ||
$globalColorTeal: #00A69B; | ||
$globalColorRed: #A30000; | ||
$globalColorLightestGray: #F5F5F5; | ||
$globalColorLightGray: #D9D9D9; | ||
$globalColorMediumGray: #999; | ||
$globalColorDarkGray: #666; | ||
$globalColorDarkestGray: #3F3F3F; | ||
$globalColorBlack: #000; | ||
$globalColorWhite: #FFF; | ||
|
||
// Normal colors | ||
|
||
$globalTextColor: #2d2d2d; | ||
$globalLinkColor: $globalColorBlue; | ||
$globalLinkColor-isHover: darken($globalLinkColor, 10%); | ||
$globalInputTextColor: $globalTextColor; | ||
$globalInputBackgroundColor: $globalColorWhite; | ||
$globalInputBorderColor: $globalColorLightGray; | ||
|
||
// Dark theme colors | ||
|
||
$globalTextColor--darkTheme: #cecece; | ||
$globalBackgroundColor--darkTheme: #777777; | ||
$globalLinkColor--darkTheme: #b7e2ea; | ||
$globalLinkColor-isHover--darkTheme: #def2f6; | ||
$globalInputTextColor--darkTheme: $globalTextColor--darkTheme; | ||
$globalInputBackgroundColor--darkTheme: #444444; | ||
$globalInputBorderColor--darkTheme: $globalInputBackgroundColor--darkTheme; | ||
|
||
// Colors | ||
|
||
$globalInfoColor: #3fa8c7; | ||
$globalInactiveColor: #c3c3c3; | ||
$globalSuccessColor: #417505; | ||
$globalWarningColor: #ec9800; | ||
$globalDangerColor: $globalColorRed; | ||
$globalFocusColor: $globalColorBlue; | ||
$globalFocusDangerColor: #ff523c; | ||
$globalFocusWarningColor: #ffa500; | ||
$globalFocusBackgroundColor: #ffffff; | ||
$globalFontColor: #191E23; | ||
$globalSubduedTextColor: $globalColorDarkGray; | ||
$globalLinkHoverColor: #006E8A; | ||
$globalSelectedBorderColor: $globalColorBlue; | ||
$globalDangerBorderColor: $globalDangerColor; | ||
$globalFormControlBorderColor: #DEDEDE; |
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,9 @@ | ||
// Font | ||
|
||
$globalFontFamily: "Open Sans", Helvetica, Arial, sans-serif; | ||
$globalFontSize: 14px; | ||
$globalLineHeight: 1.5; | ||
$globalSubTextFontSize: 12px; | ||
$globalTitleFontSize: 18px; | ||
$globalFontWeightRegular: 400; | ||
$globalFontWeightBold: 700; |
15 changes: 15 additions & 0 deletions
15
ui_framework/components/global_styles/variables/_index.scss
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,15 @@ | ||
// -------------------------------------------------------------------------------------- | ||
// KUI global variables | ||
// -------------------------------------------------------------------------------------- | ||
// This module contains all global variables available within kui. Every variable in this | ||
// document should be prefixed with $global. This lets us know where the variable is | ||
// coming from when looking inside the individual component files. Any component local | ||
// variables should be declared at the top of those documents prefixed with $componentName. | ||
|
||
@import 'colors'; | ||
@import 'font'; | ||
@import 'timing'; | ||
@import 'borders'; | ||
@import 'shadows'; | ||
@import 'z_index'; | ||
@import 'animations'; |
3 changes: 3 additions & 0 deletions
3
ui_framework/components/global_styles/variables/_shadows.scss
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,3 @@ | ||
// Shadows | ||
|
||
$globalBoxShadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1); |
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,3 @@ | ||
// Timing | ||
|
||
$globalInputTransitionTiming: 0.1s linear; |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
html { | ||
height: 100%; | ||
} | ||
|
||
.guideBody { | ||
height: 100%; | ||
background-color: #000000; | ||
|
2 changes: 0 additions & 2 deletions
2
ui_framework/doc_site/src/components/guide_page/_guide_page.scss
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "../../variables"; | ||
|
||
.guidePage { | ||
display: flex; | ||
flex: 1 0 auto; | ||
|