Merge pull request #25 from snap-cloud/tweaks

Tweaks
This commit is contained in:
Michael Ball 2020-01-09 00:32:18 -08:00 committed by GitHub
commit 2a0c19b0e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 71 additions and 17 deletions

View file

@ -1,5 +1,5 @@
@import "breakpoints.scss"; @import "breakpoints.scss";
$navbar-default-link-color: #FFF; @import "osem-variables.scss";
.nav-osem { .nav-osem {
border: none; border: none;
@ -46,4 +46,8 @@ $navbar-default-link-color: #FFF;
margin-top: -5px; margin-top: -5px;
max-height: 100%; max-height: 100%;
} }
.trapezoid {
border-top-color: $navbar-default-bg;
}
} }

View file

@ -64,7 +64,6 @@
#schedule td.event { #schedule td.event {
background-image: linear-gradient(to top, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%); background-image: linear-gradient(to top, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%);
cursor: pointer; cursor: pointer;
padding: 3px 2px; padding: 3px 2px;
} }

View file

@ -1,4 +1,5 @@
@import "breakpoints.scss"; @import "breakpoints.scss";
@import "osem-variables.scss";
#splash { #splash {
// Counter the general padding for #content // Counter the general padding for #content
@ -6,11 +7,19 @@
section { section {
padding-top: 60px; padding-top: 60px;
padding-bottom: 60px; padding-bottom: 60px;
.trapezoid {
top: 60px + $trapezoid-height;
}
} }
section:nth-child(even) { section:nth-child(even) {
background: none repeat scroll 0 0 #eee; background: none repeat scroll 0 0 #eee;
color: #333; color: #333;
.trapezoid {
border-top-color: #eee;
}
} }
section:nth-child(odd) { section:nth-child(odd) {
background: none repeat scroll 0 0 #ffffff; background: none repeat scroll 0 0 #ffffff;
@ -18,6 +27,10 @@
.thumbnail { .thumbnail {
background: none repeat scroll 0 0 #e0e0e0; background: none repeat scroll 0 0 #e0e0e0;
} }
.trapezoid {
border-top-color: #fff;
}
} }
.cta-button { .cta-button {
@ -40,7 +53,6 @@
#header-image { #header-image {
color: #FFF; color: #FFF;
// text-shadow: 1px 1px 3px #ddd;
} }
} }
} }
@ -72,6 +84,10 @@
#venue-pic { #venue-pic {
margin-top: 20px; margin-top: 20px;
} }
// The venue section has less padding.
.trapezoid {
top: $trapezoid-height;
}
} }
#lodging { #lodging {

View file

@ -0,0 +1,14 @@
// This file is included *early* in CSS order!
// These variables change bootstrap defaults.
$navbar-default-bg: #0C3559;
$navbar-default-link-active-bg: rgb(8,8,8);
$navbar-default-border: 1px solid #d4d4d4;
$navbar-default-color: #FFF;
$navbar-default-link-color: #FFF;
$navbar-default-link-hover-color: #F2E205;
$navbar-default-link-active-hover-color: #FFF;
// The hiegh of the section tabs that are like Snap! blocks.
$trapezoid-height: 14px;

View file

