mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 05:51:22 +00:00
Added forum styling
Improvements to sizing/spacing
This commit is contained in:
parent
2912ff0bf3
commit
bdb1c9e47f
15 changed files with 135 additions and 101 deletions
BIN
app/assets/images/layout/body-background-full.png
Normal file
BIN
app/assets/images/layout/body-background-full.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
app/assets/images/layout/body-background.jpg
Normal file
BIN
app/assets/images/layout/body-background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.2 KiB |
|
@ -118,9 +118,8 @@
|
||||||
@include pad;
|
@include pad;
|
||||||
border-radius: $column-border-width + $column-border-radius;
|
border-radius: $column-border-width + $column-border-radius;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
background: lighten($light-gray, 5%);
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border: $column-border-width solid white;
|
position: relative;
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
|
|
@ -36,6 +36,11 @@ body#tinymce {
|
||||||
margin-top: -35px;
|
margin-top: -35px;
|
||||||
padding: 10px $container-padding $container-padding $container-padding;
|
padding: 10px $container-padding $container-padding $container-padding;
|
||||||
background: image-url('layout/body-background.png') top center repeat-y;
|
background: image-url('layout/body-background.png') top center repeat-y;
|
||||||
|
|
||||||
|
&.full {
|
||||||
|
padding-top: 20px;
|
||||||
|
background-image: image-url('layout/body-background-full.png');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#forums {
|
#forums {
|
||||||
|
|
|
@ -24,7 +24,9 @@ header .banner {
|
||||||
padding: 30px 0;
|
padding: 30px 0;
|
||||||
padding-top: 50px;
|
padding-top: 50px;
|
||||||
color: white;
|
color: white;
|
||||||
line-height: 16px;
|
|
||||||
|
font-family: $header-font-family;
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
.fields {
|
.fields {
|
||||||
input[type=text],
|
input[type=text],
|
||||||
|
@ -39,6 +41,8 @@ header .banner {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 14px;
|
||||||
color: #497588;
|
color: #497588;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +89,7 @@ header .banner {
|
||||||
|
|
||||||
li {
|
li {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
li i {
|
li i {
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
input[type=text] {
|
input[type=text] {
|
||||||
background: #0e1010;
|
background: #0e1010;
|
||||||
border: 1px solid #494949;
|
border: 1px solid #494949;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls {
|
.controls {
|
||||||
|
|
|
@ -27,12 +27,9 @@
|
||||||
|
|
||||||
div#categories {
|
div#categories {
|
||||||
|
|
||||||
h3 {
|
.category {
|
||||||
margin: 0.75em 0;
|
@include clearfix;
|
||||||
|
margin: 20px 0;
|
||||||
&:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -45,25 +42,34 @@ div#categories {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-shadow: $light-shadow;
|
box-shadow: $light-shadow;
|
||||||
border-radius: $base-border-radius;
|
border-radius: 10px;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
thead th {
|
thead th {
|
||||||
@include linear-gradient($blue, $dark-blue);
|
@include linear-gradient(#15181b, #0d1011);
|
||||||
padding-top: 0.75em;
|
padding-top: 0.75em;
|
||||||
padding-bottom: 0.75em;
|
padding-bottom: 0.75em;
|
||||||
font-family: $header-font-family;
|
font-family: $header-font-family;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: white;
|
color: white;
|
||||||
|
border-bottom: 0;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-radius: $base-border-radius 0 0 0;
|
border-radius: 10px 0 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-radius: 0 $base-border-radius 0 0;
|
border-radius: 0 10px 10px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
th.category {
|
||||||
|
font-family: 'Impact';
|
||||||
|
color: #36b1ff;
|
||||||
|
font-size: 24px;
|
||||||
|
padding-left: 20px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bullet {
|
.bullet {
|
||||||
|
@ -118,7 +124,7 @@ div#categories {
|
||||||
}
|
}
|
||||||
|
|
||||||
thead th {
|
thead th {
|
||||||
@include linear-gradient($blue, $dark-blue);
|
@include linear-gradient(#15181b, #0d1011);
|
||||||
padding-top: 0.75em;
|
padding-top: 0.75em;
|
||||||
padding-bottom: 0.75em;
|
padding-bottom: 0.75em;
|
||||||
font-family: $header-font-family;
|
font-family: $header-font-family;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.country {
|
.country {
|
||||||
width: 5%;
|
width: 7%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
|
@ -71,7 +71,10 @@
|
||||||
#members {
|
#members {
|
||||||
table-layout: auto;
|
table-layout: auto;
|
||||||
|
|
||||||
.country,
|
.country {
|
||||||
|
width: 7%;
|
||||||
|
}
|
||||||
|
|
||||||
.age {
|
.age {
|
||||||
width: 5%;
|
width: 5%;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +96,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.joined {
|
.joined {
|
||||||
width: 10%;
|
width: 15%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.joined {
|
.joined {
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
#users {
|
#users {
|
||||||
table-layout: auto;
|
table-layout: auto;
|
||||||
|
|
||||||
.country,
|
.country {
|
||||||
|
width: 7%;
|
||||||
|
}
|
||||||
|
|
||||||
.age {
|
.age {
|
||||||
width: 5%;
|
width: 5%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,13 +5,11 @@
|
||||||
<% forums = cuser ? cat.forums.available_to(cuser, Forumer::ACCESS_READ).ordered : cat.forums.public.ordered %>
|
<% forums = cuser ? cat.forums.available_to(cuser, Forumer::ACCESS_READ).ordered : cat.forums.public.ordered %>
|
||||||
<% next if forums.length == 0 %>
|
<% next if forums.length == 0 %>
|
||||||
|
|
||||||
<h3><%=h cat.name %></h3>
|
|
||||||
<div class="category">
|
<div class="category">
|
||||||
<table class="category striped">
|
<table class="category striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th colspan="2" class="category"><%=h cat.name %></th>
|
||||||
<th class="forums">Forums</th>
|
|
||||||
<th class="actions"></th>
|
<th class="actions"></th>
|
||||||
<th class="topics">Topics</th>
|
<th class="topics">Topics</th>
|
||||||
<th class="posts">Posts</th>
|
<th class="posts">Posts</th>
|
||||||
|
|
|
@ -1,15 +1,21 @@
|
||||||
<div class="gather-columns">
|
<div class="gather-columns">
|
||||||
<div class="data players">
|
<div class="data players">
|
||||||
|
<div class="contents">
|
||||||
<%= render partial: "gatherers/list", locals: { team: nil } %>
|
<%= render partial: "gatherers/list", locals: { team: nil } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="data players">
|
|
||||||
<%= render partial: "gatherers/list", locals: { team: 1 } %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="data players">
|
<div class="data players">
|
||||||
|
<div class="contents">
|
||||||
|
<%= render partial: "gatherers/list", locals: { team: 1 } %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="data players">
|
||||||
|
<div class="contents">
|
||||||
<%= render partial: "gatherers/list", locals: { team: 2 } %>
|
<%= render partial: "gatherers/list", locals: { team: 2 } %>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render partial: "status" %>
|
<%= render partial: "status" %>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<div class="gather-columns">
|
<div class="gather-columns">
|
||||||
<div class="data players">
|
<div class="data players">
|
||||||
|
<div class="contents">
|
||||||
<h4>Signed Up</h4>
|
<h4>Signed Up</h4>
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,6 +18,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= render partial: 'votes' %>
|
<%= render partial: 'votes' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<% vote_maps, vote_servers = false %>
|
<% vote_maps, vote_servers = false %>
|
||||||
|
|
||||||
<div class="data servers">
|
<div class="data servers">
|
||||||
|
<div class="contents">
|
||||||
<h4>Server Votes</h4>
|
<h4>Server Votes</h4>
|
||||||
|
|
||||||
<ul class="votes">
|
<ul class="votes">
|
||||||
|
@ -25,9 +26,11 @@
|
||||||
<p>Click to vote</p>
|
<p>Click to vote</p>
|
||||||
<p><%= link_to "More servers", { controller: :servers }, { class: 'button tiny' } %></p>
|
<p><%= link_to "More servers", { controller: :servers }, { class: 'button tiny' } %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="data">
|
<div class="data">
|
||||||
|
<div class="contents">
|
||||||
<h4>Map Votes</h4>
|
<h4>Map Votes</h4>
|
||||||
|
|
||||||
<ul class="votes">
|
<ul class="votes">
|
||||||
|
@ -50,4 +53,5 @@
|
||||||
<% if vote_maps %>
|
<% if vote_maps %>
|
||||||
<p>Click to vote</p>
|
<p>Click to vote</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<div class="gather-columns">
|
<div class="gather-columns">
|
||||||
<div class="data">
|
<div class="data">
|
||||||
|
<div class="contents">
|
||||||
<h4>Vote Captains</h4>
|
<h4>Vote Captains</h4>
|
||||||
|
|
||||||
<table id="gatherers">
|
<table id="gatherers">
|
||||||
|
@ -25,6 +26,7 @@
|
||||||
<p>Click to vote for captain.</p>
|
<p>Click to vote for captain.</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= render partial: 'votes' %>
|
<%= render partial: 'votes' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue