Skip to content

Commit f3f26e5

Browse files
committed
Admin: Clean up styles
1 parent e2517ee commit f3f26e5

File tree

2 files changed

+60
-39
lines changed

2 files changed

+60
-39
lines changed

client/stylesheets/components/_button.sass

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
// .has-btn
1212
//
13-
// .btn[a|b s|l block bordered|rounded]
13+
// .btn[a|b s|l block bordered|rounded success]
1414
//
1515
// *************************************
1616
@@ -98,6 +98,14 @@
9898
top: 50%
9999
transform: translate(-50%, -50%)
100100

101+
// ----- Theme ----- //
102+
103+
.btn--success
104+
background: $c-success
105+
106+
+state
107+
background: shade($c-success, 10%)
108+
101109
// -------------------------------------
102110
// Context
103111
// -------------------------------------

server/views/admin/index.jade

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ block current_nav
22
- current_page = 'Admin'
33

44
block layout_variables
5-
- pageTitle = 'Admin'
6-
- metaDescription = 'The latest news from the JavaScript community and the fine folks at 5 Minutes of JavaScript.'
5+
- dispatcher = 'admin'
6+
- pageTitle = 'Admin'
7+
- metaDescription = 'The latest news from the JavaScript community and the fine folks at 5 Minutes of JavaScript.'
78

89
extends /views/layouts/layout
910

@@ -13,47 +14,59 @@ block content
1314
include /views/partials/_flash
1415

1516
section.row.has-sector
16-
.cell
17+
.cell.well.well--l.well--m--xl
1718
.g
18-
.g-b.g-b--m--3of5.sector.sector--a
19-
.well.well--l.well--m--xl
19+
.g-b.g-b--m--3of5
20+
.bdrbl.mbl.pbm
2021
h1 Unapproved Stories
2122

23+
if stories.length > 0
2224
- for story in stories
2325
li.list-item(data-article=story.id)
24-
section.row
25-
.cell.cell--s.well
26-
27-
article.bdrbl.pbl.mbm(role='article')
28-
29-
h1.h.h--1
30-
a.externalLink.tct.twb(href=story.url target='_blank')
31-
= story.title
32-
- iconPartial = { name: 'external', className: 'externalLink-icon', size: 20 }
33-
include /views/partials/_icon
34-
35-
.bucket.bucket--flag.mbm
36-
.bucket-media
37-
img.thumb(src=story.avatar_url width=50)
38-
.bucket-content.h.h--3.tcs
39-
ul.list.list--inline.list--inline--divided.tfh
40-
li.list-item
41-
span.twn via
42-
| #{story.name}
43-
44-
p.well.well--l.tsl= story.body
45-
46-
a.tct.twb.approve(href='#') approve
47-
||
48-
select(name="moderate" id="moderate")
49-
option(value=0) Select reason...
50-
option(value=1) Duplicate
51-
option(value=2) Hard to understand
52-
option(value=3) Directly advertising
53-
option(value=4) Job Posting
54-
option(value=5) Disrespectful language
55-
option(value=6) Not within community interests
56-
a.tct.twb.deny(href='#') deny
26+
27+
article.bdrbl.pbl.mbm(role='article')
28+
29+
h1.h.h--1
30+
a.externalLink.tct.twb(href=story.url target='_blank')
31+
= story.title
32+
- iconPartial = { name: 'external', className: 'externalLink-icon', size: 20 }
33+
include /views/partials/_icon
34+
35+
.bucket.bucket--flag.mbm
36+
.bucket-media
37+
img.thumb(src=story.avatar_url width=50)
38+
.bucket-content.h.h--3.tcs
39+
ul.list.list--inline.list--inline--divided.tfh
40+
li.list-item
41+
span.twn via
42+
| #{story.name}
43+
44+
p.well.well--l.tsl= story.body
45+
46+
.mbl
47+
a.btn.btn--success.approve(href='#') Approve Story
48+
49+
h2 Deny Story
50+
p.tcs.tss
51+
| If the story doesn't follow the Community Guidelines, provide
52+
| a reason and select
53+
strong Deny Story.
54+
.g.g--xs
55+
.g-b.g-b--3of4
56+
.select
57+
select.select-input(name="moderate" id="moderate")
58+
option.select-input-option(value=0) Select reason...
59+
option.select-input-option(value=1) Duplicate
60+
option.select-input-option(value=2) Hard to understand
61+
option.select-input-option(value=3) Directly advertising
62+
option.select-input-option(value=4) Job Posting
63+
option.select-input-option(value=5) Disrespectful language
64+
option.select-input-option(value=6) Not within community interests
65+
.g-b.g-b--1of4
66+
a.btn.btn--a.btn--block.deny(href='#') Deny Story
67+
68+
else
69+
p.tsi There are no unapproved stories right now.
5770

5871
block inline_javascript
5972
script.

0 commit comments

Comments
 (0)