scala-news-reader

rss/atom news reader in scala

git clone https://9o.is/git/scala-news-reader.git

responsive-767px-max.less

(4207B)


      1 //
      2 // Responsive: Landscape phone to desktop/tablet
      3 // --------------------------------------------------
      4 
      5 
      6 @media (max-width: 767px) {
      7 
      8   // editted by julio
      9 
     10 
     11   // Padding to set content in a bit
     12   body {
     13     padding-left: 20px;
     14     padding-right: 20px;
     15 
     16     // editted by julio
     17     font-size: @baseFontSize * 0.9;
     18     line-height: @baseLineHeight * 0.9;
     19   }
     20 
     21   .marketing {
     22      font-size: @marketingFontSize * 0.6;
     23      line-height: @marketingLineHeight * 0.6;
     24      .small { font-size: @marketingFontSize * 0.4 }
     25    }
     26 
     27   // Negative indent the now static "fixed" navbar
     28   .navbar-fixed-top,
     29   .navbar-fixed-bottom,
     30   .navbar-static-top {
     31     margin-left: -20px;
     32     margin-right: -20px;
     33   }
     34   // Remove padding on container given explicit padding set on body
     35   .container-fluid {
     36     padding: 0;
     37   }
     38 
     39   // TYPOGRAPHY
     40   // ----------
     41   // Reset horizontal dl
     42   .dl-horizontal {
     43     dt {
     44       float: none;
     45       clear: none;
     46       width: auto;
     47       text-align: left;
     48     }
     49     dd {
     50       margin-left: 0;
     51     }
     52   }
     53 
     54   // GRID & CONTAINERS
     55   // -----------------
     56   // Remove width from containers
     57   .container {
     58     width: auto;
     59   }
     60   // Fluid rows
     61   .row-fluid {
     62     width: 100%;
     63   }
     64   // Undo negative margin on rows and thumbnails
     65   .row,
     66   .thumbnails {
     67     margin-left: 0;
     68   }
     69   .thumbnails > li {
     70     float: none;
     71     margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
     72   }
     73   // Make all grid-sized elements block level again
     74   [class*="span"],
     75   .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
     76   .row-fluid [class*="span"] {
     77     float: none;
     78     display: block;
     79     width: 100%;
     80     margin-left: 0;
     81     .box-sizing(border-box);
     82   }
     83   .span12,
     84   .row-fluid .span12 {
     85     width: 100%;
     86     .box-sizing(border-box);
     87   }
     88   .row-fluid [class*="offset"]:first-child {
     89     margin-left: 0;
     90   }
     91 
     92   // FORM FIELDS
     93   // -----------
     94   // Make span* classes full width
     95   .input-large,
     96   .input-xlarge,
     97   .input-xxlarge,
     98   input[class*="span"],
     99   select[class*="span"],
    100   textarea[class*="span"],
    101   .uneditable-input {
    102     .input-block-level();
    103   }
    104   // But don't let it screw up prepend/append inputs
    105   .input-prepend input,
    106   .input-append input,
    107   .input-prepend input[class*="span"],
    108   .input-append input[class*="span"] {
    109     display: inline-block; // redeclare so they don't wrap to new lines
    110     width: auto;
    111   }
    112   .controls-row [class*="span"] + [class*="span"] {
    113     margin-left: 0;
    114   }
    115 
    116   // Modals
    117   .modal {
    118     position: fixed;
    119     top:   20px;
    120     left:  20px;
    121     right: 20px;
    122     width: auto;
    123     margin: 0;
    124     &.fade  { top: -100px; }
    125     &.fade.in { top: 20px; }
    126   }
    127 
    128 }
    129 
    130 
    131 
    132 // UP TO LANDSCAPE PHONE
    133 // ---------------------
    134 
    135 @media (max-width: 480px) {
    136 
    137   // Smooth out the collapsing/expanding nav
    138   .nav-collapse {
    139     -webkit-transform: translate3d(0, 0, 0); // activate the GPU
    140   }
    141 
    142   // Block level the page header small tag for readability
    143   .page-header h1 small {
    144     display: block;
    145     line-height: @baseLineHeight;
    146   }
    147 
    148   // Update checkboxes for iOS
    149   input[type="checkbox"],
    150   input[type="radio"] {
    151     border: 1px solid #ccc;
    152   }
    153 
    154   // Remove the horizontal form styles
    155   .form-horizontal {
    156     .control-label {
    157       float: none;
    158       width: auto;
    159       padding-top: 0;
    160       text-align: left;
    161     }
    162     // Move over all input controls and content
    163     .controls {
    164       margin-left: 0;
    165     }
    166     // Move the options list down to align with labels
    167     .control-list {
    168       padding-top: 0; // has to be padding because margin collaspes
    169     }
    170     // Move over buttons in .form-actions to align with .controls
    171     .form-actions {
    172       padding-left: 10px;
    173       padding-right: 10px;
    174     }
    175   }
    176 
    177   // Medias
    178   // Reset float and spacing to stack
    179   .media .pull-left,
    180   .media .pull-right  {
    181     float: none;
    182     display: block;
    183     margin-bottom: 10px;
    184   }
    185   // Remove side margins since we stack instead of indent
    186   .media-object {
    187     margin-right: 0;
    188     margin-left: 0;
    189   }
    190 
    191   // Modals
    192   .modal {
    193     top:   10px;
    194     left:  10px;
    195     right: 10px;
    196   }
    197   .modal-header .close {
    198     padding: 10px;
    199     margin: -10px;
    200   }
    201 
    202   // Carousel
    203   .carousel-caption {
    204     position: static;
    205   }
    206 
    207 }