Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements: Forms and form controls #75

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9f0eabe
changing compiled CSS output to compressed
talbs Apr 28, 2015
29d4b1a
Colors: simplifying core color scheme
talbs Apr 27, 2015
4bc1bb9
Fixup! - Addressing lint issues and script arrangement
Apr 28, 2015
944c72d
Reducing clutter, rearranging script compile
Apr 28, 2015
7b87626
Elements: Icons
Apr 15, 2015
3ac2a92
adding basic copy elements into patterns
talbs Apr 27, 2015
4c6bc70
PL: fix - correcting missing font-size Sass map value
talbs Apr 30, 2015
32f3f53
PL: updating headings example to use copy elements for context
talbs Apr 30, 2015
cb3401b
PL: correcting overriden color swatches
talbs Apr 30, 2015
2445326
Buttons: adjusting base settings
talbs Apr 30, 2015
45e73a0
Buttons: adding elevated alt styling
talbs Apr 30, 2015
950698d
Buttons: revise overlay style
talbs Apr 30, 2015
2c417bf
Buttons: removing secondary alt styling
talbs Apr 30, 2015
859e3d2
Buttons: removing default alt styling
talbs Apr 30, 2015
68e7480
Buttons: adjusting hover/focus/active state styling
talbs Apr 30, 2015
43b5259
Buttons: revising property order to match standards
talbs Apr 30, 2015
a5880ee
Buttons: polishing example preview styling
talbs Apr 30, 2015
ffdddef
Buttons: correcting/revising link hover/focus/active styling
talbs Apr 30, 2015
6654fff
Buttons: syncing up disabled state styling
talbs Apr 30, 2015
051247a
Adding Font Awesome fonts
May 7, 2015
aaf157f
Changing fa prefix to icon
May 8, 2015
d9ecd0e
simplfying font-face calls to only use modern file types
talbs May 15, 2015
0e52632
PL: updating directory structure to match pattern use in apps
talbs May 15, 2015
509a3bd
PL: moving Sass compile to standard app + edx-pl pattern
talbs May 15, 2015
c010789
PL: revamp styling + markup to use pattern rendering
talbs May 16, 2015
ae94355
PL: revising main.scss to mirror LTR/RTL compile set up
talbs May 17, 2015
0c5202b
adding RTL formal support to PL and patterns styling
talbs May 17, 2015
d95e925
PL correcting compilation order of _variables + _functions partials
talbs May 19, 2015
845551b
adding !default flag to configurable pattern variables/config
talbs May 19, 2015
ada96b8
removing pattern main compile files
talbs May 19, 2015
cd45906
PL: correcting improper sidebar text color values
talbs May 19, 2015
da5606e
Fix #66: adding overflow-y scroll to PL doc site sidebar
talbs May 19, 2015
c37a754
PL: revising supplemental nav + element :target styling
talbs Jun 2, 2015
dab140d
Updating config paths and new icon for checked radio
Jun 2, 2015
47db28d
PL: correcting broken element links to github repo .scss files + hidi…
talbs Jun 3, 2015
ba30c26
revising pattern-library static source dir name
talbs Jun 4, 2015
2a4ce4e
removing unnecessary Open Sans typeface files/resources
talbs Jun 4, 2015
f76e5af
updated README file
talbs Jun 4, 2015
b1b426c
making doc site namespacing more clear (pl -> pldoc)
talbs Jun 4, 2015
95f6174
clean up after revising dir/naming conventions
talbs Jun 5, 2015
574c53b
Adding HEX values to color swatches
Jun 3, 2015
05a6ac4
Elements - Forms
May 12, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 6 additions & 5 deletions README.md
Expand Up @@ -71,14 +71,14 @@ To view the Pattern Library locally (and to watch for any local changes to conte
gulp
```

This will run the `default` gulp task defined in `gulpfile.js`, which has the following task dependencies: `['styles', pl_styles', 'images', 'pl_images', pl_scripts, jekyll-build' 'watch']`
This will run the `default` gulp task defined in `gulpfile.js`, which has the following task dependencies: `['styles', pldoc_styles', 'images', 'pldoc_images', scripts, pldoc_scripts, jekyll-build', 'watch']`

* The `styles` and `pl_styles` tasks compile your css files.
* `images` and `pl_images` copies images from a source folder, performs optimizations, the outputs them into the build folder
* The `styles` and `pldoc_styles` tasks compile your css files.
* `images` and `pldoc_images` copies images from a source folder, performs optimizations, the outputs them into the build folder
* `jekyll-build` and `jekyll-rebuild` run the local jekyll server/preview and re-process any layouts, posts, or templates changed.
* `watch` will start watching source files and will re-run the appropriate tasks when those files change.

**NOTE: some gulp tasks had to be separated to support both the pattern library 1)elements and 2)reference site UI separately.** Any task prefixed with `pl_*` refers to the reference site UI and not the elements.
**NOTE: some gulp tasks had to be separated to support both the pattern library 1)elements and 2)reference site UI separately.** Any task prefixed with `pldoc_*` refers to the reference site UI and not the elements.

### Publishing & Viewing Remotely
The most up-to-date version of the library can be viewed on our public domain, **http://ux.edx.org**
Expand Down Expand Up @@ -111,8 +111,9 @@ When contributing, its assumed that you're already familar with the following:
###Pattern Library Elements vs. Reference Site UI
This repository contains both the code needed to generate pattern library elements as well as a reference site to view/learn about these elements. When and where possible, we've tried to keep the assets needed for both separate by:

* prefixing any reference site UI with `pl-*` class names in our site templates and Sass/CSS;
* prefixing any reference site UI with `pldoc-*` class names in our site templates and Sass/CSS;
* containing any reference site UI within the ``_src/pl/`` directory.
* the main pattern library files are contained within the ``_src/pattern-library`` and never compile on their own, but are rather used in this site's and other application's Sass compile files.

- - -

Expand Down
5 changes: 2 additions & 3 deletions _includes/assets-primary.html
@@ -1,3 +1,2 @@
<link rel="stylesheet" href="{{ site.baseurl }}public/pl/css/main.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/pl/css/syntax.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/main-ltr.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/pldoc/css/main-ltr.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/pldoc/css/syntax.css">
3 changes: 2 additions & 1 deletion _includes/assets-secondary.html
@@ -1 +1,2 @@
<script src="{{ site.baseurl }}public/pl/js/main.min.js"></script>
<script src="{{ site.baseurl }}public/js/pattern-library.js"></script>
<script src="{{ site.baseurl }}public/pldoc/js/pldoc.js"></script>
2 changes: 2 additions & 0 deletions _includes/canvas-assets-primary.html
@@ -0,0 +1,2 @@
<link rel="stylesheet" href="{{ site.baseurl }}public/pldoc/css/main-ltr.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/pldoc/css/syntax.css">
2 changes: 2 additions & 0 deletions _includes/canvas-assets-secondary.html
@@ -0,0 +1,2 @@
<script src="{{ site.baseurl }}public/js/main.min.js"></script>
<script src="{{ site.baseurl }}public/pldoc/js/main.min.js"></script>
6 changes: 3 additions & 3 deletions _includes/footer.html
@@ -1,5 +1,5 @@
<footer class="pl-footer-site">
<div class="pl-footer-site-copyright">
<p class="pl-copy">&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time> edX. All rights reserved.</p>
<footer class="pldoc-footer-site">
<div class="pldoc-footer-site-copyright">
<p class="pldoc-copy copy copy-micro">&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time> edX. All rights reserved.</p>
</div>
</footer>
14 changes: 7 additions & 7 deletions _includes/header.html
@@ -1,17 +1,17 @@
<header class="pl-header-site">
<header class="pldoc-header-site">
{% if page.title == "Home" %}
<h1 class="pl-header-site-title">
<a class="pl-link title-name" href="{{ site.baseurl }}">
<h1 class="pldoc-header-site-title">
<a class="pldoc-link title-name" href="{{ site.baseurl }}">
{{ site.title }}
</a>
<span class="title-description">{{ site.tagline }}</span>
<span class="title-description copy copy-base">{{ site.tagline }}</span>
</h1>
{% else %}
<h2 class="pl-header-site-title">
<a class="pl-link title-name" href="{{ site.baseurl }}">
<h2 class="pldoc-header-site-title">
<a class="pldoc-link title-name" href="{{ site.baseurl }}">
{{ site.title }}
</a>
<span class="title-description">{{ site.tagline }}</span>
<span class="title-description copy copy-base">{{ site.tagline }}</span>
</h2>
{% endif %}
</header>
42 changes: 21 additions & 21 deletions _includes/navigation.html
@@ -1,63 +1,63 @@
<nav class="pl-nav pl-nav-elements pl-nav-internal" id="pl-nav-elements">
<h2 class="pl-heading pl-nav-title">Elements</h2>
<nav class="pldoc-nav pldoc-nav-elements pldoc-nav-internal" id="pldoc-nav-elements">
<h2 class="pldoc-heading pldoc-nav-title hd-6">Elements</h2>

<ul class="nav-list list-elements">
{% assign sorted_elements_posts = site.categories.elements | sort: 'title' %}
{% for post in sorted_elements_posts %}
<li class="nav-list-item">
{% if page.title == "Home" %}
<a class="pl-link" href="#{{post.slug}}">{{post.title}}</a>
<a class="pldoc-link" href="#{{post.slug}}">{{post.title}}</a>
{% else %}
<a class="pl-link" href="{{post.url}}">{{post.title}}</a>
<a class="pldoc-link" href="{{post.url}}">{{post.title}}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>

<nav class="pl-nav pl-nav-documentation pl-nav-external" id="pl-nav-documentation">
<h2 class="pl-heading pl-nav-title">Documentation</h2>
<ul class="pl-list nav-list list-styleguides">
<nav class="pldoc-nav pldoc-nav-documentation pldoc-nav-external" id="pldoc-nav-documentation">
<h2 class="pldoc-heading pldoc-nav-title hd-6">Documentation</h2>
<ul class="pldoc-list nav-list list-styleguides">
<li class="nav-list-item">
<a class="pl-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-General">
<span class="pl-icon" aria-hidden="true">&#65514;</span>
<a class="pldoc-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-General">
<span class="pldoc-icon" aria-hidden="true">&#65514;</span>
General Styleguide
</a>
</li>
<li class="nav-list-item">
<a class="pl-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-HTML">
<span class="pl-icon" aria-hidden="true">&#65514;</span>
<a class="pldoc-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-HTML">
<span class="pldoc-icon" aria-hidden="true">&#65514;</span>
HTMLS Styleguide
</a>
</li>
<li class="nav-list-item">
<a class="pl-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-Sass-&-CSS">
<span class="pl-icon" aria-hidden="true">&#65514;</span>
<a class="pldoc-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-Sass-&-CSS">
<span class="pldoc-icon" aria-hidden="true">&#65514;</span>
Sass &amp; CSS Styleguide
</a>
</li>
<li class="nav-list-item">
<a class="pl-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-Accessibility">
<span class="pl-icon" aria-hidden="true">&#65514;</span>
<a class="pldoc-link" rel="external" href="https://github.com/edx/ux-pattern-library/wiki/Styleguide:-Accessibility">
<span class="pldoc-icon" aria-hidden="true">&#65514;</span>
Accessibility Styleguide
</a>
</li>
</ul>
</nav>

<nav class="pl-nav pl-nav-project pl-nav-external" id="pl-nav-project">
<h2 class="pl-heading pl-nav-title">About This Project</h2>
<nav class="pldoc-nav pldoc-nav-project pldoc-nav-external" id="pldoc-nav-project">
<h2 class="pldoc-heading pldoc-nav-title hd-6">About This Project</h2>

<ul class="nav-list list-project">
<li class="nav-list-item">
<a class="pl-link" rel="external" href="https://github.com/edx/ux-pattern-library/">
<span class="pl-icon" aria-hidden="true">&#65514;</span>
<a class="pldoc-link" rel="external" href="https://github.com/edx/ux-pattern-library/">
<span class="pldoc-icon" aria-hidden="true">&#65514;</span>
View on Github
</a>
</li>
<li class="nav-list-item">
<a class="pl-link" rel="external" href="https://openedx.atlassian.net/browse/UX-1396">
<span class="pl-icon" aria-hidden="true">&#65514;</span>
<a class="pldoc-link" rel="external" href="https://openedx.atlassian.net/browse/UX-1396">
<span class="pldoc-icon" aria-hidden="true">&#65514;</span>
Project Planning
</a>
</li>
Expand Down
26 changes: 13 additions & 13 deletions _layouts/default.html
Expand Up @@ -3,26 +3,26 @@

{% include head.html %}

<body class="pl view-{{ page.viewclass }}">
<nav class="pl-nav-skip pl-sr">
<h2 class="pl-nav-skip-title">Skip to:</h2>
<a class="pl-action-skip" href="#content-main">this page's main content</a>
<a class="pl-action-skip" href="#nav-patterns">list of edX patterns</a>
<a class="pl-action-skip" href="#nav-documentation">list of edX documentation</a>
<body class="pldoc view-{{ page.viewclass }}">
<nav class="pldoc-nav-skip sr-only">
<h2 class="pldoc-nav-skip-title">Skip to:</h2>
<a class="pldoc-action-skip" href="#content-main">this page's main content</a>
<a class="pldoc-action-skip" href="#nav-patterns">list of edX patterns</a>
<a class="pldoc-action-skip" href="#nav-documentation">list of edX documentation</a>
</nav>

<hr class="pl-divider pl-sr">
<hr class="pldoc-divider sr-only">

<div class="pl-wrapper-view">
<div class="pl-wrapper-content" id="content-top">
<div class="pl-wrapper-content-supplemental">
<div class="pldoc-wrapper-view">
<div class="pldoc-wrapper-content" id="content-top">
<div class="pldoc-wrapper-content-supplemental">
{% include sidebar.html %}
</div>

<hr class="pl-divider pl-sr">
<hr class="pldoc-divider sr-only">

<div class="pl-wrapper-content-main">
<main class="pl-content pl-content-main" id="content-main">
<div class="pldoc-wrapper-content-main">
<main class="pldoc-content pldoc-content-main" id="content-main">
{{ content }}
</main>
</div>
Expand Down
10 changes: 5 additions & 5 deletions _layouts/documentation.html
Expand Up @@ -4,15 +4,15 @@
viewclass: documentation
---

<div class="pl-wrapper-documentation">
<article class="pl-documentation documentation-{{ page.slug }}">
<h1 class="pl-heading pl-documentation-title">{{ page.title }}</h1>
<div class="pldoc-wrapper-documentation">
<article class="pldoc-documentation documentation-{{ page.slug }}">
<h1 class="pldoc-heading pldoc-documentation-title">{{ page.title }}</h1>

<div class="pl-documentation-copy">
<div class="pldoc-documentation-copy">
{{ content }}
</div>

<div class="pl-documentation-meta">
<div class="pldoc-documentation-meta">

</div>
</article>
Expand Down
66 changes: 38 additions & 28 deletions _layouts/element.html
Expand Up @@ -4,63 +4,73 @@
viewclass: element
---

<div class="pl-wrapper-element">
<article class="pl-element pl-element-{{ page.slug }}">
<header class="pl-element-header">
<h1 class="pl-heading pl-element-title">{{ page.title }}</h1>
<div class="pldoc-wrapper-element">
<article class="pldoc-element pldoc-element-{{ page.slug }}">
<header class="pldoc-element-header">
<h1 class="pldoc-heading pldoc-element-title hd-4">{{ page.title }}</h1>

<ul class="pl-list pl-element-meta">
<ul class="pldoc-list pldoc-element-meta copy copy-micro de-emphasized">
<li class="meta meta-updated">
<span class="pl-element-meta-updated-label">Last updated on </span>
<time class="pl-element-meta-updated-value" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%-m/%-d/%Y" }}</time>
<span class="pldoc-element-meta-updated-label">Last updated on </span>
<time class="pldoc-element-meta-updated-value" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%-m/%-d/%Y" }}</time>
</li>
</ul>
</header>

<div class="pl-element-info">
<p>{{page.info}}</p>
<div class="pldoc-element-info">
<p class="copy copy-base">{{page.info}}</p>
</div>

<div class="pl-tab-wrapper">
<div class="pldoc-tab-wrapper">
{% if page.tags contains "pattern" %}
<ul class="pl-tab-labels pl-list pl-element-navigation">
<li class="pl-tab-label">
<a class="pl-link is-active" href="#{{page.slug}}-preview">Preview</a>
<ul class="pldoc-tab-labels pldoc-list pldoc-element-navigation">
<li class="pldoc-tab-label">
<a class="pldoc-link pldoc-link-preview is-active" href="#{{page.slug}}-preview">Preview</a>
</li>
<li class="pl-tab-label">
<a class="pl-link" href="#{{page.slug}}-markup">Markup</a>
<li class="pldoc-tab-label">
<a class="pldoc-link pldoc-link-markup" href="#{{page.slug}}-markup">Markup</a>
</li>
<li class="pl-tab-label">
<a class="pl-link" href="#{{page.slug}}-styling">Styling</a>
<li class="pldoc-tab-label">
<a class="pldoc-link pldoc-link-styling" href="#{{page.slug}}-styling">Styling</a>
</li>
</ul>
{% endif %}

<div class="pl-tabs">
<div class="pl-tab pl-element-preview is-active" id="{{page.slug}}-preview">
<h2 class="pl-heading pl-tab-heading pl-element-preview-title">{{page.title}} Preview</h2>
<div class="pldoc-tabs">
<div class="pldoc-tab pldoc-element-preview is-active" id="{{page.slug}}-preview">
<h2 class="pldoc-heading pldoc-tab-heading pldoc-element-preview-title">{{page.title}} Preview</h2>

<div class="pldoc-tab-content">
{% if page.tags contains "icons" %}
<div class="pldoc-settings">
<div class="pldoc-setting pldoc-setting-sizer">
<label for="iconFontSlider" class="is-hidden">Drag to resize icons</label>
<input id="iconFontSlider" type="range" min="12" max="144" step="12" value="24" role="slider" aria-min="12" aria-max="144" aria-now="24">
<input type="text" id="iconFontSliderValue" size="3" value="24" readonly="true">
</div>
</div>
{% endif %}

<div class="pl-tab-content">
{{page.content}}
</div>
</div>

{% if page.tags contains "pattern" %}
<div class="pl-tab pl-element-markup is-hidden" id="{{page.slug}}-markup">
<h2 class="pl-heading pl-tab-heading pl-element-markup-title">{{page.title}} Markup</h2>
<div class="pldoc-tab pldoc-element-markup is-hidden" id="{{page.slug}}-markup">
<h2 class="pldoc-heading pldoc-tab-heading pldoc-element-markup-title">{{page.title}} Markup</h2>

<div class="pl-tab-content">
<div class="pldoc-tab-content">
{% highlight html %}
{{page.content}}
{% endhighlight %}
</div>
</div>

<div class="pl-tab pl-element-styling is-hidden" id="{{page.slug}}-styling">
<h2 class="pl-heading pl-tab-heading pl-element-style-title">{{page.title}} Style</h2>
<div class="pldoc-tab pldoc-element-styling is-hidden" id="{{page.slug}}-styling">
<h2 class="pldoc-heading pldoc-tab-heading pldoc-element-style-title">{{page.title}} Style</h2>

<div class="pl-tab-content">
<p>You can find <a class="pl-link" href="{{site.github.path_scss}}{{page.scssurl}}">the original source of the CSS as SCSS</a> in this project's repo.</p>
<div class="pldoc-tab-content">
<p class="copy copy-base">You can find <a class="pldoc-link" href="{{site.github.path_scss}}{{page.scssurl}}">the original source of the CSS as SCSS</a> in this project's repo.</p>
</div>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions _layouts/page.html
Expand Up @@ -3,15 +3,15 @@
viewclass: page
---

<div class="pl-wrapper-page">
<article class="pl-page pl-page-{{ page.slug }}">
<h1 class="pl-heading pl-page-title">{{ page.title }}</h1>
<div class="pldoc-wrapper-page">
<article class="pldoc-page pldoc-page-{{ page.slug }}">
<h1 class="pldoc-heading pldoc-page-title">{{ page.title }}</h1>

<div class="pl-page-copy">
<div class="pldoc-page-copy">
{{ content }}
</div>

<div class="pl-page-meta">
<div class="pldoc-page-meta">

</div>
</article>
Expand Down