Skip to content

Commit

Permalink
Merge branch 'bug/ie8-misc' of github.com:enspiral/loomio into produc…
Browse files Browse the repository at this point in the history
…tion

* 'bug/ie8-misc' of github.com:enspiral/loomio:
  More css formatting.
  Change header links to blue. Make all headers bold.
  group title added to new discussion
  custom header sizes removed
  • Loading branch information
skyriverbend committed Nov 15, 2012
2 parents 04cdcb0 + ad8830e commit 8f3142b
Show file tree
Hide file tree
Showing 24 changed files with 138 additions and 235 deletions.
4 changes: 3 additions & 1 deletion app/assets/stylesheets/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ $light-grey: #BBB;
$mid-grey: #777;
$dark-grey: #555;

// $header-link-color: #5E91C9;
$header-link-color: #4786CC;

$loomio-orange: #ffa600;
$header-color: #F2F2F2;
$header-titles-color: #555;
$navbar-text-color: #BFBFBF;

$error-color: firebrick;
Expand Down
23 changes: 10 additions & 13 deletions app/assets/stylesheets/discussions.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@ body.discussions.new {

/** discussion show form*/
body.discussions.show {
// .group-title {
// margin-bottom: 10px;
// padding-top: 43px;
// }
h2#discussion-title {
font-size: 22px;
}
.selector-panel {
background-color: $selector-panel;
@include border-radius(8px);
border: 1px solid $light-grey;
margin-bottom: 20px;
min-height: 59px;
padding-top: 2px;
h2.panel-header {
padding-left: 10px;
float: left;
min-height: 3px;
}
.dropdown {
float: right;
padding: 5px 10px;
Expand All @@ -41,7 +35,6 @@ body.discussions.show {
display: inline-block;
width: 850px;
margin: 0 0 4px 0px;
h1 { color: $dark-grey; }
}
#edit-discussion-title {
float: left;
Expand Down Expand Up @@ -100,7 +93,8 @@ body.discussions.show {
}

.header-text {
color: $mid-grey;
// color: $mid-grey;
// font-weight: bold;
line-height: 2.0em;
}
}
Expand Down Expand Up @@ -133,13 +127,13 @@ li s hard.motion-preview {
font-size: 14px; /* should prob use a $var here eh? */
}

.comment-body, .model-description, .motion {
.comment-body, .model-description, .motion .description {
p {
word-wrap: break-word;
}
ul, ol, li {
margin-left: 10px;
word-wrap: break-word;
word-wrap: break-word;
line-height: 18px;
}
ul{
Expand Down Expand Up @@ -168,6 +162,9 @@ li s hard.motion-preview {
h4{
font-size: 1.1em;
}
h5{
font-size: 1.0em;
}
}

/** Code block padding (Stops avatars destroying indentation) */
Expand Down
26 changes: 7 additions & 19 deletions app/assets/stylesheets/groups.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
// group title (on almost all pages)
.group-title {
margin: 0 0 10px 0;
h1 {
float: left;
line-height: 1.2em;
}
h1 page-title a {
color: $dark-grey;
}
.home-title {
display: inline;
color: $dark-grey;
Expand Down Expand Up @@ -43,6 +36,7 @@
.privacy-dropdown {
display: inline;
width: 120px;
bottom: 5px;
}
.privacy-dropdown .dropdown-menu a{
padding-left: 5px;
Expand Down Expand Up @@ -127,10 +121,7 @@ body.groups.show {
border: 1px solid $light-grey;
margin-bottom: 20px;
padding: 6px 6px;
h3 {
font-size: $font-medium;
color: $header-titles-color;
display: inline;
h4 {
line-height: 1.8em;
margin-bottom: 5px;
}
Expand Down Expand Up @@ -159,7 +150,6 @@ body.groups.show {

/*group panel*/
.sub-panel#groups{
h3 { display: block; }
ul {
.sub-group a{ padding-left: 20px; }
}
Expand Down Expand Up @@ -203,17 +193,11 @@ body.groups.show {

/* sub groups panel */
#sub-groups {
h3 { display: block; }
.group-link a:hover {
color: $dark-grey;
}
}

/* previous-discussions panel */
.previous-discussions-panel {
h3 { display: block; }
}

/* membership request panel */
#member-requests { display: inline; }

Expand Down Expand Up @@ -264,7 +248,11 @@ input#user_email{
/* membership panel */
.dropdown#members { padding-left: 5px; }

.user-name { float: left; }
.user-name {
float: left;
a:hover { color: $dark-grey; }
}

.membership-count {
float: right;
font-size: $font-small;
Expand Down
34 changes: 4 additions & 30 deletions app/assets/stylesheets/main.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,16 @@ html { height: 100%; }
body {
background-color: $main-background;
height: 100%;
color: $dark-grey;
}
hr {
margin: 1px;
}

// typography
h1 {
font-size: $font-xlarge;
color: $mid-grey;
a { color: $mid-grey; }
a:hover { color: $mid-grey; }
font-weight: normal;
line-height: 1.6em;
.group-title h2 {
color: #777;
display: inline;
}
h2 {
font-size: $font-large;
color: $header-titles-color;
font-weight: normal;
line-height: 1.6em;
display: inline;
}
h3 {
font-weight: bold;
font-size: $font-medium-large;
}

h4 {
font-weight: normal;
font-size: $font-small;
}
h5 {
font-size: $font-tiny;
a { color: $header-link-color; }
}

// structural elements (containers etc.)
Expand All @@ -61,9 +38,6 @@ h5 {
}
.popover { z-index: 10000; }

.sub-panel li .group-link a {
text-decoration: none;
}
.sub_group {font-size: $font-tiny;}

// #start-new-discussion { margin: 0 0 20px 2px; }
Expand Down
8 changes: 1 addition & 7 deletions app/assets/stylesheets/motions.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,8 @@
/*** proposal (discussion page)***/


#motion-title {
h2 {
float: left;
padding-right: 10px;
}
}
#content-proposal{
h3 { font-weight: normal; }
.motion-title { margin-top: 3px; }
margin-left: 0px;
.proposal-title-container {
width: 305px;
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/_see_closed_motions.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.sub-panel.previous-discussions-panel
%h3 Previous decisions
%h4 Previous decisions
= icon_button('#', 'See previous decisions', '/assets/pie-18.png', 'show-closed-motions')
2 changes: 1 addition & 1 deletion app/views/dashboard/_groups.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.sub-panel#groups
%h3 Groups
%h4 Groups
= icon_button(request_new_group_path, 'Request new group', '/assets/group-18.png', 'request-new-group')
%ul#dashboard-groups-list
- current_user.root_groups.each do |group|
Expand Down
2 changes: 1 addition & 1 deletion app/views/discussions/_title.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.clearfix
.large-icon.topic-icon
.discussion-title-container
%h1#discussion-title
%h2#discussion-title
= discussion.title

#edit-discussion-title.hidden
Expand Down
6 changes: 4 additions & 2 deletions app/views/discussions/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.page-container
%h2 Start a discussion
= render "/discussions/form", :discussion => @discussion, :user_groups => @user_groups#, :group => @group
- group = GroupDecorator.decorate(@discussion.group) if @discussion.group
= render '/groups/title', group: group
%h3 Start a discussion
= render "/discussions/form", :discussion => @discussion, :user_groups => @user_groups
6 changes: 3 additions & 3 deletions app/views/discussions/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
.row
.span6#content-history
.large-icon.discussion-icon.enabled-icon
%h2.header-text Discussion
%h3.header-text Discussion
#content-history-body
= render 'add_comment', discussion: @discussion
= render 'history', discussion: @discussion, history: @discussion.history

.span6#content-proposal
.large-icon.decision-icon
%h2.header-text Current decision
%h3.header-text Current decision
.content-proposal-body
%ul.selector-list
- if @current_motion
Expand All @@ -60,7 +60,7 @@
#previous-proposals
.clearfix
.large-icon.decision-icon
%h2.header-text Previous decisions
%h3.header-text Previous decisions

.content-proposal-body
%ul.selector-list
Expand Down
31 changes: 16 additions & 15 deletions app/views/group_requests/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
.row
.offset1.span3
= image_tag("mascot.gif")
.span6
%h1 Get started with Loomio
%br
%br
%p Exciting news! Loomio is now in private beta!
%p This means we’re still in development and have limited resources for user support, but we love bringing on nice groups that are keen to get on board early.
%p There’s some basic info at <a href ='http://loomio.org'>loomio.org</a> to make it easy to explain to your group why you’d like to use Loomio to make decisions together online.
%p If your group is keen, you can request access here:
%br
.page-container
.row
.offset1.span3
= image_tag("mascot.gif")
.span6
%h1 Get started with Loomio
%br
%br
%p Exciting news! Loomio is now in private beta!
%p This means we’re still in development and have limited resources for user support, but we love bringing on nice groups that are keen to get on board early.
%p There’s some basic info at <a href ='http://loomio.org'>loomio.org</a> to make it easy to explain to your group why you’d like to use Loomio to make decisions together online.
%p If your group is keen, you can request access here:
%br

%a{ :href => "#request-new", :class => 'btn btn-large btn-info btn-block' , "data-toggle" => "modal", :id => 'request-new-group' }
I’ve talked to my group, and we’d like to use Loomio!
%a{ :href => "#request-new", :class => 'btn btn-large btn-info btn-block' , "data-toggle" => "modal", :id => 'request-new-group' }
I’ve talked to my group, and we’d like to use Loomio!

=render '/group_requests/request_new'
=render '/group_requests/request_new'

2 changes: 1 addition & 1 deletion app/views/groups/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.character-counter
.privacy-settings
#settings-header
%h3 Settings
%h4 Settings
%hr
- suffix = "group"
- suffix = "sub-group" unless group.parent.nil?
Expand Down
2 changes: 1 addition & 1 deletion app/views/groups/_members.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.sub-panel
.membership-count.label
= group.memberships.count
%h3 Members
%h4 Members
= render 'add_members', group: group
%ul#users-list
= render :partial => 'membership',
Expand Down
2 changes: 1 addition & 1 deletion app/views/groups/_membership_requests.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- if group.membership_requests.present? && (can? :add_members, group)
.sub-panel#user-requests
%h3 Membership requests
%h4 Membership requests
%ul#request-list
=render :partial => 'membership_request', :collection => group.membership_requests
2 changes: 1 addition & 1 deletion app/views/groups/_subgroups.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#sub-groups
.sub-panel
%h3 Sub-groups
%h4 Sub-groups
- if (can? :add_subgroup, group) && group.users.include?(current_user)
= icon_button(add_subgroup_group_path(group), 'Create a sub-group', '/assets/group-18.png', 'subgroup-new')
%ul.group-links
Expand Down
6 changes: 3 additions & 3 deletions app/views/groups/_title.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.page-container
.group-title.clearfix
- if group
%h1
%h2
.home-title= link_to "Home", "/"
= content_tag :span, "\u25B6", class: 'name-separator'
= group.fancy_link
Expand Down Expand Up @@ -36,5 +36,5 @@
#email-members-modal.modal.hidden
= render "groups/email_members", :group => group
- else
%h1
.home-title= "Home"
%h2
.home-title= link_to "Home", "/"
14 changes: 6 additions & 8 deletions app/views/groups/add_subgroup.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- set_title @parent.name, "Add Sub-group"
.group-title
%h2
= link_to @parent.name, group_path(@parent), title: "group" unless @parent.nil?
#new-subgroup
%h1 Add a subgroup to #{@parent.name}
= render :partial => 'form',
:locals => { :group => @subgroup, parent: @parent, submit_text: "Create group", :data => { :disable_with => "Creating group" } }
.page-container
= render '/groups/title', group: GroupDecorator.decorate(@parent)
#new-subgroup
%h3 Add a sub-group
= render :partial => 'form',
:locals => { :group => @subgroup, parent: @parent, submit_text: "Create group", :data => { :disable_with => "Creating group" } }
2 changes: 1 addition & 1 deletion app/views/groups/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- set_title "", "New Group"
%h1 New Group
%h2 New Group
= render 'form', group: @group, parent: @parent,
submit_text: "Create group", :data => { :disable_with => "Creating group" }
2 changes: 1 addition & 1 deletion app/views/groups/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
%section.span4
=render 'request_membership', group: @group
.sub-panel#group-description-panel
%h3= "Group description"
%h4= "Group description"
=render '/application/description', model: @group, model_name: "group"
=render 'subgroups', subgroups: @subgroups, group: @group if display_subgroups_block?(@group)
=render '/application/see_closed_motions'
Expand Down
Loading

0 comments on commit 8f3142b

Please sign in to comment.