File tree Expand file tree Collapse file tree 3 files changed +28
-22
lines changed Expand file tree Collapse file tree 3 files changed +28
-22
lines changed Original file line number Diff line number Diff line change @@ -503,9 +503,13 @@ header a {
503503  z-index :  10 ;
504504  text-align :  center;
505505  font-size :  3em  ;
506-   font-weight :  300 
506+   font-weight :  300 ;
507+ }
508+ /*default colors just in case you don't define these colors on the tiles*/ 
509+ .s-page ,  .r-page {
510+   background-color :  white;
511+   color : black;
507512}
508- 
509513.page-title  {
510514  margin-top :  1em  ;
511515  font-weight :  100 ;
@@ -649,11 +653,6 @@ header a {
649653  color :  # 455962
650654}
651655
652- .tile-4  {
653-   background-color :  # 455962 ;
654-   color :  white
655- }
656- 
657656.tile-5  {
658657  background-color :  # FCC120 ;
659658  color :  white
@@ -671,12 +670,7 @@ header a {
671670
672671.tile-7 , 
673672.tile-8  {
674-   background-color :  transparent
675- }
676- 
677- .tile-9  {
678-   color :  white;
679-   background-color :  # 56D9C9
673+   background-color :  transparent;
680674}
681675
682676.tile-10  {
@@ -795,20 +789,22 @@ header a {
795789  -o-backface-visibility :  hidden;
796790  backface-visibility :  hidden
797791}
798- 
799- .faces  .front  {
792+ .faces  .front {/*default*/ 
800793  background-color :  # 455962 ;
801-   color :  # ddd
794+   color :  # ddd; 
802795}
803- 
804- .faces  .back  {
796+ .rotate3dX  .front  {
805797  background-color :  # 455962 ;
806798  color :  # ddd
807799}
808- 
809800.rotate3dY  .front  {
801+   background-color :  # ddd ;
810802  color :  # 455962 ;
811-   background-color :  # ddd
803+ }
804+ 
805+ .faces  .back  {
806+   background-color :  # 455962 ;
807+   color :  # ddd
812808}
813809
814810.front  span  {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ <h2 class="page-title">App Screen</h2>
4444        < li  class ="tile tile-small last tile-3 " data-page-type ="r-page " data-page-name ="random-r-page "> 
4545          < p  class ="icon-calendar-alt-fill "> </ p > 
4646        </ li > 
47-         < li  class ="tile tile-big tile-4 " data-page-type ="r-page " data-page-name ="random-r-page "> 
47+         < li  class ="tile tile-big tile-4 fig-tile  " data-page-type ="r-page " data-page-name ="random-r-page "> 
4848          < figure > 
4949            < img  src ="images/blue.jpg " /> 
5050            < figcaption  class ="tile-caption caption-left "> Slide-out Caption from left</ figcaption > 
@@ -78,7 +78,7 @@ <h2 class="page-title">App Screen</h2>
7878      </ div > 
7979
8080      < div  class ="col3 clearfix ">       
81-         < li  class ="tile tile-2xbig tile-9 " data-page-type ="custom-page " data-page-name ="random-r-page "> 
81+         < li  class ="tile tile-2xbig tile-9 fig-tile  " data-page-type ="custom-page " data-page-name ="random-r-page "> 
8282          < figure > 
8383            < img  src ="images/summer.jpg " /> 
8484            < figcaption  class ="tile-caption caption-bottom "> Fixed Caption: Some Subtitle or Tile Description Goes Here with some kinda link or anything
Original file line number Diff line number Diff line change 55            page  =  $this . data ( 'page-name' ) , 
66            bgcolor  =  $this . css ( 'background-color' ) , 
77            textColor  =  $this . css ( 'color' ) ; 
8+             
9+             //if the tile rotates, we'll use the colors of the front face 
810            if ( $this . hasClass ( 'rotate3d' ) )  { 
911              frontface  =  $this . find ( '.front' ) ; 
1012              bgcolor  =  frontface . css ( 'background-color' ) ; 
1113              textColor  =  frontface . css ( 'color' ) ; 
1214            } 
15+ 
16+             //if the tile has an image and a caption, we'll use the caption styles 
17+             if ( $this . hasClass ( 'fig-tile' ) )  { 
18+               caption  =  $this . find ( 'figcaption' ) ; 
19+               bgcolor  =  caption . css ( 'background-color' ) ; 
20+               textColor  =  caption . css ( 'color' ) ; 
21+             } 
22+ 
1323        $this . on ( 'click' , function ( ) { 
1424          $ ( '.' + page ) . css ( { 'background-color' : bgcolor ,  'color' : textColor } ) ; 
1525        } ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments