Skip to content

Commit 9045078

Browse files
authored
Merge pull request #65 from xsnippet/syntax-styles
Change styles for syntax bar according to new designs
2 parents e4c79ad + 0495626 commit 9045078

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

src/components/NewSnippet.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class NewSnippet extends React.Component {
9999
placeholder="Tags"
100100
onAdded={this.onTagAdded}
101101
onRemoved={this.onTagRemoved}
102+
addKeys={[13, 9]}
102103
uniqueTags
103104
/>
104105
</div>
@@ -120,7 +121,7 @@ class NewSnippet extends React.Component {
120121
/>
121122

122123
<div className="new-snippet-code-bottom-bar">
123-
<input type="submit" value="POST" />
124+
<input type="submit" value="POST SNIPPET" />
124125
</div>
125126
</div>
126127
</div>

src/styles/NewSnippet.styl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ lang-bar-width = 230px
2929
flex-flow: column nowrap
3030
width: "calc(100% - %s)" % lang-bar-width
3131
&-header
32+
border-left: 34px solid snippet-header-normal
3233
background-color: snippet-header-light
3334
.input
3435
basic-input()
@@ -74,16 +75,20 @@ lang-bar-width = 230px
7475
&-wrapper
7576
flex: 1
7677
&-empty
77-
padding: 13px 15px
78+
padding: 15px
7879
font-size: 14px
7980
font-weight: 300
8081
color: text-grey
8182
&-item
83+
margin-top: -1px
8284
font-size: 14px
83-
padding: 13px 15px
85+
padding: 15px
86+
border-left: 5px solid language-bar-border
87+
border-bottom: 1px solid language-bar-border
8488
cursor: pointer
8589
&:hover,
8690
&.active
87-
padding-left: 10px
91+
padding-bottom: 16px
8892
border-left: 5px solid snippet-border
93+
border-bottom: none
8994
background-color: language-bar-bg-active

src/styles/common/colors.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ color-white-white-s100 = #ffffff
66
color-gainboro-white-s0 = #e8e8e8
77
color-white-smoke-white-s0 = #f3f3f3
88
color-white-white-s0 = #fdfdfd
9+
color-gainsboro-white-s0 = #e4e4e4
910

1011
color-regent-st-blue-blue-s28 = #9cd9cd
1112
color-downy-green-s42 = #7ad6c3

src/styles/common/overwrite.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
border: 1px solid rgba(text-light, .4)
3131
margin-right: 4px
3232
padding: 7px
33+
white-space: nowrap
3334
&:hover
3435
border-color: text-light
3536
a

src/styles/common/variables.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ snippet-content-light = color-white-white-s100
2626

2727
language-bar-bg-normal = color-white-smoke-white-s0
2828
language-bar-bg-active = color-white-white-s0
29+
language-bar-border = color-gainsboro-white-s0
2930

3031
snippet-border = color-medium-aquamarine-blue-s50
3132

0 commit comments

Comments
 (0)