Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
223bf727
Commit
223bf727
authored
Sep 24, 2017
by
ninabreznik
Committed by
yann300
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update style-guide
parent
c730d865
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
78 deletions
+25
-78
style-guide.js
src/ui/styles/style-guide.js
+25
-78
No files found.
src/ui/styles/style-guide.js
View file @
223bf727
...
...
@@ -7,6 +7,24 @@ function styleGuide () {
COLORS
-------------------------------------------------------------------------- */
var
colors
=
{
// BACKGROUND COLORS
general_BackgroundColor
:
'hsl(0, 0%, 100%)'
,
// white
highlight_BackgroundColor
:
'hsla(229, 100%, 97%, 1)'
,
// backgroundBlue
// TEXT COLORS
mainText_Color
:
'hsl(0, 0%, 0%)'
,
// black
normalText_Color
:
'hsla(0, 0%, 40%, 1)'
,
// grey
// ICONS
icon_Color
:
'hsl(0, 0%, 0%)'
,
// black
icon_HoverColor
:
'hsla(44, 100%, 50%, 1)'
,
// orange
// DROPDOWN
dropdown_TextColor
:
'hsl(0, 0%, 0%)'
,
// black ,
dropdown_BackgroundColor
:
'hsl(0, 0%, 100%)'
,
// white
dropdown_BorderColor
:
'hsla(0, 0%, 40%, .2)'
,
// very light grey
// BASIC COLORS (B&W and transparent)
transparent
:
'transparent'
,
white
:
'hsl(0, 0%, 100%)'
,
...
...
@@ -37,37 +55,6 @@ function styleGuide () {
}
/* --------------------------------------------------------------------------
FONTS
-------------------------------------------------------------------------- */
var
texts
=
{
'title-XL'
:
`
font-size : 2em;
font-weight : 700;
letter-spacing : .05em;
`
,
'title-L'
:
`
font-size : 1em;
font-weight : 600;
`
,
'title-M'
:
`
font-size : 1em;
font-weight : 400;
`
,
'title-S'
:
`
font-size : .8em;
font-weight : 300;
`
,
'text'
:
`
font-size : .8em;
`
}
/* --------------------------------------------------------------------------
TEXT-BOXES
-------------------------------------------------------------------------- */
var
textBoxes
=
{
...
...
@@ -95,42 +82,6 @@ function styleGuide () {
word-break : break-word;
`
,
'warning-text-box'
:
`
background-color :
${
colors
.
lightOrange
}
;
line-height : 20px;
padding : 8px 15px;
border-radius : 5px;
border : .2em dotted
${
colors
.
orange
}
;
margin-bottom : 1em;
overflow : hidden;
word-break : break-word;
`
,
'error-text-box'
:
`
background-color :
${
colors
.
lightRed
}
;
line-height : 20px;
padding : 1em 1em .5em 1em;
border-radius : 3px;
box-shadow : rgba(0,0,0,.2) 0 1px 4px;
margin-bottom : 1em;
overflow : hidden;
word-break : break-word;
`
,
'title-box'
:
`
margin-bottom : 0.4em;
padding : .3em;
background-color : transparent;
font-weight : bold;
display : flex;
justify-content : space-between;
word-wrap : break-word;
position : relative;
border-radius : 3px;
overflow : hidden;
word-break : normal;
`
,
'input'
:
`
border : 1px solid
${
colors
.
veryLightGrey
}
;
height : 25px;
...
...
@@ -169,13 +120,14 @@ function styleGuide () {
`
,
'dropdown'
:
`
color :
${
colors
.
dropdown_TextColor
}
;
background-color :
${
colors
.
dropdown_BackgroundColor
}
;
border : 1px solid
${
colors
.
dropdown_BorderColor
}
;
font-size : 12px;
font-weight : bold;
padding : 0 8px;
text-decoration : none;
background-color :
${
colors
.
white
}
;
cursor : pointer;
border : 1px solid
${
colors
.
veryLightGrey
}
;
border-radius : 3px;
height : 25px;
width : 250px;
...
...
@@ -187,16 +139,11 @@ function styleGuide () {
}
return
{
textBoxL
:
textBoxes
[
'display-box-L'
],
infoTextBox
:
textBoxes
[
'info-text-box'
],
inputField
:
textBoxes
[
'input'
],
displayBox
:
textBoxes
[
'display-box'
],
warningTextBox
:
textBoxes
[
'warning-text-box'
],
titleL
:
texts
[
'title-L'
],
titleM
:
texts
[
'title-M'
],
colors
:
colors
,
dropdown
:
buttons
[
'dropdown'
],
button
:
buttons
[
'button'
],
colors
:
colors
,
titleBox
:
textBoxes
[
'title-box'
]
inputField
:
textBoxes
[
'input'
],
infoTextBox
:
textBoxes
[
'info-text-box'
],
displayBox
:
textBoxes
[
'display-box'
]
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment