Gave the grid-template-areas more meaningful and unique names
authorArt Cancro <ajc@citadel.org>
Fri, 23 Sep 2022 19:50:24 +0000 (15:50 -0400)
committerArt Cancro <ajc@citadel.org>
Fri, 23 Sep 2022 19:50:24 +0000 (15:50 -0400)
webcit-ng/static/css/webcit.css

index 2345e7d3445c076be61b0f276feea3aa08073f3b..f5ac02b6cef844485e8547907ef3b0d15dd60e8b 100644 (file)
        margin: 0;
 } 
 
-.ctdl-main-grid-container {                    /* This grid contains the "holy grail layout" of the screen */
+.ctdl-main-grid-container {                    /* This grid implements the "holy grail layout" of the screen */
        display: grid;
        grid-template-rows: 5vh auto;
        grid-template-columns: 12vw auto;
        grid-template-areas:
-               'header header'
-               'menu main';
+               'ctdl-mg-banner ctdl-mg-banner'
+               'ctdl-mg-menu ctdl-mg-main';
        gap: 3px;
        background-color: DarkSlateGrey;        /* This is the color of the lines between the boxes, and also the boxes themselves if not overridden */
        padding: 0;                             /* This is the border around the edges of the screen */
 }
 
 .ctdl-grid-banner-item {                       /* Top banner, referenced by the grid container */
-       grid-area: header;
+       grid-area: ctdl-mg-banner;
        background-color: DarkSlateGrey;
 }
 
 .ctdl-grid-sidebar-item {                      /* Side bar, referenced by the grid container */
-       grid-area: menu;
+       grid-area: ctdl-mg-menu;
        background-color: GhostWhite;
 }
 
 .ctdl-grid-main-item {                         /* Main content area of the screen, referenced by the grid container */
-       grid-area: main;
+       grid-area: ctdl-mg-main;
        overflow-x: hidden;
        overflow-y: auto;
 }