Skip to content

Commit ec840df

Browse files
committed
Partial critique pass on v4 content
1 parent fbce7d1 commit ec840df

File tree

10 files changed

+25
-0
lines changed

10 files changed

+25
-0
lines changed

source/components.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ When determing whether a module is a Component or Structure, we find it helpful
4848
- Does this module depend on or extend other Components?
4949
- Is this module abstract enough to use in other projects without making significant changes?
5050

51+
<!-- Nicktique: second line ('Does this depend on / extend other Components') sounds like a Structure -->
52+
5153
If you answer "no" to any of these questions, the module in question is more than likely a Structure.

source/foundation/base.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Base contains all of the tag-level settings for default HTML elements. These are
1313

1414
We define `html` and `body` styles at the top, and then divide the remaining content into Block and Inline sections.
1515

16+
<!-- Nicktique: font-family, font-size, and line-height can all be combined into one fun line. -->
17+
1618
```sass
1719
// *************************************
1820
//

source/foundation/config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ If serving font files from a known path (e.g. your server), we include Bourbon's
2828
+font-face('OpenSans', 'OpenSansItalic', normal, italic)
2929
```
3030

31+
<!-- Nicktique: this might not be the best method for importing Google Fonts - I've been doing it in dev because of the simplicity, but there might be a better way. This type of import isn't a Sass import, so it's probably creating another HTTP request. -->
32+
3133
When using web fonts from Google Fonts, or a similar service, you can paste their generated `@import` link into this section.
3234

3335
```sass

source/foundation/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ children: true
88
Foundation
99
==========
1010

11+
<!-- Nicktique: `the` appears too many times in this first paragraph -->
12+
1113
As mentioned earlier, the Foundation represents the tools and materials at the ground level. This is the initial setup for your application. The Foundation is made up of:
1214

1315
- Reset

source/foundation/tools.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ nested: true
99
Foundation - Tools
1010
==================
1111

12+
<!-- Nicktique: this reads too much like a changelog; documentation should sound a little more 'sure of itself' - chiseled in stone, as it were, -->
13+
1214
Since the last version of MVCSS, we've embraced the idea of presentational class names, and have included them as Tools in MVCSS v4. Simply put, Tools are presentational utility classes for usage within HTML itself. They're helpful when you need a specific style in a unique context, but can't justify creating (and naming) a new module or modifier to achieve the desired effect.
1315

1416
```html

source/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ CSS, for all its simplicity, is a difficult language to manage in large-scale im
1313

1414
Keeping with the architecture motif, applications are split into three major categories: *Foundation*, *Components*, and *Structures*. If Foundation represents tools, materials, and the ground level, Components are akin to creating a window from those materials, and Structures would be a number of windows and doors creating a wall.
1515

16+
<!-- Nicktique: not something we need for the initial launch of v4, but something visual here would really help drive the main structure point home. An illustrated diagram of the foundation -> component -> structure setup, perhaps. -->
17+
1618
For a very early taste, here’s what a simple Component might consist of:
1719

20+
<!-- Nicktique: we should pare this example down a bit, and perhaps even remove the variables. The structure is the most important part, so we want as few surprises as possible. -->
21+
1822
```sass
1923
// *************************************
2024
//

source/shared/_sidebar.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- get_nested_pages(page.data.title).each do |nested_page|
2222
= link_to nested_page.data.title, "/#{nested_page.path}", class: (is_page_active(nested_page.url) ? 'sidebar-link sidebar-link--sub is-active' : 'sidebar-link sidebar-link--sub')
2323
.sidebar-nav-secondary
24+
/ Nicktique: this subheader is too close to normal links, the style needs a bit more differentiation.
2425
%h3.sidebar-label.mtl Meta
2526
- get_secondary_pages().each do |page|
2627
= link_to page.data.title, "/#{page.path}", class: (is_page_active(page.url) ? 'sidebar-link is-active' : 'sidebar-link')

source/styleguide/basics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Styleguide - Basics
1818
- Stick with classes instead of IDs for styling
1919
- Limit nesting as much as possible
2020

21+
<!-- Nicktique: prefixed properties are alphabetized by their non-prefixed equivalent. -webkit-transition, -moz-transition, then transition, based on the `T`. -->
22+
2123
```sass
2224
// Example
2325

source/styleguide/naming.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ After creation, elements that need a modifier will use the root class (`.btn`) a
7474
<button class="btn btn--a btn--l">A Button</button>
7575
```
7676

77+
<!-- Nicktique: using `--a`, `--b`, etc. in the examples is dangerous since we've moved away from that. This next sentence is definitely off. -->
78+
7779
**Note:** appearance modifiers typically work best when defined in sequence (`a`, `b`) or via function (`cancel`, `submit`) as opposed to look (`red`, `blue`).
7880

7981
States
@@ -119,6 +121,8 @@ Context
119121

120122
We also borrow the idea of context from SUIT. Modularizing styles into self-contained units works well *most* of the time, but you’ll occasionally need a parent element to fall in line.
121123

124+
<!-- Nicktique: we've been using this a lot more in the context of list items, that might be a better example to drop in. -->
125+
122126
The most common case tends to be positioning context. If you have a dropdown structure that’s being positioned absolutely, the parent element should be (at least) positioned relatively:
123127

124128
```sass
@@ -172,6 +176,8 @@ Elements nested within a Component or Structure that need styling *based on bein
172176

173177
For items in scaffolding, the Component/Structure name comes first, followed by a single hyphen and the subcomponent/substructure name (also in camelCase, if necessary). Where applicable, they can have their own modifiers, states, and subcomponents/substructures—more than two levels, though, typically means it’s time to refactor.
174178

179+
<!-- Nicktique: a common misunderstanding with folks new to MVCSS is creating states / modifiers / etc. under a scaffolding item. An example of that might be helpful. -->
180+
175181
Variables
176182
---------
177183

source/styleguide/numbers-game.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ Approach
2222
This setup should be a easier to grasp once we reach the Config, Tools, and Base segments of Foundation.
2323

2424
**Note:** pixel values will occasionally be required to meet design requirements, especially with things like offsets. Try to use them as sparingly as possible.
25+
26+
<!-- Nicktique: might help to weave magic numbers in here: http://csswizardry.com/2012/11/code-smells-in-css/ -->

0 commit comments

Comments
 (0)