mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 02:55:39 +00:00
dom manipulations uses elements
This commit is contained in:
64
templates/main.scss
Normal file
64
templates/main.scss
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// creadits: https://codepen.io/rachelandrew/pen/MmOvPr/?editors=1100
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 5fr;
|
||||
grid-template-rows: 1fr 6fr 1fr;
|
||||
}
|
||||
|
||||
h1,
|
||||
p {
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
|
||||
/* no grid support? check this out later */
|
||||
/*
|
||||
.sidebar {
|
||||
float: left;
|
||||
width: 19.1489%;
|
||||
}
|
||||
|
||||
.content {
|
||||
float: right;
|
||||
width: 79.7872%;
|
||||
}
|
||||
*/
|
||||
|
||||
/* make a grid */
|
||||
header,
|
||||
footer {
|
||||
grid-column: 2 / 5;
|
||||
/* needed for the floated layout */
|
||||
clear: both;
|
||||
}
|
||||
|
||||
nav {
|
||||
grid-row: 1/ 4;
|
||||
/* needed for the floated layout */
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps.
|
||||
* @supports (display: grid) {
|
||||
.wrapper > * {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user