Commit Graph

200 Commits

Author SHA1 Message Date
Chris Wilcoxson 7ef388656e Removed duplicate b & strong styling, changed SASS files to make use of parent selector: _menu, _galleries, _buttons, _fields, and _elements. 2015-02-09 23:11:59 -06:00
Gabriel Luethje b83c659915 Remove duplicate CSS rules for `small` - refs #694 2015-02-06 16:23:37 -07:00
Konstantin Obenland ec2a5e212a Fixed merge conflicts. 2015-01-14 09:35:02 -08:00
Ian Dunn 6b0c7717c9 Set a fixed table-layout in the clearfix to avoid max-width conflict.
Some browsers ignore the max-width property on children of elements with display: table.

See http://www.carsonshold.com/2014/07/css-display-table-cell-child-width-bug-in-firefox-and-ie/
2015-01-11 13:50:06 -08:00
Ian Dunn 3d6bd4df39 Remove unnecessary margin-top and margin-bottom from center-block mixin.
Setting top and bottom margins is not necessary to center the element, and it can potentially override the margins set by another rule.
2015-01-11 11:33:19 -08:00
Kazue Igarashi 894bd6b5d3 Use core navigation template tags.
* Remove custom arguments from `the_posts_navigation()` and `the_post_navigation()`.
* Adjust fallbacks for `the_posts_navigation()` and `the_post_navigation()`.
* update pot file.
* merge master for style.css and style.scss.
2015-01-07 09:23:28 -08:00
Konstantin Obenland 115221ea34 Bring back box-sizing reset.
Props @chrisdc.
See #674.
2014-12-31 12:27:05 -08:00
Konstantin Obenland 75c5023576 _s: Use semantic versioning.
Fairly minor and noncommittal change. It does encourage theme authors
to think about semantically versioning their themes but doesn’t require
`_s` to take a strong stand on it.

It also removes an obstacle from submitting the generated theme to the
WordPress.org Theme Directory, as it refuses themes with non-numeric
version numbers.

Fixes https://github.com/Automattic/underscores.me/issues/8
Closes https://github.com/Automattic/underscores.me/pull/20
Props @ScottSmith95.
2014-12-30 20:34:51 -08:00
Konstantin Obenland 01819a8a0a _s: Update copyright year in anticipation of 2015. 2014-12-30 20:08:44 -08:00
Konstantin Obenland de7a9b576b _s: Remove leading white space for theme name.
At some point in the past it was believed that a leading whitespace was
necessary for a proper replacement.

Let’s see if the existing replace handler can indeed handle it without
it.

See
https://github.com/Automattic/underscores.me/commit/7671cad5685ae8df50a0
2f871a1ae28119b8dbf1
2014-12-30 20:05:47 -08:00
Konstantin Obenland 6c47be98c1 Normalize rather than Reset.
The reset we used was a mix of Normalize, the Paul Irish reset,
sprinkled with some blueprint.css, and base styles. It was hard to
maintain and just seemed outdated (setting the base font-size to 10px
instead of 16px, among other things).

Normalize sets saner defaults and is generally just not as disruptive
as a full reset.

The code was added as is, has only its comments stripped (for now), and
is not mixed with any styles to make future updates to it as easy as
possible.

See #3, #44, #174, #267, #617.
2014-12-30 01:28:19 +01:00
sixhours 204654ac1f Revert previous (unintentional) commit 2014-12-17 15:09:44 -05:00
sixhours 88f94a9a4e First pass at fixing drop-down menus for touch
This patch allows the user to view a site on a touch screen tablet and
access child menus by clicking on the parent once, or access the parent
by clicking on it twice. Props @iamtakashi for the original fix.
2014-12-17 15:03:17 -05:00
Konstantin Obenland e4a252b630 _s: Merge branch 'pr/609'.
Props @mor10 for documentation.
Fixes #641.
2014-11-05 17:19:10 -08:00
Konstantin Obenland 921992277d _s: Merge branch 'pr/616'. 2014-11-05 17:02:58 -08:00
Konstantin Obenland 8ba2a53f3a _s: Remove remaining box-sizing prefix.
Also removes the box-sizing mixin, as it is of no use anymore.

See http://caniuse.com/#feat=css3-boxsizing
See #558.

Fixes #561.
2014-11-05 16:53:52 -08:00
Konstantin Obenland 69171d3ea3 _s: Merge branch 'pr/561'. 2014-11-05 16:49:07 -08:00
Tim Moore 85247e7996 Merge pull request #605 from 1upon0/master
Update style.css fixes #587
2014-09-21 09:48:40 -06:00
Ram Ratan Maurya 1ca71befe2 Remove border-radius mixin 2014-09-14 22:56:29 +05:30
Emil Uzelac e6ffa223e0 Double quotes for consistency
```_s``` uses ```""``` throughout except in clearings.
2014-09-09 21:39:38 -05:00
Stefan Brechbühl f0340a66e4 Delete hyphens
in comment headings
2014-09-01 22:44:54 +02:00
Yash Gupta a88e0e989e Update style.css
fixes #587
2014-09-01 17:00:07 +05:30
Mike Griffiths 16587b5123 Removed vendor prefixes, except where it fixes a specific bug or quirk 2014-08-11 18:20:09 +01:00
Fränk Klein 17c12ec0e5 Remove Domain Path from style.css
Indicating a domain path is optional, if you use the default, there is
no need to specify it.
2014-08-06 08:55:45 +02:00
Konstantin Obenland 048057ad68 Merge branch 'updated-hAtom' of https://github.com/slobodan/_s into slobodan-updated-hAtom 2014-07-30 14:35:44 -05:00
Greg Rickaby 99287281cf return all the things! Also, add display: block; to some empty selectors (to tie in with _sass) 2014-07-29 15:54:08 -05:00
Tammie Lister eb58df8d30 Revert the change to spacing in #517
Adds back in space for now. Props @lancewillett
2014-06-21 00:39:40 +01:00
Emil Uzelac f74b591348 Minor spacing fix for main navigation
Just an itsy-bitsy space removal, no biggie, but needed :)
2014-06-19 23:49:33 -05:00
Konstantin Obenland 1c42386783 _s: Document background color fallback.
A default background color is needed for any time there is no custom background color.
This happens to use the browser's default `#fff`, and is meant more as a reminder for theme authors.

See #515.
2014-06-19 13:20:30 +02:00
Slobodan Manic 00570514d4 Adds .updated class to .entry-date when needed 2014-06-15 13:20:06 +02:00
Emil Uzelac 9f295c197d textarea width
We can safely increase the textarea width from 98% to 100%. 

```box-sizing``` handles the layout nicely and it won't allow the overflow. 

If more details is needed, please see: http://davidwalsh.name/textarea-width this is the best example I could find.
2014-05-28 00:05:18 -05:00
Emil Uzelac 92128bbc7d Border Color
Minor CSS optimization for border and border color.

For the border itself, we don't need to include the color in ```border: {}```, color is already added in ```border-color: {}```. 

Since the Theme uses shorthands for padding/margins, why not do the same for the border colors as well.
2014-05-26 16:00:23 -05:00
David A. Kennedy f8c52a8114 Change position for left to match WordPress CSS standards. 2014-05-24 13:30:50 -04:00
David A. Kennedy 1365515b74 Merge with upstream/master. 2014-05-20 15:56:31 -04:00
Konstantin Obenland f1dd4b2c2a _s: Revert f955fca630
The leading whitespace is needed to replace this `_s` instance with the theme name.
It's obviously a hack, since it also leaves the theme name with a leading white space, but short of adding a new replace logic for this specific line in `style.css`, it's the easiest way to achieve that.

See #304, where this was brought up before.
2014-05-20 10:53:10 -05:00
Lance Willett 86a0cd531d Pinking shears (remove trailing spaces) in two files. 2014-05-18 13:09:20 -07:00
Lance Willett f955fca630 Remove leading space in stylesheet comment. 2014-05-18 13:08:41 -07:00
Konstantin Obenland 2d0ebc79cd Merge pull request #492 from mor10/screen-reader-text_overflow
Fixes overflow issue on .screen-reader-text. See #484.
2014-05-15 05:26:15 -07:00
David A. Kennedy 03fbbf84fd Adjust dropdown menu styles so they work with screen readers and align with Twenty Fourteen techniques. 2014-05-14 22:12:26 -04:00
Morten Rand-Hendriksen bb4bf557c6 Fixes overflow issue when hidden content with the .screen-reader-text class is positioned hard right. 2014-05-14 18:30:36 -07:00
James 69930e3786 Update style.css
_s does not support IE6/7 so this is not necessary.
2014-05-02 15:25:46 -04:00
Philip Arthur Moore 53f62fa23a Merge pull request #459 from philiparthurmoore/menu-a11y
a11y improvements on primary navigation menu toggle
2014-04-27 11:48:11 +07:00
Konstantin Obenland aeaf200a58 _s: Simplify caption styles to work in HTML5 mode.
Since HTML5 captions removed the additional 10px that HTML4 versions
come with, the `max-width: 98%;` rule made images blurry. This slightly
simplifies caption styles while still providing support for both HTML4
and HTML5 versions.

