Skip to content

Commit

Permalink
Make tables responsive and clean up content
Browse files Browse the repository at this point in the history
  • Loading branch information
jekkilekki committed Jul 2, 2016
1 parent 2e4122d commit ed915da
Show file tree
Hide file tree
Showing 7 changed files with 505 additions and 187 deletions.
222 changes: 222 additions & 0 deletions css/deanne-custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
/**
Custom CSS for the De Anne Dubin website
Author: Aaron Snowberger
Author URI: http://aaronsnowberger.com
**/

.red { color: red; }
.group { clear: both; }
#resume-page table { margin: 1.5em 1.5em 3em!important; }
#resume-page td { padding: 0.15em 1.5em!important; border: 1px solid rgba(255,255,255,0.1)!important; }
#training p { margin-bottom: 0; }
#training h5:not(:first-child), #training img { margin-top: 1em; }

.extra_padding {
box-sizing: border-box;
padding: 0 1em;
}
@media (min-width: 48em) {
.extra_padding {
padding: 0;
}
}

.caption_style1,
.caption_style2 {
bottom: 50px;
}
@media (min-width: 48em) {
.caption_style1,
.caption_style2 {
bottom: 100px;
}
}

/*
Responsive Tables
@link ref: http://codepen.io/pixelchar/pen/rfuqK
*/
.table-container {
margin: 5% 3%;
}
@media (min-width: 48em) {
.table-container {
margin: 2%;
}
}
@media (min-width: 75em) {
margin: 2em auto;
max-width: 75em;
}

.responsive-table {
width: 90%;
margin-bottom: 1.5em;
}
@media (min-width: 48em) {
.responsive-table {
border: 2px solid rgba(255,255,255,0.3);
}
}

.responsive-table thead {
/* Accessibly hide <thead> on narrow viewports */
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
}
/* Unhide <thead> on wide viewports */
@media (min-width: 48em) {
.responsive-table thead {
position: relative;
clip: auto;
height: auto;
width: auto;
overflow: auto;
}
}

.responsive-table th {
background-color: rgba(255,255,255,0.3);
font-weight: normal;
text-align: center;
color: white;
}
.responsive-table th::first-of-type {
text-align: left;
}
@media (min-width: 48em) {
.responsive-table th {
border-left: 1px solid rgba(255,255,255,0.1);
}
.responsive-table th:first-of-type {
border: none;
}
}

/* Set these items to display: block for narrow viewports */
.responsive-table tbody,
.responsive-table tr,
.responsive-table th,
.responsive-table td {
display: block;
padding: 0;
/* text-align: left;*/
white-space: normal;
}
/* Undo display: block */
@media (min-width: 48em) {
.responsive-table tr {
display: table-row;
}
}
.responsive-table th,
.responsive-table td {
padding: 0.5em;
vertical-align: middle;
}
@media (min-width: 30em) {
.responsive-table th,
.responsive-table td {
/* padding: 0.75em 0.5em;*/
}
}
@media (min-width: 48em) {
.responsive-table th,
.responsive-table td {
display: table-cell;
padding: 0.5em;
width: 25%;
}
}
@media (min-width: 62em) {
.responsive-table th,
.responsive-table td {
padding: 0.75em 0.5em;
}
}
@media (min-width: 75em) {
.responsive-table th,
.responsive-table td {
padding: 0.75em;
}
}

.responsive-table caption {
margin-bottom: 1em;
font-family: 'EB Garamond';
font-size: 1.4em;
/* font-weight: bold;*/
text-align: center;
}
@media (min-width: 48em) {
.responsive-table caption {
font-size: 1.6em;
}
}

.responsive-table tbody tr {
margin-bottom: 1em;
border: 2px solid rgba(255,255,255,0.3);
}
.responsive-table tbody tr:last-of-type {
margin-bottom: 0;
}
/* Undo display: block */
@media (min-width: 48em) {
.responsive-table tbody {
display: table-row-group;
}
.responsive-table tbody tr {
display: table-row;
border-width: 1px;
}
.responsive-table tbody tr:nth-of-type(even) {
background-color: rgba(255,255,255,0.1);
}
}

.responsive-table th[scope="row"] {
background-color: rgba(255,255,255,0.3);
color: white;
}
@media (min-width: 48em) {
.responsive-table th[scope="row"] {
background-color: transparent;
color: white;
text-align: left;
border: 1px solid rgba(255,255,255,0.1);
}
}

.responsive-table td {
text-align: right;
}
@media (min-width: 48em) {
.responsive-table td {
text-align: center;
}
}

.responsive-table td[data-title]:before {
content: attr(data-title);
float: left;
font-size: .8em;
color: rgba(255,255,255,0.8);
}
@media (min-width: 30em) {
.responsive-table td[data-title]:before {
font-size: 0.9em;
}
}
@media (min-width: 48em) {
.responsive-table td[data-title]:before {
content: none; /* Don't show data-title labels */
}
}
6 changes: 3 additions & 3 deletions js/main-fm.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
self.txtAniDly = 200; // Text animation delay
self.fsAutoPlay = defaults.galleryAutoplay == "true" || defaults.galleryAutoplay == true; // gallery slideshow autoplay
self.fsDelay = defaults.gallerySlideshowDelay; // Gallery slide show delay time
self.fsTxtSho = false;
self.fsTxtSho = true;
self.isFsGal = false;

// Gallery thumbnail mouse events
Expand Down Expand Up @@ -913,7 +913,7 @@
}else{
self.fsGalThmSet(false);
// self.pHol.css({"height": self.galHidHig+"px", "top":(pTpos)});
self.pHol.css({"height": 0+"px", "top":(pTpos)});
self.pHol.css({"height": 0+"px", "top":9999+"px"});
}
}else{
self.fsGalThmSet(false);
Expand Down Expand Up @@ -1219,7 +1219,7 @@
self.fsPre.css({"top":$(window).height()/2+self.fsPre.height()/2+"px"});
self.fsTxt.css({"height":$(window).height()});

self.fsTxtSho = (!self.mobile && !self.mobileDevice);
self.fsTxtSho = (/*!self.mobile && !self.mobileDevice*/ true);

$(".pageHolder .page").find('.fs_gallery').each(function(){

Expand Down
6 changes: 5 additions & 1 deletion page-templates/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="add_scroll medium_size">
<!-- Below content are placed inside the Scrollbar -->
<div class="extra_padding">
<div class="eight columns alpha">
<p>De Anne is a leading lady with classic grace and a mischievous smile. Originally from the Midwest of the US, she received her voice training from Boston University and her MFA from the University of Illinois. After having bounced around the US, she set her sights on living internationally and currently resides in Shanghai, China.</p>
</div>
Expand All @@ -22,6 +22,10 @@
<h4 class="title_light light_color"><span>As Emma the sweet fiancee, turns in an impeccable performance, perfect in every way. Her acting and lovely, sure vocals are polished; her character real. "JEKYLL &amp; HYDE"</span></h4>
<h5 class="title_light light_color"><span>Jeanne McCartin in Showcase Magazine</span></h5>
</div>
</div>
<div class="separator_mini"></div>
<div class="separator_mini"></div>
<!-- End Scrollbar -->
</div>
Expand Down
3 changes: 2 additions & 1 deletion page-templates/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h3 class="title_light">Contact</h3>
<div class="separator_mini"></div>
<!-- <div class="extra_padding">-->
<!-- First column -->
<div class="four columns alpha">
<div class="mobile_right_spacing">
Expand Down Expand Up @@ -63,6 +63,7 @@
</form>
</div>
</div>
<!-- </div>-->
</div>
</div>
Expand Down
9 changes: 4 additions & 5 deletions page-templates/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@
-->
<div class="fsThumb" data-src="images/site/background-images/background1_2.jpg" data-src-small="images/site/background-images/background1_2.jpg" data-imgResize="fill" >
<img src="images/site/homepage-images/homepage1.jpg" class="fsThumb" alt="Wonder" />
<img src="images/site/homepage-images/homepage1.jpg" class="fsThumb-scale" alt="Big Data Show" />
<div class="fs_caption caption_style2">
<div><a href="http://www.bigdata.show"><img class="large_image" src="images/site/homepage-images/homepage1.jpg"></a></div>
<div> <h2 class="title_light light_color text_shadow"><span>Upcoming</span></h2></div>
<div> <h5 class="title_light light_color text_shadow"><span>Principle voice in <a href="http://www.bigdata.show">Big Data</a>, a nine-episode radio play about stealing the internet. Featuring guest artists Jemaine Clement, Paul F. Tompkins, Samm Levine and 60+ performers from around the world. Coming soon!</span></h5></div>
</div>
</div>
<!--
<div class="fsThumb" data-src="images/site/background-images/background1_2.jpg" data-src-small="images/site/background-images/background1_2.jpg" data-imgResize="fill" >
<img src="images/site/background-images/background1_2.jpg" class="fsThumb" alt="Wonder" />
<img src="images/site/background-images/background1_2.jpg" class="fsThumb-scale" alt="Rosa" />
<div class="fs_caption caption_style1">
<div> <h4 class="title_light light_color"><span>In the lead [role], De Anne Dubin... [was] engaging, and Dubin held on to an appealing emotional honesty throughout. "ROSA"</span></h4></div>
<div> <h5 class="title_light light_color"><span>Thomas Garvey of The Boston Globe</span></h5></div>
</div>
</div>
<div class="fsThumb" data-src="images/site/background-images/background1_2.jpg" data-src-small="images/site/background-images/background1_2.jpg" data-imgResize="fill" >
<img src="images/site/background-images/background1_2.jpg" class="fsThumb" alt="Wonder" />
<div class="fs_caption caption_style2">
Expand All @@ -63,7 +63,6 @@
<div> <h5 class="title_light light_color"><span>Jeanne McCartin in Showcase Magazine</span></h5></div>
</div>
</div>
-->
</div>
</div>
Expand Down
Loading

0 comments on commit ed915da

Please sign in to comment.