@@ -683,20 +683,64 @@ figcaption {
683
683
outline-color : # 003c63 ;
684
684
}
685
685
686
- .flex-container {
687
- /* display part copy-pasted from: https://css-tricks.com/using-flexbox/ */
688
- display : -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
689
- display : -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
690
- display : -ms-flexbox; /* TWEENER - IE 10 */
691
- display : -webkit-flex; /* NEW - Chrome */
692
- display : flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */
693
-
694
- flex-wrap : wrap;
695
- flex-direction : row;
696
- align-content : center;
697
- justify-content : center;
698
- }
699
-
700
- .flex-item {
701
- margin : 0px ;
686
+
687
+ div .responsive_banner {
688
+ /* Horizontally centered */
689
+ display : block;
690
+ margin : auto;
691
+
692
+ max-height : 139px ; /* at most 1 x 1:1 subfig height */
693
+ width = 100%;
694
+ overflow: auto; /* to follow the height of the subfig floats */
695
+ }
696
+
697
+ div .responsive_screenshots {
698
+ /* Horizontally centered */
699
+ display : block;
700
+ margin : auto;
701
+
702
+ /* Do not go beyond 1:1 scale*/
703
+ max-width : 648px ; /* 4 * 1:1 subfig width */
704
+ max-height : 139px ; /* 1 * 1:1 subfig height */
705
+
706
+ /* Possible downscaling */
707
+ width = auto ;
708
+ height: 100% ;
709
+ }
710
+
711
+ div .responsive_subfig {
712
+ float : left;
713
+ width : 25% ; /* 4 subfigs in a row */
714
+ }
715
+
716
+ div .responsive_subfig img {
717
+ /* Horizontally centered */
718
+ display : block;
719
+ margin : auto;
720
+
721
+ /* Possible downscaling */
722
+ max-width : 162px ; /* 1 * 1:1 subfig width */
723
+ max-height : 139px ; /* 1 * 1:1 subfig height */
724
+ width : 100% ;
725
+ height : auto;
726
+ }
727
+
728
+ @media only screen and (max-width : 1024px ){
729
+ /* The value of 1024px was handcrafted to provide a more or less */
730
+ /* smooth transition between the 1x4 and the 2x2 layouts. */
731
+
732
+ div .responsive_banner {
733
+ max-height : 278px ; /* at most 2 x 1:1 subfig height */
734
+ }
735
+
736
+ div .responsive_screenshots {
737
+ /* Do not go beyond 1:1 scale*/
738
+ max-width : 324px ; /* 2 x 1:1 subbfig width */
739
+ max-height : 139px ; /* 1 x 1:1 subfig height */
740
+ }
741
+
742
+ div .responsive_subfig {
743
+ width : 50% ; /* 2 subfigs in a row */
744
+ }
745
+
702
746
}
0 commit comments