Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29529767: Issue 5573 - Add a CSS reset to website-defaults (Closed)

Created:
Aug. 28, 2017, 5:25 p.m. by ire
Modified:
Sept. 6, 2017, 10:59 p.m.
Reviewers:
juliandoucette
Base URL:
https://hg.adblockplus.org/website-defaults
Visibility:
Public.

Description

Issue 5573 - Add a CSS reset to website-defaults

Patch Set 1 #

Total comments: 13

Patch Set 2 : Reorder selectors, move reset styles from base to reset.scss #

Total comments: 12

Patch Set 3 : Address NITs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -30 lines) Patch
M README.md View 1 1 chunk +4 lines, -0 lines 0 comments Download
M scss/_base.scss View 1 1 chunk +0 lines, -30 lines 0 comments Download
A scss/_reset.scss View 1 2 1 chunk +136 lines, -0 lines 0 comments Download
M scss/main.scss View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10
ire
Aug. 28, 2017, 5:25 p.m. (2017-08-28 17:25:48 UTC) #1
ire
First attempt ready for review
Aug. 28, 2017, 5:29 p.m. (2017-08-28 17:29:03 UTC) #2
ire
https://codereview.adblockplus.org/29529767/diff/29529768/scss/_reset.scss File scss/_reset.scss (right): https://codereview.adblockplus.org/29529767/diff/29529768/scss/_reset.scss#newcode20 scss/_reset.scss:20: * CSS Reset I created a different file instead ...
Aug. 28, 2017, 5:29 p.m. (2017-08-28 17:29:10 UTC) #3
juliandoucette
Did you base this reset on any others in specific?
Aug. 28, 2017, 6:39 p.m. (2017-08-28 18:39:20 UTC) #4
ire
On 2017/08/28 18:39:20, juliandoucette wrote: > Did you base this reset on any others in ...
Aug. 28, 2017, 8:47 p.m. (2017-08-28 20:47:25 UTC) #5
juliandoucette
LGTM + NITs (See comments) https://codereview.adblockplus.org/29529767/diff/29529768/scss/_reset.scss File scss/_reset.scss (right): https://codereview.adblockplus.org/29529767/diff/29529768/scss/_reset.scss#newcode20 scss/_reset.scss:20: * CSS Reset On ...
Aug. 30, 2017, 10:04 a.m. (2017-08-30 10:04:28 UTC) #6
ire
Made some updates. I'll let you have a final look before I push https://codereview.adblockplus.org/29529767/diff/29529768/scss/_reset.scss File ...
Sept. 1, 2017, 8:57 a.m. (2017-09-01 08:57:07 UTC) #7
juliandoucette
https://codereview.adblockplus.org/29529767/diff/29533555/gulpfile.js File gulpfile.js (left): https://codereview.adblockplus.org/29529767/diff/29533555/gulpfile.js#oldcode29 gulpfile.js:29: gulp.task("watch", function () Merge or rebase gone wrong? https://codereview.adblockplus.org/29529767/diff/29533555/scss/_reset.scss ...
Sept. 1, 2017, 10:30 a.m. (2017-09-01 10:30:59 UTC) #8
ire
https://codereview.adblockplus.org/29529767/diff/29533555/gulpfile.js File gulpfile.js (left): https://codereview.adblockplus.org/29529767/diff/29533555/gulpfile.js#oldcode29 gulpfile.js:29: gulp.task("watch", function () On 2017/09/01 10:30:58, juliandoucette wrote: > ...
Sept. 5, 2017, 6:55 a.m. (2017-09-05 06:55:52 UTC) #9
juliandoucette
Sept. 6, 2017, 4:31 p.m. (2017-09-06 16:31:55 UTC) #10
LGTM

https://codereview.adblockplus.org/29529767/diff/29533555/scss/_reset.scss
File scss/_reset.scss (right):

https://codereview.adblockplus.org/29529767/diff/29533555/scss/_reset.scss#ne...
scss/_reset.scss:29: h1, h2, h3, h4, h5, h6,
On 2017/09/05 06:55:52, ire wrote:
> On 2017/09/01 10:30:58, juliandoucette wrote:
> > NIT: I like how these are grouped, but it is inconsistent with the selectors
> > below. If our code style forces us to list each selector on a new line then
I
> > propose that we propose conditions in which we can group them on the same
line
> > e.g. I think blockquote, q should be able to go on the same line (near the
> > bottom of this file); at least.
> 
> I considered this particular selector (since it's so large) to be the
exception.
> Perhaps the condition in which they can be grouped together is if the number
of
> selectors is greater than a specific number (maybe 10?)
> 
> For the other selectors like `blockquote, q`, I don't really see the argument
> for them also being changed given the code style is that selectors should be
on
> a new line other than the existence of this mega selector. 

Acknowledged.

https://codereview.adblockplus.org/29529767/diff/29533555/scss/_reset.scss#ne...
scss/_reset.scss:96: /* Remove the margin in all browsers (opinionated). */
On 2017/09/05 06:55:51, ire wrote:
> On 2017/09/01 10:30:59, juliandoucette wrote:
> > NIT: I would prefer to order these in terms of specificity e.g. *, html,
body,
> > ...
> 
> I think it makes more sense in terms of readability to have box-sizing:
> border-box to come before box-sizing: inherit, particularly since the styles
are
> grouped by purpose, but I don't feel particularly strongly about it so
changed.

Acknowledged.

Powered by Google App Engine
This is Rietveld