Changeset 35237


Ignore:
Timestamp:
2021-08-02T19:42:42+12:00 (3 years ago)
Author:
anupama
Message:
  1. In weebly's embedded-dl.html, added overflow-y: hidden to body element to hide scroller of body outside iframe. One problem is when using developer tools, the extra outer scroller (now no longer there) came in handy. 2. Changes in this commit's files: Trying to add media-queries to support mobile case for responsive layout to get equivalent of recent commit of empty spacer div and a scrollable subsequent div, but not quite right yet. However, undoing my recent commit's changes does not appear to have allowed full scrolling either.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/wmtb/styles/gs-wmtb-custom.css

    r35236 r35237  
    22will take up the space of the whakatohea navbar. Want the scrollbar shifted from
    33body element into (an) element that spatially immediately follows the vertical spacer.*/
    4 body {
    5     overflow: hidden;
     4body#top {
     5    overflow-y: hidden;
    66    margin: 0;
    7     border: none;
    8 }
     7    border: none;   
     8}
     9
    910div#spacer-for-nav
    1011{
    1112    height: 120px;
    1213    width: auto;
    13     /* margin-top:120px; Why did height not have any effect? Because of self-closing div. Need explicit closing div */
    14 }
     14}    /* margin-top:120px; Why did height not have any effect? Because of self-closing div. Need explicit closing div. But an empty opening + closing div is dangerous in GS3, try using gsf:div element (not sure if class attribute will work on it) if xml equivalent of nbsp entity inside empty op+closing div doesn't work.*/
     15
     16
    1517/* https://www.w3schools.com/cssref/css_units.asp
    1618 https://css-tricks.com/a-complete-guide-to-calc-in-css/
     
    1921.shifted-frame {
    2022    overflow: auto;
    21     height: calc(100vh - 120px); /* Why does 100% not work? */
     23    height: calc(100vh - 120px);
    2224    width: auto;
     25
     26} /* Why does height calc(100% -120px) instead of using 100vh not work? */
     27
     28/*display: none;*/
     29/*height: 100vh; */
     30
     31/* hardcoded values copied from weebly site theme's variables.less file called in header.less */
     32@media screen and (max-width: 1024px) {
     33    body {
     34    overflow: auto;
     35    }
     36
     37    div#spacer-for-nav {
     38    height:93px;
     39    }
     40
     41    .shifted-frame {
     42    height: 100vh; /*calc(100vh - 93px);*/
     43    /*overflow-y: auto;*//* scroll;*/
     44    }
    2345}
    2446
Note: See TracChangeset for help on using the changeset viewer.