See #443.
2014-04-25 11:25:48 -05:00
Philip Arthur Moore d3dd7fb3fe Remove style redundancy for menu toggle; cursor pointer is already defined for buttons. 2014-04-18 06:43:25 -05:00
Konstantin Obenland 4dd7a16f36 _s: Simplify gallery styles.
It consolidates the duplicate `.gallery` selectors, and removes image
styles that needlessly override their earlier defined styles.

Also switches to use inline-block over floats, and adds documentation
for caption styles, to be coherent with documentation for gallery
styles.
2014-04-11 13:24:38 -07:00
Scott Smith adb609bfde Cleaned up gallery styles, per PR review 2014-03-07 15:22:06 -06:00
Scott Smith 98c0f823e1 Add Gallery Styles
Patch for #425
2014-03-05 23:41:15 -06:00
Konstantin Obenland 0f689b25f4 _s: Restore default styles for `<img>` elements.
Lost in 651b89e497.
2014-03-05 20:41:56 -06:00
Konstantin Kovshenin 9b0ae42c56 Maintain backwards compatibility for non-HTML5 galleries. 2014-02-27 13:42:24 -06:00
Konstantin Kovshenin 85bce0cc74 Add HTML5 support for WordPress galleries. 2014-02-27 13:27:00 -06:00
Emil Uzelac 1eca4bfff5 Selector Hack
```*vertical-align: middle; /* Improves appearance and consistency in all browsers */``` does not apply to all browsers. 

Selector hack ```*``` is IE6/IE7 only. See https://gist.github.com/necolas/983116
2014-02-24 22:35:49 -06:00
Emil Uzelac d5d6d146ed Forms
Proposing to reword Inputs and Buttons with Forms. This way we can cover more than just couple of elements. Select feels like an outsider and textarea too, even though it's technically an input.

This will also be a perfect match with the rest :)

N.B. Something went wrong with my last proposal, sorry about that.
2014-02-23 18:16:53 -06:00
Tammie Lister 9f4d5a9188 Adds in specific classes rather than using wider navigation selector 2014-02-10 17:35:23 +00:00
Sean Davis 8349625b87 Fixed 'Media' table of contents number
The table of contents labeled both ‘Infinite scroll’ and ‘Media’ as
11.0. Media is 12.0.
2014-02-08 12:39:35 -06:00
Tammie Lister 1623325300 Fix spelling of word Accessibility 2014-02-07 18:37:28 +00:00
Tammie Lister 651b89e497 Adds in comments and sections for style.css 2014-02-07 12:16:08 +00:00
Ram Ratan Maurya 7b8e1c4c2e Update Copyright Year 2014-02-03 17:05:12 +05:30
richardmtl eb948eac28 removing uneeded CSS declaration, adding a note, and reordering some declarations
originally submitted here:
https://github.com/richardmtl/_s/commit/5d15eef59b838200cd255bea6d954064
e87cf3cf ; additional note and explanation found there
2013-12-21 10:58:10 -05:00
sixhours 2ccb74c5c8 Merge pull request #342 from Automattic/border-box
Apply a natural box layout model to all elements; see #341. Props @philiparthurmoore
2013-12-16 06:25:05 -08:00
Eli McMakin 44398c68a3 Fixed Issue #354: Removed link on line 90 that was going to a page that no longer exists. 2013-12-09 21:51:18 -06:00
Emil Uzelac 9c6aff64f6 List for main-navigation
Hey guys, I am proposing to remove li in front of the current_page_item and current-menu-item. It's slightly more efficient without and of course all works the same :)
2013-12-02 20:31:15 -06:00
Tracy Rotton 924b5a0a60 Fixed typo in inline comments. 2013-11-17 22:24:13 -05:00
Philip Arthur Moore 73d72d6791 Apply a natural box layout model to all elements; see #341. 2013-11-14 19:36:33 +07:00
obenland 6f63a0b39a _s: Adhere to updated WordPress core code formatting.
* Update PHPDoc.
* Add periods to the end of comment sentences.
* Limit line length to 80 chars.
* Use C++-style PHP comments only for function and file documentation.
2013-11-07 15:41:41 -04:00
Emil Uzelac a0eec6c63b html input
Proposing to remove html input from the button class. It overrides more than is needed. For example it will interfere with bbPress editor styles. It's safer to leave input[type="button"] as-is. Please see: http://i.imgur.com/Q98uqBH.png
2013-10-20 20:05:11 -05:00
Vinod Dalvi 430d379f4b Fixed minor WordPress coding standard issues. 2013-09-30 22:32:42 -07:00
Vinod Dalvi dbb5797ca5 Fixed some minor spacing issues. 2013-09-14 09:25:32 -07:00
Vinod Dalvi c7f8623716 Made Changes in CSS to Make it Adhere to WordPress CSS Coding Standards. 2013-09-12 14:15:25 -07:00
obenland dff92a0e9e _s: Be more specific about clearing elements.
(Introduced in b1d3b53)

While class attribute selectors are very powerful and might help in
keeping stylesheets concise and easier to maintain, they don't work very
well with a project like WordPress. Not only can third-party scripts
insert and rely on specific class names that get picked up by attribute
selectors for common class names. But more importantly WordPress passes
category and tag slugs on to post classes, which can result in
unpredictible results.

Fixes #284, fixes #309.
2013-09-12 13:11:38 +09:00
obenland 0ac069a0bf _s: Update selectors to reflect the changes in 810e499. Fixes #288. 2013-08-21 10:38:39 -04:00
Konstantin Obenland a462ad5720 Merge pull request #280 from jayj/jayj-underscores-url-selector
Add `url` to the list of input selectors.
2013-08-11 15:06:15 -07:00
Konstantin Obenland 3c4b905086 Merge pull request #279 from jayj/jayj-underscores-heading-spacing
Add spaces between heading selectors.
2013-08-07 08:26:21 -07:00
Jesper Johansen b5864622ee Add the <main> element to the list of HTML5 selectors 2013-08-07 00:59:28 +02:00
Jesper Johansen c8ca427356 Add a space between the heading selectors 2013-08-07 00:58:31 +02:00
Jesper Johansen 1108a8a582 Add `url` to the list of input selectors 2013-08-07 00:57:17 +02:00
Konstantin Kovshenin 167197dd07 Add a domain path header to the stylesheet for translation 2013-07-30 23:45:55 +04:00
obenland 1f15c20995 _s: Make theme headers translatable. Props @grappler. Fixes #203. 2013-07-30 11:58:13 -07:00
Calvin Winter 7276a13a4b Fixed bug where menu does not toggle on click
fixes the error described here: https://github.com/Automattic/_s/issues/261
2013-07-17 23:28:49 -04:00
michaeldcain 31331b4b64 Switch "navigation-" back to "-navigation"
Original edit not needed for `[class*="navigation"]` selector. Matches
other class/id navigation naming conventions.
2013-07-11 16:42:45 -04:00
michaeldcain d480e820c3 Switch ".navigation-main" back to ".main-navigation"
Original edit not needed for `[class*="navigation"]` selector. Matches
other class/id navigation naming conventions.
2013-07-11 16:17:12 -04:00
obenland d406dc8f8c _s: Add `.page-content` class to `style.css` to encourage styling. Also
removes some redundant comments.
2013-07-11 12:18:47 -07:00
obenland 6e22132768 _s: Update search form markup to make it forward compatible with HTML5
search form in 3.6. As a result, `searchfornm.php` can be safely
removed in the future. Also fixes #240.
2013-06-29 16:19:10 -04:00
obenland 39d8f7ad61 _s: Include "entry updated" as part of the hAtom. Props @michiecat. See
#131, fixes #170.
2013-06-27 06:54:02 -07:00
Michael Fields ac3cda4543 Rework Navigation Menu Part 2
* Separate scoping and assignment so that a decision does not need to be made as to whether we should intermix spaces and tabs on the left
 * Restore the previously removed nav-menu class addition to the first unordered list in `#site-navigation`.
 * Restore the `.navigation-main.toggled-on .nav-menu` selector.
 * Remove rules for the `.main-small-navigation ul` selector.
2013-06-25 01:45:52 -07:00
Michael Fields 4c396f6f9b Rework menu navigation: these changes build off pull request #239 for issue #200
* Only set button and menu if container is not null.
 * Break up the "return early" conditional into multiple parts.
 * Shorten the name of the toggled class from `toggled-on` to `toggled`.
 * Restore the "Hide menu toggle button if menu is empty." documentation.
 * Remove the `nav-menu` class. The previous code would replace any custom custom classes applied via `wp_nav_menu()` or template file.
 * Replace the `nav-menu` selector is style.css with selectors that will target both a custom nav menu and a page menu. These changes could use critical feedback. Do you know of an edge case where they might not work as expected?
2013-06-16 20:29:17 -07:00
obenland 99f6d17f9c _s: Revert reset changes. They were accidentally committed after
resolving merge conflicts.
2013-05-28 09:39:02 -07:00
obenland f0ed253d5b Merge branch 'custom_header_fix' of https://github.com/iamtakashi/_s
into iamtakashi-custom_header_fix

Conflicts:
	inc/custom-header.php
2013-05-28 09:31:59 -07:00
Philip Arthur Moore 1ea2ccd909 Remove hgroup from theme. It's dead now: http://www.sitepoint.com/html5-hgroup-element-dropped/. In its place a div will be use that inherits the old class that was being applied to header. 2013-04-23 15:45:23 +09:00
gatespace 48702363eb `nav-` prefix for css class 'previous/next'.
Re-introduce nav- prefix for previous/next links (see 6056c1e).
nav- prefix for css class 'previous/next'.
2013-04-22 20:08:49 +09:00
Philip Arthur Moore 790b765ac2 Ditch license.txt from theme and change License URI to canonical source of information on version 2 of the GNU General Public License. Also adjust theme license DocBlock to explicitly state that _s is GPL v2 or later. 2013-04-22 08:58:10 +09:00
Philip Arthur Moore ee7323950a Update copyright/license notice. The capital S in _S felt really weird. Also, shorten copyright text and re-arrange link to Underscores.me. 2013-04-04 11:45:57 -07:00
Philip Arthur Moore 5c3689cd67 Update stylesheet to include proper copyright and license attribution in style.css. Fixes #10 and also reverts the changes that were made in 06463db11d, since we can now use this copyright notice to find out which themes are based on Underscores. 2013-04-04 11:01:38 -07:00
obenland f424711c65 _s: Simplify the way we do responsive images. Props @philiparthurmoore.
Fixes #120.
2013-03-27 11:37:20 -07:00
obenland 4c120839ec _s: Remove vendor prefixes on box-shadow and some legacy IE6/7
adjustments. Props @SeamlessThemes. Fixes #176.
2013-03-26 15:39:48 -07:00
obenland 1ba2f62752 _s: Use .screen-reader-text rather than .assistive-text.
With 3.6 introducing many HTML5 improvements the need for custom
searchform and comment templates will vanish. To cope with core's
.screen-reader-text class, let's make the switch early.

Commit also adds core's focus styles for screen reader texts, so they
can actually be used.
2013-03-13 15:39:05 -07:00
Philip Arthur Moore 06463db11d Add an identifier into style.css that will allow us — the WordPress.com Theme Team — to easily search for themes that have been built with _s. Now there will be no more scratching our heads whenever someone asks, "What have you built with _s?" :) 2013-03-07 18:30:21 -06:00
obenland b1d3b5369c _s: Introduce a default for clearing floats.
Selectors provide clearing out of the box for the site container,
header, footer, main container, content container, entry content, and
comment content.

Also, theme developers can optionally use .clear as a utility class. Or
delete it.

For more information about the philosophy behind the approach of
selecting class elements, see
http://24ways.org/2012/a-harder-working-class/

Fixes #88.
2013-03-04 17:16:44 -08:00
obenland c4f2aa32ce _s: Formatting changes:
- Reduce element comments to either the element id or the first element
class.
- Tabs > Spaces.
- Improve adherence to formatting guidelines.
2013-03-04 16:41:38 -08:00
obenland 914c6c21de _s: Simpler selector for lists within lists. 2013-03-04 15:14:51 -08:00
michiecat afd1db501e Update style.css 2013-02-27 23:34:26 -08:00