@ -1,3 +1,4 @@
@import "osem-variables";
@import "bootstrap/mixins"; @import "bootstrap/mixins";
html { html {
@ -17,6 +18,21 @@ body {
padding-bottom: 60px; padding-bottom: 60px;
} }
// Designed to be the last element in a section / nav
// Makes a little "puzzle piece" connector.
.trapezoid {
position: relative;
margin-left: 60px;
border-top: $trapezoid-height solid;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
height: 0;
width: 64px;
margin-top: -1 * $trapezoid-height;
top: $trapezoid-height;
z-index: 1000;
}
#footer { #footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;

View file

@ -1,10 +1,5 @@
$navbar-default-bg: #0C3559; // Place bootstrap variable customizations in the file below.
$navbar-default-link-active-bg: rgb(8,8,8); @import "osem-variables";
$navbar-default-border: 1px solid #d4d4d4;
$navbar-default-color: #FFF;
$navbar-default-link-color: #FFF;
$navbar-default-link-hover-color: #F2E205;
@import 'bootstrap-datetimepicker'; @import 'bootstrap-datetimepicker';
@import "bootstrap-sprockets"; @import "bootstrap-sprockets";

View file

@ -20,3 +20,4 @@
call: call_for_booths call: call_for_booths
- if two_calls_open(call_for_events, call_for_tracks, call_for_booths) - if two_calls_open(call_for_events, call_for_tracks, call_for_booths)
.col-md-2.col-sm-2.hidden-xs   .col-md-2.col-sm-2.hidden-xs  
.trapezoid

View file

@ -22,7 +22,7 @@
= sanitize link_to(venue.name, venue.website) = sanitize link_to(venue.name, venue.website)
- else - else
= venue.city = venue.city
- if venue.country_name != 'US' - if venue.country != 'US'
• •
= venue.country_name = venue.country_name
@ -32,3 +32,4 @@
.row .row
.col-md-8.col-md-offset-2 .col-md-8.col-md-offset-2
= markdown(conference.description) = markdown(conference.description)
.trapezoid

View file

@ -42,3 +42,4 @@
= lodging.name = lodging.name
- if lodging.description.present? - if lodging.description.present?
= markdown(lodging.description) = markdown(lodging.description)
.trapezoid

View file

@ -31,6 +31,7 @@
= link_to(conference_schedule_path(conference.short_title), = link_to(conference_schedule_path(conference.short_title),
class: 'btn btn-success btn-lg') do class: 'btn btn-success btn-lg') do
Full Schedule Full Schedule
.trapezoid
- unless booths.blank? - unless booths.blank?
- booths.each do |booth| - booths.each do |booth|

View file

@ -37,3 +37,4 @@
= link_to('Register Now', = link_to('Register Now',
new_conference_conference_registration_path(conference_id), new_conference_conference_registration_path(conference_id),
class: 'btn btn-lg btn-success') class: 'btn btn-lg btn-success')
.trapezoid

View file

@ -27,3 +27,4 @@
- if contact.email? - if contact.email?
= mail_to "#{ contact.email }" do = mail_to "#{ contact.email }" do
%i.fa.fa-envelope-o.fa-4x %i.fa.fa-envelope-o.fa-4x
.trapezoid

View file

@ -30,6 +30,7 @@
= "Interested in sponsoring #{conference.title}?" = "Interested in sponsoring #{conference.title}?"
= link_to(sponsorship_mailto(conference)) do = link_to(sponsorship_mailto(conference)) do
Please, contact us! Please, contact us!
.trapezoid
- sponsors.each do |sponsor| - sponsors.each do |sponsor|
- content_for :modals do - content_for :modals do

View file

@ -14,7 +14,7 @@
-# = conference.title -# = conference.title
.row.row-centered .row.row-centered
- tickets.each do |ticket| - tickets.each do |ticket|
.col-md-3.col-sm-3.col-centered.col-top .col-lg-4.col-md-3.col-sm-3.col-centered.col-top
= link_to(conference_tickets_path(conference.short_title), = link_to(conference_tickets_path(conference.short_title),
class: 'thumbnail') do class: 'thumbnail') do
.caption .caption
@ -23,5 +23,6 @@
.word_break .word_break
= markdown(ticket.description) = markdown(ticket.description)
%button.btn-block.btn.btn-lg.btn-success %button.btn-block.btn.btn-lg.btn-success
%i.fa.fa-ticket.fa-fw %i.fa.fa-ticket.fa-fw{"aria-hidden": true}
= humanized_money_with_symbol(ticket.price) = humanized_money_with_symbol(ticket.price)
.trapezoid

View file

@ -10,6 +10,7 @@
.row .row
.col-md-8.col-md-offset-2 .col-md-8.col-md-offset-2
= markdown(venue.description, escape_html=false) = markdown(venue.description, escape_html=false)
.trapezoid
- else - else
- cache [venue, commercial, '#splash#venue'] do - cache [venue, commercial, '#splash#venue'] do
.container .container
@ -46,3 +47,4 @@
- if venue.website - if venue.website
%br %br
= sanitize link_to(h(venue.website), h(venue.website)) = sanitize link_to(h(venue.website), h(venue.website))
.trapezoid

View file

@ -1,7 +1,6 @@
.navbar.navbar-default.navbar-fixed-top.nav-osem{role: 'navigation'} %nav.navbar.navbar-default.navbar-fixed-top.nav-osem{role: 'navigation'}
.container .container
.navbar-header .navbar-header
- if controller.class.name.split("::").first=="Admin" - if controller.class.name.split("::").first=="Admin"
%button{ "data-target"=>"#side-nav", "data-toggle"=>"collapse", class: 'navbar-toggle side-nav-btn', type: 'button' } %button{ "data-target"=>"#side-nav", "data-toggle"=>"collapse", class: 'navbar-toggle side-nav-btn', type: 'button' }
%span.sr-only Toggle navigation %span.sr-only Toggle navigation
@ -79,3 +78,4 @@
-# Need Help? -# Need Help?
-# #navbar-devise-help.collapse -# #navbar-devise-help.collapse
-# = render 'devise/shared/links' -# = render 'devise/shared/links'
.trapezoid