Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5896)

Issue 6811062: CSS styling for buttons

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by bac
Modified:
11 years, 5 months ago
Reviewers:
mp+132365
Visibility:
Public.

Description

CSS styling for buttons * Apply CSS styling to buttons to get them closer to the visual design assets. * Add a top-level rule to specify font-family which is needed to override the bootstrap setting rule. * Drive-by: remove redundant 'font-family' rules. * Drive-by: fix lint-yuidoc. https://code.launchpad.net/~bac/juju-gui/css-buttons/+merge/132365 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : CSS styling for buttons #

Total comments: 14

Patch Set 3 : CSS styling for buttons #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -33 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M bin/lint-yuidoc View 1 2 3 chunks +6 lines, -7 lines 0 comments Download
M lib/views/stylesheet.less View 1 2 10 chunks +48 lines, -26 lines 0 comments Download

Messages

Total messages: 6
bac
Please take a look.
11 years, 6 months ago (2012-10-31 16:15:05 UTC) #1
thiago
https://codereview.appspot.com/6811062/diff/1/lib/views/stylesheet.less File lib/views/stylesheet.less (right): https://codereview.appspot.com/6811062/diff/1/lib/views/stylesheet.less#newcode744 lib/views/stylesheet.less:744: //@shadow-color: blue; There are some tabs in this file.
11 years, 6 months ago (2012-10-31 16:36:02 UTC) #2
bac
Please take a look.
11 years, 6 months ago (2012-10-31 16:40:01 UTC) #3
thiago
Thanks, Brad. Seems good to me. I have only two silly comments. []s, Thiago. https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less ...
11 years, 5 months ago (2012-11-01 12:03:35 UTC) #4
gary.poster
Hi Brad. Thanks for this branch. It is cool to have the 3d buttons done ...
11 years, 5 months ago (2012-11-01 15:06:30 UTC) #5
bac
11 years, 5 months ago (2012-11-02 09:06:56 UTC) #6
*** Submitted:

CSS styling for buttons

* Apply CSS styling to buttons to get them closer to the visual design
  assets.

* Add a top-level rule to specify font-family which is needed to
  override the bootstrap setting rule.

* Drive-by: remove redundant 'font-family' rules.

* Drive-by: fix lint-yuidoc.

R=thiago, gary.poster
CC=
https://codereview.appspot.com/6811062

https://codereview.appspot.com/6811062/diff/5001/bin/lint-yuidoc
File bin/lint-yuidoc (right):

https://codereview.appspot.com/6811062/diff/5001/bin/lint-yuidoc#newcode90
bin/lint-yuidoc:90: dirs[:] = remove('assets', dirs)
On 2012/11/01 15:06:30, gary.poster wrote:
> I'd remove the function call and do it locally, once you remove the other use
of
> the function below.  (I'd also switch to "try: dirs.remove('assets') except
> ValueError: pass" but that's just me).
> 
> If you like it, do it.

Done.

https://codereview.appspot.com/6811062/diff/5001/bin/lint-yuidoc#newcode93
bin/lint-yuidoc:93: files = filter(lambda x: x.endswith('.js'), files)
On 2012/11/01 15:06:30, gary.poster wrote:
> Without much excitement, I suggest you remove the "remove" function and
> consolidate this into one pass through the names.  I'd lean towards the list
> comprehension, so I'd replace lines 92 and 93 with
> 
> files = [i for i in files if i.endswith('.js') and i != 'templates.js']
> 
> As you wish.

Done.

https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less
File lib/views/stylesheet.less (right):

https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less#ne...
lib/views/stylesheet.less:743: .button-colors(@top-color, @bottom-color,
@shadow-color, @v-pos) {
On 2012/11/01 15:06:30, gary.poster wrote:
> What do you think about defining this function at the top level, and thus
making
> it available generally?  I think that's what we will want.

Done.

https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less#ne...
lib/views/stylesheet.less:744: //@shadow-color: blue;
On 2012/11/01 12:03:35, thiago wrote:
> This line is commented out. Probably you can remove it.

Done.

https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less#ne...
lib/views/stylesheet.less:746: @gradient-start: @top-color;
On 2012/11/01 12:03:35, thiago wrote:
> You could use the top-color and botton-color instead of the new pointers,
right?
> If you want less code changes, you can change the parameter names to
> gradient-start and gradient-end.

Done.

https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less#ne...
lib/views/stylesheet.less:757: box-shadow: 0 (@v-pos + 3) @blur -@blur
@shadow-color inset, 2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px
@shadow-color inset;
I removed the browser-specific entries and regenerated the CSS.  LESS did not
put in those browser-specific rules so I have left them in stylesheet.less.

https://codereview.appspot.com/6811062/diff/5001/lib/views/stylesheet.less#ne...
lib/views/stylesheet.less:789: .button-colors(@charm-panel-cancel-button-color,
@charm-panel-cancel-button-color, @charm-panel-cancel-button-shadow, 1px);
On 2012/11/01 15:06:30, gary.poster wrote:
> We generally are using four space indents in this file.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b