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
// Changing a page's settings | |
$parent = "0"; | |
if (isset($_POST["parent"])) { | |
$parent = $_POST["parent"]; | |
} | |
initiatePageSetting($database, $_POST["id"], $_POST["title"], $_POST["url"], $_POST["type"], $parent); | |
function initiatePageSetting ($database, $id, $title, $url, $type, $parent) { |
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
// One way to write reponsive content is this: | |
@media only screen and (max-device-width: 480px) { | |
.page{ | |
.main{} | |
.side{} | |
} | |
} | |
@media only screen and (min-device-width: 481px) and (max-device-width: 720px) { | |
.page{ | |
.main{} |
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
<!-- Resten av sidan här ovanför --> | |
<div class="page"> | |
<div class="main"></div> | |
<div class="side"></div> | |
</div> | |
<!-- Resten av sidan här nedanför--> |
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
// This is a simple mobile-first layout using Sass and Susy. | |
/* | |
Base numbers | |
============================================================ */ | |
$total-columns : 4; // 4 columns | |
$column-width : 4em; // 4em wide columns | |
$gutter-width : 1em; // Margins outside of columns on the edges. | |
$grid-padding : 0; // Padding between col/rows- |