Created
September 19, 2018 08:02
-
-
Save goellner/1d5976a5d4487c8773b7c639c5d5b102 to your computer and use it in GitHub Desktop.
gridle.org - grid system | debug grid overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DEBUG | |
| .grid { | |
| position: fixed; | |
| width: 100%; | |
| top: 0; | |
| left: 0; | |
| pointer-events: none; | |
| z-index: 100000; | |
| display: block; | |
| &.hidden { | |
| display: none; | |
| } | |
| &__toggle { | |
| width: 50px; | |
| height: 50px; | |
| position: fixed; | |
| top: 20px; | |
| left: 20px; | |
| background-color: gold; | |
| border-radius: 50%; | |
| transition: all 0.2s ease; | |
| &:hover { | |
| background-color: lighten(gold, 5%); | |
| } | |
| &:after { | |
| content: 'Grid'; | |
| text-align: center; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 50px; | |
| height: 50px; | |
| line-height: 50px; | |
| vertical-align: middle; | |
| color: rgba(black, 0.5); | |
| font-size: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| } | |
| .gr-1 { | |
| height: 100vh; | |
| text-align: center; | |
| position: relative; | |
| span { | |
| display: inline-block; | |
| color: rgba(black, 0.15); | |
| padding-top: 10px; | |
| font-size: 12px; | |
| font-family: "Arial", "Helvetica", sans-serif; | |
| } | |
| &:before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: map-get($settings, 'gutter-left'); | |
| right: map-get($settings, 'gutter-right'); | |
| border-left: 1px solid rgba(black, 0.05); | |
| border-right: 1px solid rgba(black, 0.05); | |
| height: 100vh; | |
| } | |
| &:nth-child(even) { | |
| background-color: rgba(#b63737, 0.05); | |
| } | |
| &:nth-child(odd) { | |
| background-color: rgba(#b63737, 0.1); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- DEBUG START--> | |
| <div class="grid__toggle" onclick="toggleGrid()"></div> | |
| <section class="grid" id="grid"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="gr-1"><span>1</span></div> | |
| <div class="gr-1"><span>2</span></div> | |
| <div class="gr-1"><span>3</span></div> | |
| <div class="gr-1"><span>4</span></div> | |
| <div class="gr-1"><span>5</span></div> | |
| <div class="gr-1"><span>6</span></div> | |
| <div class="gr-1"><span>7</span></div> | |
| <div class="gr-1"><span>8</span></div> | |
| <div class="gr-1"><span>9</span></div> | |
| <div class="gr-1"><span>10</span></div> | |
| <div class="gr-1"><span>11</span></div> | |
| <div class="gr-1"><span>12</span></div> | |
| <div class="gr-1"><span>13</span></div> | |
| <div class="gr-1"><span>14</span></div> | |
| <div class="gr-1"><span>15</span></div> | |
| <div class="gr-1"><span>16</span></div> | |
| <div class="gr-1"><span>17</span></div> | |
| <div class="gr-1"><span>18</span></div> | |
| <div class="gr-1"><span>19</span></div> | |
| <div class="gr-1"><span>20</span></div> | |
| <div class="gr-1"><span>21</span></div> | |
| <div class="gr-1"><span>22</span></div> | |
| <div class="gr-1"><span>23</span></div> | |
| <div class="gr-1"><span>24</span></div> | |
| </div> | |
| </div> | |
| </section> | |
| <script> | |
| function toggleGrid() { | |
| var toggleElem = document.getElementById("grid"); | |
| toggleElem.classList.toggle("hidden"); | |
| } | |
| </script> | |
| <!-- DEBUG END --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment