Remove developer styleguide from project
Since we're actively moving our styles toward a pure of a USWDS implementation as possible, this styleguide page is becoming increasingly outdated.
This commit is contained in:
parent
3576551f42
commit
fea8c9bce9
@ -3,7 +3,7 @@
|
||||
"files": "^.secrets.baseline$|^.*pgsslrootcert.yml$",
|
||||
"lines": null
|
||||
},
|
||||
"generated_at": "2019-11-12T21:42:30Z",
|
||||
"generated_at": "2019-11-19T18:28:27Z",
|
||||
"plugins_used": [
|
||||
{
|
||||
"base64_limit": 4.5,
|
||||
@ -170,7 +170,7 @@
|
||||
"hashed_secret": "e4f14805dfd1e6af030359090c535e149e6b4207",
|
||||
"is_secret": false,
|
||||
"is_verified": false,
|
||||
"line_number": 657,
|
||||
"line_number": 656,
|
||||
"type": "Hex High Entropy String"
|
||||
}
|
||||
]
|
||||
|
@ -56,11 +56,6 @@ def home():
|
||||
return render_template("home.html")
|
||||
|
||||
|
||||
@bp.route("/styleguide")
|
||||
def styleguide():
|
||||
return render_template("styleguide.html")
|
||||
|
||||
|
||||
@bp.route("/<path:path>")
|
||||
def catch_all(path):
|
||||
try:
|
||||
|
@ -1,377 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% from "components/icon.html" import Icon %}
|
||||
{% from "components/modal.html" import Modal %}
|
||||
{% from "components/alert.html" import Alert %}
|
||||
{% from "components/tooltip.html" import Tooltip %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% call Modal(name='styleguideModal', dismissable=True) %}
|
||||
<h1>A modal dialog</h1>
|
||||
<hr>
|
||||
<p>We count thirty Rebel ships, Lord Vader. But they're so small they're evading our turbo-lasers! We'll have to destroy them ship to ship. Get the crews to their fighters. Luke, let me know when you're going in. I'm on my way in now... Watch yourself! There's a lot of fire coming from the right side of that deflection tower. I'm on it. Squad leaders, we've picked up a new group of signals. Enemy fighters coming your way.</p>
|
||||
<p>I hope the old man got that tractor beam out if commission, or this is going to be a real short trip. Okay, hit it! We're coming up on the sentry ships. Hold 'em off! Angle the deflector shields while I charge up the main guns! I can't believe he's gone. There wasn't anything you could have done. Come on, buddy, we're not out of this yet! You in, kid? Okay, stay sharp!</p>
|
||||
|
||||
<div class='action-group'>
|
||||
<a v-on:click="closeModal('styleguideModal')" class='action-group__action usa-button'>Close</a>
|
||||
<a class='action-group__action' v-on:click="closeModal('styleguideModal')">This also closes the modal</a>
|
||||
</div>
|
||||
{% endcall %}
|
||||
|
||||
|
||||
{{ Alert('A Warning Alert',
|
||||
message="\
|
||||
<p>This is a message. It is a very important message. Please note, <strong>proper semantic markup is required</strong> here, such as paragraph tags. Don't omit paragraph tags!</p>\
|
||||
<p>Also note the same for actions below. You'll need to include the full link markup.</p>\
|
||||
",
|
||||
actions='<a v-on:click="openModal(\'styleguideModal\')">Open a Modal Dialog</a>',
|
||||
level='warning'
|
||||
) }}
|
||||
|
||||
{{ Alert('A Success Alert',
|
||||
message="<p>Congratulations! You did a thing.</p>",
|
||||
level='success'
|
||||
) }}
|
||||
|
||||
{{ Alert('An Error Alert',
|
||||
message="<p>Booooo. You're the worst.</p>",
|
||||
level='error'
|
||||
) }}
|
||||
|
||||
{{ Alert('An Info Alert',
|
||||
message="<p>The more you know.</p>"
|
||||
) }}
|
||||
|
||||
<nav class='sidenav'>
|
||||
<ul>
|
||||
<li>
|
||||
<a href='/' class='sidenav__link sidenav__link--active' aria-current='true'>Navigation Item</a>
|
||||
<ul>
|
||||
<li><a href='/' class='sidenav__link sidenav__link--active'>Sub Navigation</a></li>
|
||||
<li><a href='/' class='sidenav__link'>Sub Navigation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/' class='sidenav__link'>Navigation Item</a>
|
||||
<ul>
|
||||
<li><a href='/' class='sidenav__link'>Sub Navigation</a></li>
|
||||
<li><a href='/' class='sidenav__link'>Sub Navigation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/' class='sidenav__link'>Navigation Item</a></li>
|
||||
<li><a href='/' class='sidenav__link'>Navigation Item</a></li>
|
||||
<li><a href='/' class='sidenav__link sidenav__link--disabled' aria-disabled='true'>Navigation Item</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class='col col--grow'>
|
||||
<div class="progress-menu progress-menu--three">
|
||||
<ul>
|
||||
<li class="progress-menu__item progress-menu__item--complete"><a href="#">Step One</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--active"><a href="#">Step Two</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--incomplete"><a href="#">Step Three</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="progress-menu progress-menu--four">
|
||||
<ul>
|
||||
<li class="progress-menu__item progress-menu__item--complete"><a href="#">Step One</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--active"><a href="#">Step Two</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--incomplete"><a href="#">Step Three</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--incomplete"><a href="#">Step Four</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="progress-menu progress-menu--five">
|
||||
<ul>
|
||||
<li class="progress-menu__item progress-menu__item--complete"><a href="#">Step One</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--active"><a href="#">Step Two</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--incomplete"><a href="#">Step Three</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--incomplete"><a href="#">Step Four</a></li>
|
||||
<li class="progress-menu__item progress-menu__item--incomplete"><a href="#">Step Five</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='panel'>
|
||||
<div class='panel__content'>
|
||||
<em>This is a panel content</em>
|
||||
<h1>Heading H1</h1>
|
||||
<h2>Heading H2</h2>
|
||||
<h3>Heading H3</h3>
|
||||
<h4>Heading H4</h4>
|
||||
<h5>Heading H5</h5>
|
||||
<h6>Heading H6</h6>
|
||||
|
||||
<p>This is a paragraph. <a href="\">Lorem ipsum dolor sit amet</a>, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class='col col--grow'>col 1</div>
|
||||
<div class='col col--grow'>col 2</div>
|
||||
<div class='col col--grow'>col 3</div>
|
||||
<div class='col col--grow'>col 4</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class='row'>
|
||||
<div class='col col--grow'>col 1</div>
|
||||
<div class='col col--grow'>col 2</div>
|
||||
<div class='col col--grow'>col 3</div>
|
||||
<div class='col col--grow'>col 4</div>
|
||||
<div class='col col--grow'>col 5</div>
|
||||
<div class='col col--grow'>col 6</div>
|
||||
<div class='col col--grow'>col 7</div>
|
||||
<div class='col col--grow'>col 8</div>
|
||||
<div class='col col--grow'>col 9</div>
|
||||
<div class='col col--grow'>col 10</div>
|
||||
<div class='col col--grow'>col 11</div>
|
||||
<div class='col col--grow'>col 12</div>
|
||||
</div>
|
||||
|
||||
<form>
|
||||
|
||||
<div class='usa-input usa-input--error'>
|
||||
<label for='basic-text-2'>
|
||||
Erroneous Text Input
|
||||
<span class='usa-input__help'>
|
||||
This is some help text to explain what this form field is and why you should fill it out.
|
||||
</span>
|
||||
{{ Icon('alert') }}
|
||||
</label>
|
||||
<input id='basic-text-2' type='text' placeholder='this is a sample of what you should enter' aria-invalid='true' aria-describedby='basic-text-2__errors'/>
|
||||
<span id='basic-text-2__errors' class='usa-input__message'>Oh boy you really screwed up big time, didn't you!</span>
|
||||
</div>
|
||||
|
||||
<div class='usa-input usa-input--warning'>
|
||||
<label for='basic-text-3'>
|
||||
Warning Text Input
|
||||
<span class='usa-input__help'>
|
||||
This is some help text to explain what this form field is and why you should fill it out.
|
||||
</span>
|
||||
{{ Icon('alert') }}
|
||||
</label>
|
||||
<input id='basic-text-3' type='text' placeholder='this is a sample of what you should enter' aria-describedby='basic-text-3__errors'/>
|
||||
<span id='basic-text-3__errors' class='usa-input__message'>Oh boy you really screwed up big time, didn't you!</span>
|
||||
</div>
|
||||
|
||||
<div class='usa-input usa-input--success'>
|
||||
<label for='basic-text-4'>
|
||||
Success Text Input
|
||||
<span class='usa-input__help'>
|
||||
This is some help text to explain what this form field is and why you should fill it out.
|
||||
</span>
|
||||
{{ Icon('ok') }}
|
||||
</label>
|
||||
<input id='basic-text-4' type='text' placeholder='this is a sample of what you should enter'/>
|
||||
</div>
|
||||
|
||||
<div class='usa-input'>
|
||||
<label for='basic-text'>
|
||||
Basic Text Input with a really long label that wraps and wraps and wraps and should really be separated into a label + help text
|
||||
</label>
|
||||
<textarea placeholder='this is a sample of what you should enter'/></textarea>
|
||||
</div>
|
||||
|
||||
<div class='usa-input'>
|
||||
<label for='selects'>Select Menu</label>
|
||||
<select name='selects'>
|
||||
<option selected disabled>Select an option</option>
|
||||
<option value='1'>One</option>
|
||||
<option value='2'>Two</option>
|
||||
<option value='3'>Three</option>
|
||||
<option value='4'>Four</option>
|
||||
<option value='5'>Five</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class='form-row'>
|
||||
<div class='form-col'>
|
||||
<div class='usa-input'>
|
||||
<fieldset class='usa-input__choices'>
|
||||
<legend>Checkboxes</legend>
|
||||
<input type='checkbox' id='checkbox-1' checked/>
|
||||
<label for='checkbox-1'>Checkbox One</label>
|
||||
|
||||
<input type='checkbox' id='checkbox-2' />
|
||||
<label for='checkbox-2'>Checkbox Two</label>
|
||||
|
||||
<input type='checkbox' id='checkbox-3' disabled />
|
||||
<label for='checkbox-3'>Checkbox Three</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='form-col'>
|
||||
<div class='usa-input usa-input--error'>
|
||||
<fieldset class='usa-input__choices usa-input__choices--inline'>
|
||||
<legend>Inline Checkboxes {{ Icon('alert') }}</legend>
|
||||
<input type='checkbox' id='checkbox-4'/>
|
||||
<label for='checkbox-4'>Checkbox Four</label>
|
||||
|
||||
<input type='checkbox' id='checkbox-5' />
|
||||
<label for='checkbox-5'>Checkbox Five</label>
|
||||
|
||||
<input type='checkbox' id='checkbox-6' disabled />
|
||||
<label for='checkbox-6'>Checkbox Six</label>
|
||||
|
||||
<span class='usa-input__message'>This is an error</span>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='form-row'>
|
||||
<div class='form-col'>
|
||||
<div class='usa-input usa-input--error'>
|
||||
<fieldset class='usa-input__choices' >
|
||||
<legend>Problem Radio Buttons {{ Icon('alert') }}</legend>
|
||||
|
||||
<input type='radio' name='radio' id='radio-1' />
|
||||
<label for='radio-1'>Radio One</label>
|
||||
|
||||
<input type='radio' name='radio' id='radio-2' />
|
||||
<label for='radio-2'>Radio Two</label>
|
||||
|
||||
<input type='radio' name='radio' id='radio-3' />
|
||||
<label for='radio-3'>Radio Three</label>
|
||||
|
||||
<span class='usa-input__message'>This is an error</span>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='form-col'>
|
||||
<div class='usa-input'>
|
||||
<fieldset class='usa-input__choices usa-input__choices--inline'>
|
||||
<legend>Radio Buttons</legend>
|
||||
|
||||
<input type='radio' name='radio-2' id='radio-4' checked />
|
||||
<label for='radio-4'>Radio Four</label>
|
||||
|
||||
<input type='radio' name='radio-2' id='radio-5' />
|
||||
<label for='radio-5'>Radio Five</label>
|
||||
|
||||
<input type='radio' name='radio-2' id='radio-6' />
|
||||
<label for='radio-6'>Radio Six</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel__content">
|
||||
<h5>Tooltips</h5>
|
||||
{{ Tooltip('this is a tooltip text') }}<code>default</code> <br>
|
||||
<span v-tooltip.top-start="'this is a tooltip text'">{{ Icon('help') }}</span><code>top-start</code> <br>
|
||||
<span v-tooltip.right="'this is a tooltip text'">{{ Icon('help') }}</span><code>right</code> <br>
|
||||
<span v-tooltip.bottom="'this is a tooltip text'">{{ Icon('help') }}</span><code>bottom</code> <br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel__content">
|
||||
<h5>Labels</h5>
|
||||
<span class="label">Label</span>
|
||||
<span class="label label--info">Label Info</span>
|
||||
<span class="label label--warning">Label Warning</span>
|
||||
<span class="label label--error">Label Error</span>
|
||||
<span class="label label--success">Label Success</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='panel'>
|
||||
Another panel without padding
|
||||
</div>
|
||||
|
||||
<div class='panel'>
|
||||
<div class='panel__content'>
|
||||
<h5>Icons</h5>
|
||||
<span class='nowrap'>{{ Icon('trash') }} 'trash' </span>
|
||||
<span class='nowrap'>{{ Icon('document') }} 'document' </span>
|
||||
<span class='nowrap'>{{ Icon('cloud') }} 'cloud' </span>
|
||||
<span class='nowrap'>{{ Icon('chart') }} 'chart' </span>
|
||||
<span class='nowrap'>{{ Icon('caret_up') }} 'caret_up' </span>
|
||||
<span class='nowrap'>{{ Icon('caret_down') }} 'caret_down' </span>
|
||||
<span class='nowrap'>{{ Icon('caret_right') }} 'caret_right' </span>
|
||||
<span class='nowrap'>{{ Icon('caret_left') }} 'caret_left' </span>
|
||||
<span class='nowrap'>{{ Icon('x') }} 'x' </span>
|
||||
<span class='nowrap'>{{ Icon('search') }} 'search' </span>
|
||||
<span class='nowrap'>{{ Icon('avatar') }} 'avatar' </span>
|
||||
<span class='nowrap'>{{ Icon('download') }} 'download' </span>
|
||||
<span class='nowrap'>{{ Icon('briefcase') }} 'briefcase' </span>
|
||||
<span class='nowrap'>{{ Icon('bell') }} 'bell' </span>
|
||||
<span class='nowrap'>{{ Icon('folder') }} 'folder' </span>
|
||||
<span class='nowrap'>{{ Icon('help') }} 'help' </span>
|
||||
<span class='nowrap'>{{ Icon('shield') }} 'shield' </span>
|
||||
<span class='nowrap'>{{ Icon('info') }} 'info' </span>
|
||||
<span class='nowrap'>{{ Icon('alert') }} 'alert' </span>
|
||||
<span class='nowrap'>{{ Icon('link') }} 'link' </span>
|
||||
<span class='nowrap'>{{ Icon('ok') }} 'ok' </span>
|
||||
<span class='nowrap'>{{ Icon('checkmark') }} 'checkmark' </span>
|
||||
<span class='nowrap'>{{ Icon('arrow-right') }} 'arrow-right' </span>
|
||||
<span class='nowrap'>{{ Icon('arrow-down') }} 'arrow-down' </span>
|
||||
<span class='nowrap'>{{ Icon('logout') }} 'logout' </span>
|
||||
<span class='nowrap'>{{ Icon('time') }} 'time' </span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class='block-list'>
|
||||
<header class='block-list__header'>
|
||||
<h3 class='block-list__title'>A Block List</h3>
|
||||
</header>
|
||||
<ul>
|
||||
<li class='block-list__item'>Block List Item</li>
|
||||
<li class='block-list__item'>Block List Item</li>
|
||||
<li class='block-list__item'>Block List Item</li>
|
||||
<li class='block-list__item'>Block List Item</li>
|
||||
<li class='block-list__item'>Block List Item</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div class='responsive-table-wrapper'>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='table-cell--expand'>Expanded Column</th>
|
||||
<th class='table-cell--hide-small'>Hidden on Small</th>
|
||||
<th class='table-cell--align-right'>Right Aligned</th>
|
||||
<th class='table-cell--shrink'>Shrunk</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class='table-cell--expand'>Table Cell</td>
|
||||
<td class='table-cell--hide-small'>Table Cell</td>
|
||||
<td class='table-cell--align-right'>1,234.56</td>
|
||||
<td class='table-cell--shrink'>Table Cell</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='table-cell--expand'>Table Cell</td>
|
||||
<td class='table-cell--hide-small'>Table Cell</td>
|
||||
<td class='table-cell--align-right'>1,231,253.43</td>
|
||||
<td class='table-cell--shrink'>Table Cell</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='table-cell--expand'>Table Cell</td>
|
||||
<td class='table-cell--hide-small'>Table Cell</td>
|
||||
<td class='table-cell--align-right'>564.54</td>
|
||||
<td class='table-cell--shrink'>Table Cell</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class='action-group'>
|
||||
<a href='/styleguide' class='action-group__action usa-button usa-button-big'>Action Group Button</a>
|
||||
<a href='/styleguide' class='action-group__action'>Action group link</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
@ -21,7 +21,6 @@ _NO_ACCESS_CHECK_REQUIRED = _NO_LOGIN_REQUIRED + [
|
||||
"atst.csp_environment_access", # internal redirect
|
||||
"atst.home", # available to all users
|
||||
"atst.jedi_csp_calculator", # internal redirect
|
||||
"atst.styleguide", # dev reference
|
||||
"dev.messages", # dev tool
|
||||
"dev.test_email", # dev tool
|
||||
"portfolios.accept_invitation", # available to all users; access control is built into invitation logic
|
||||
|
Loading…
x
Reference in New Issue
Block a user