Skip to content

Commit

Permalink
Dashify property names
Browse files Browse the repository at this point in the history
  • Loading branch information
whmii committed Nov 19, 2014
1 parent 2c6f9bf commit 1045859
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 49 deletions.
2 changes: 1 addition & 1 deletion _includes/dangerdanger.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions _includes/header.html
@@ -1,11 +1,11 @@
<nav class="site-navigation">
<a href="{{ site.repository_url }}" class="site-nav_item">
<a href="{{ site.repository_url }}" class="site-navigation-item">
github
</a>
<a href="{{ site.documentation_url }}" class="site-nav_item">
<a href="{{ site.documentation_url }}" class="site-navigation-item">
docs
</a>
<a href="{{ site.thoughtbot_url }}" class="site-nav_item">
<a href="{{ site.thoughtbot_url }}" class="site-navigation-item">
thoughtbot
</a>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion _includes/usage_illustration-large.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _includes/usage_illustration-small.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions index.html
Expand Up @@ -5,40 +5,40 @@
<main>

<section class="install">
<header class="install_header">
<header class="install-header">
<h1>01. Install</h1>
</header>
<section class="install_direction">
<div class="install_direction_step">
<p>Install high_voltage in your local system</p>
<code class="install_direction_sample">$ gem install high_voltage</code>
<section class="install-direction">
<div class="install-direction-step">
<p class="install-direction-instructions">Install high_voltage in your local system</p>
<code class="install-direction-sample">$ gem install high_voltage</code>
</div>
<div class="install_direction_step">
<p>Include high_voltage in your gemfile</p>
<code class="install_direction_sample">gem "high_voltage"</code>
<div class="install-direction-step">
<p class="install-direction-instructions">Include high_voltage in your gemfile</p>
<code class="install-direction-sample">gem "high_voltage"</code>
</div>
</section>
<section class="install_direction install_direction-optional">
<div class="install_direction_step">
<p>For Rails versions prior to 3.0, use the 0.9.2 tag of high_voltage</p>
<code class="install_direction_sample">$ gem "high_voltage", "~> 0.9.2"</code>
<section class="install-direction install_direction-optional">
<div class="install-direction-step">
<p class="install-direction-instructions">For Rails versions prior to 3.0, use the 0.9.2 tag of high_voltage</p>
<code class="install-direction-sample">$ gem "high_voltage", "~> 0.9.2"</code>
</div>
</section>
</section>

<section class="usage">
<header class="usage_header">
<header class="usage-header">
<h1>02. USAGE</h1>
</header>
<div class="usage_content">
<p class="usage_directions">Write your static pages and put them in the <code>/app/views/pages</code> directory</p>
<div class="usage-content">
<p class="usage-directions">Write your static pages and put them in the <code>/app/views/pages</code> directory</p>
{% include usage_illustration-small.svg %}
{% include usage_illustration-large.svg %}
</div>
</section>

<footer class="refrences">
<p class="refrences_documentation">
<p class="refrences-documentation">
For advanced configuration options <span></span> consult project <a href="{{ site.documentation_url }}">documentation</a>
</p>
<a href="https://www.youtube.com/watch?v=HD5tnb2RBYg">{% include dangerdanger.svg %}</a>
Expand Down
24 changes: 11 additions & 13 deletions stylesheets/modules/_install.scss
Expand Up @@ -2,8 +2,8 @@
margin-bottom: $gutter-width;
}

.install_header,
.install_direction {
.install-header,
.install-direction {
@extend %container;
background-color: $section-background-color;
border: 1px solid $base-border-color;
Expand All @@ -13,45 +13,43 @@
}
}

.install_direction {
.install-direction {
padding: 0;
text-transform: lowercase;
}

.install_direction p,
.install_direction_sample {
.install-direction-instructions,
.install-direction-sample {
padding: $gutter-width;
margin: 0;
}

.install_direction_step {
.install-direction-step {
@include clearfix;
}

.install_direction p {
.install-direction-instructions {
float: left;
}

.install_direction_sample,
.install_direction-optional {
.install-direction-sample {
border-bottom: 1px solid $base-border-color;
border-left: 1px solid $base-border-color;
float: right;
font-size: 1.25em;
min-width: 25rem;

.install_direction_step:last-child & {
.install-direction-step:last-child & {
border-bottom-style: none;
}
}

.install_direction-optional {
.install-direction-optional {
border-color: $alt-border-color;
border-top-color: $base-border-color;
background-color: white;

.install_direction_sample {
.install-direction-sample {
border-color: $alt-border-color;
}
}

2 changes: 1 addition & 1 deletion stylesheets/modules/_navigation.scss
Expand Up @@ -5,7 +5,7 @@
text-align: right;
}

.site-nav_item {
.site-navigation-item {
color: $dark-gray;
text-decoration: none;

Expand Down
8 changes: 4 additions & 4 deletions stylesheets/modules/_refrences.scss
Expand Up @@ -5,14 +5,14 @@
text-transform: lowercase;
}

.refrences_documentation {
.refrences-documentation {
border: 1px solid $base-accent-color;
padding: $gutter-width;
float: left;
font-size: 1.25em;
}

.refrences_dangerdanger {
.refrences-dangerdanger {
display: block;
margin-left: auto;
margin-right: auto;
Expand All @@ -21,15 +21,15 @@

@media screen and (min-width : $large-screen) {

.refrences_documentation {
.refrences-documentation {

span:after {
content: "";
display: block;
}
}

.refrences_dangerdanger {
.refrences-dangerdanger {
float: right;
}
}
18 changes: 9 additions & 9 deletions stylesheets/modules/_usage.scss
Expand Up @@ -2,14 +2,14 @@
margin-bottom: $gutter-width;
}

.usage_header,
.usage_content {
.usage-header,
.usage-content {
@extend %container;
background-color: $section-background-color;
border: 1px solid $base-border-color;
}

.usage_content {
.usage-content {
border-top-style: none;
position: relative;

Expand All @@ -19,32 +19,32 @@
}
}

.usage_directions {
.usage-directions {
max-width: 25em;
padding: $gutter-width;
}

.usage_illustration-small {
.usage-illustration-small {
display: block;
}

.usage_illustration-large {
.usage-illustration-large {
display: none;
}

@media screen and (min-width : $large-screen) {

.usage_directions {
.usage-directions {
@include position(absolute, 0em null null 0em);
border-right: 1px solid $base-border-color;
border-bottom: 1px solid $base-border-color;
}

.usage_illustration-small {
.usage-illustration-small {
display: none;
}

.usage_illustration-large {
.usage-illustration-large {
display: block;
font-size: 1.25em;
}
Expand Down

0 comments on commit 1045859

Please sign in to comment.