diff --git a/app/assets/stylesheets/custom.css.scss b/app/assets/stylesheets/custom.css.scss index 58aef00..e69de29 100644 --- a/app/assets/stylesheets/custom.css.scss +++ b/app/assets/stylesheets/custom.css.scss @@ -1,138 +0,0 @@ -@import "bootstrap"; - -/* mixins, variables, etc. */ - -$grayMediumLight: #eaeaea; -$lightGray: #999; -$grayLight: #999; -$grayDarker: #2F4F4F; -$grayLighter: #A8A8A8; -$blue: #0000FF; - -@mixin box_sizing { - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - box-sizing: border-box; -} - -/* universal */ - -html { - overflow-y: scroll; -} - -body { - padding-top: 60px; -} - -section { - overflow: auto; -} - -textarea { - resize: vertical; -} - -.center { - text-align: center; - h1 { - margin-bottom: 10px; - } -} - -/* typography */ - -h1, h2, h3, h4, h5, h6 { - line-height: 1; -} - -h1 { - font-size: 3em; - letter-spacing: -2px; - margin-bottom: 30px; - text-align: center; -} - -h2 { - font-size: 1.2em; - letter-spacing: -1px; - margin-bottom: 30px; - text-align: center; - font-weight: normal; - color: $grayLight; -} - -p { - font-size: 1.1em; - line-height: 1.7em; -} - - -/* header */ - -#logo { - float: left; - margin-right: 10px; - font-size: 1.7em; - color: white; - text-transform: uppercase; - letter-spacing: -1px; - padding-top: 9px; - font-weight: bold; - line-height: 1; - &:hover { - color: white; - text-decoration: none; - } -} - -/* footer */ - -footer { - margin-top: 45px; - padding-top: 5px; - border-top: 1px solid $grayMediumLight; - color: $grayLight; - a { - color: $gray; - &:hover { - color: $grayDarker; - } - } - small { - float: left; - } - ul { - float: right; - list-style: none; - li { - float: left; - margin-left: 10px; - } - } -} - -/* miscellaneous */ - -.debug_dump { - clear: both; - float: left; - width: 100%; - margin-top: 45px; - @include box_sizing; -} - - -#error_explanation { - color: #f00; - ul { - list-style: none; - margin: 0 0 18px 0; - } -} - -.field_with_errors { - @extend .control-group; - @extend .error; -} - diff --git a/app/views/layouts/_cdn.html.erb b/app/views/layouts/_cdn.html.erb index a2a4807..53233c9 100644 --- a/app/views/layouts/_cdn.html.erb +++ b/app/views/layouts/_cdn.html.erb @@ -2,7 +2,8 @@ - + + diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index ffd4dbd..bf7f9a3 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -1,23 +1,21 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index d082e4b..8860489 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,31 +1,36 @@ <% if params[:print] %> - - Wrestling App - - - <%= yield %> - - <% else %> - - Wrestling App - <%= render 'layouts/js' %> - <%= stylesheet_link_tag "application", media: "all", - "data-turbolinks-track" => true %> - <%= javascript_include_tag "application", "data-turbolinks-track" => true %> - <%= csrf_meta_tags %> - <%= render 'layouts/shim' %> - - - <%= render 'layouts/header' %> -
- + + Wrestling App + + <%= yield %> - <%= render 'layouts/footer' %> - <%= debug(params) if Rails.env.development? %> -
- - <% end %> + + <% else %> + + Wrestling App + <%= render 'layouts/cdn' %> + <%= stylesheet_link_tag "application", media: "all", + "data-turbolinks-track" => true %> + <%= javascript_include_tag "application", "data-turbolinks-track" => true %> + <%= csrf_meta_tags %> + <%= render 'layouts/shim' %> + + +
+ + <%= render 'layouts/header' %> + +
+
+
+
<%= yield %>
+
+
+
+
+ + <% end %>