Sass progress

This commit is contained in:
Michał 2022-08-12 11:28:19 +00:00
parent 4007f47e49
commit 302fe6c15e
9 changed files with 296 additions and 93 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
images/
css/main.css.map

View file

@ -25,8 +25,9 @@
}
nav {
width: calc(100% - 2.4rem);
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0;
@ -46,6 +47,10 @@ nav {
align-items: center;
vertical-align: middle;
}
nav > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
nav p {
margin: 0;
vertical-align: middle;
@ -55,6 +60,9 @@ nav hr {
padding: 0;
opacity: 0;
}
nav .btn {
width: auto;
}
.nav-name {
display: flex;
@ -72,6 +80,7 @@ nav hr {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
margin: 0;
font-family: "Secular One", sans-serif;
width: auto;
}
@ -93,7 +102,7 @@ nav hr {
bottom: 0;
left: 0;
right: 0;
background-color: #151515;
background-color: rgba(21, 21, 21, 0.7333333333);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border: none;
@ -109,7 +118,7 @@ nav hr {
text-align: left !important;
}
footer {
margin-bottom: calc(5rem + 3px) !important;
margin-bottom: 4rem !important;
}
#back-to-top {
bottom: 5rem !important;
@ -121,13 +130,19 @@ nav hr {
|-------------------------------------------------------------
*/
.info-text {
margin: 1rem 0;
margin: 1rem 0 1rem 0.5rem;
padding: 0;
text-align: center;
}
.info-text h1, .info-text h2, .info-text h3, .info-text h4, .info-text h5 {
font-family: "Lexend Deca", sans-serif;
}
.info-text p, .info-text a, .info-text button, .info-text input {
font-family: "Secular One", sans-serif;
}
.info-text h1 {
font-family: "Lexend Deca", sans-serif;
margin-top: 0.5rem;
margin-top: 0;
margin-bottom: 1rem;
}
.info-text p {
@ -137,6 +152,7 @@ nav hr {
}
.gallery-root {
margin-bottom: 1rem;
padding: 0.25rem;
background-color: #151515;
color: #E8E3E3;
@ -199,7 +215,7 @@ nav hr {
max-height: 69vh;
height: auto;
display: flex;
background-color: #151515;
background-color: rgba(21, 21, 21, 0.7333333333);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border-radius: 0;
@ -208,7 +224,7 @@ nav hr {
@media (max-width: 600px) {
.image-container {
max-height: 42vh !important;
max-height: 42vh;
}
}
.image {
@ -220,9 +236,130 @@ nav hr {
border-radius: 0;
}
footer {
width: calc(100% - 2.4rem);
/*
|-------------------------------------------------------------
| DESCRIPTION
|-------------------------------------------------------------
*/
.image-description {
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0;
border: 0.2rem solid #8C977D;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
}
.image-description > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
.image-description h1, .image-description h2, .image-description h3, .image-description h4, .image-description h5 {
font-family: "Lexend Deca", sans-serif;
}
.image-description p, .image-description a, .image-description button, .image-description input {
font-family: "Secular One", sans-serif;
}
/*
|-------------------------------------------------------------
| DETAILS
|-------------------------------------------------------------
*/
.image-detail {
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0;
border: 0.2rem solid #8C977D;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
}
.image-detail > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
.image-detail h1, .image-detail h2, .image-detail h3, .image-detail h4, .image-detail h5 {
font-family: "Lexend Deca", sans-serif;
}
.image-detail p, .image-detail a, .image-detail button, .image-detail input {
font-family: "Secular One", sans-serif;
}
/*
|-------------------------------------------------------------
| TAGS
|-------------------------------------------------------------
*/
.tags-root {
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0;
border: 0.2rem solid #8C977D;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
}
.tags-root > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
.tags-root h1, .tags-root h2, .tags-root h3, .tags-root h4, .tags-root h5 {
font-family: "Lexend Deca", sans-serif;
}
.tags-root p, .tags-root a, .tags-root button, .tags-root input {
font-family: "Secular One", sans-serif;
}
.tags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: auto;
}
.tag {
margin: 0.25rem;
padding: 0.5rem;
display: block;
background-color: #8C977D;
border-radius: 0;
font-family: "Secular One", sans-serif;
}
/*
|-------------------------------------------------------------
| DANGER ZONE
|-------------------------------------------------------------
*/
.danger-zone {
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0;
border: 0.2rem solid #B66467;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
}
.danger-zone > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
.danger-zone h1, .danger-zone h2, .danger-zone h3, .danger-zone h4, .danger-zone h5 {
font-family: "Lexend Deca", sans-serif;
}
.danger-zone p, .danger-zone a, .danger-zone button, .danger-zone input {
font-family: "Secular One", sans-serif;
}
footer {
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0;
@ -232,10 +369,14 @@ footer {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
margin: 0 auto !important;
margin: 0 auto;
bottom: 0;
width: calc(100% - 1.4rem);
}
footer > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
footer a {
margin: 0.5rem;
text-decoration: none;
@ -287,10 +428,14 @@ body * {
*/
.btn {
padding: 0.5rem;
width: 100%;
display: block;
box-sizing: border-box;
font-size: 16px;
font-weight: 500;
font-family: "Secular One", sans-serif;
text-decoration: none;
text-align: center;
border: none;
border-radius: 0;
transition: outline 0.1s cubic-bezier(0.19, 1, 0.22, 1);
@ -319,44 +464,34 @@ body * {
border: none;
border-radius: 0;
}
.btn a {
margin-bottom: 0;
text-align: center;
.btn-good {
background-color: #8C977D;
}
.btn-bad {
background-color: #B66467;
}
.btn-neutral {
background-color: #151515;
}
/*
|-------------------------------------------------------------
| FORM
| FORM SIZING
|-------------------------------------------------------------
*/
form {
width: 100%;
box-sizing: border-box;
}
form * {
width: 100%;
box-sizing: border-box;
box-sizing: content-box;
}
/*
|-------------------------------------------------------------
| IMAGES
| SVG
|-------------------------------------------------------------
*/
.image-container {
width: 100%;
max-height: 69vh;
height: auto;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: rgba(21, 21, 21, 0.7333333333);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border-radius: 0;
transition: max-height 0.15s cubic-bezier(0.19, 1, 0.22, 1);
}
.svg {
margin: 0 0.2rem 0.1rem 0;
width: 19px;

View file

@ -1 +1 @@
{"version":3,"sources":["main.scss","scss/_variables.scss","main.css","scss/_navigation.scss","scss/_mixin.scss","scss/_body.scss","scss/_footer.scss"],"names":[],"mappings":"AAAA;;;;;;;;CAAA;ACwBA;EACI,eAAA;EACA,eAAA;EACA,eAAA;EACA,eAAA;EAEA,YAAA;EACA,kBAAA;EAEA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;EACA,gBAAA;EAEA,+BAAA;EACA,UAAA;EAEA,gBAAA;AClBJ;;ACxBA;ECCC,0BAAA;EAEA,eAAA;EAEA,yBHLI;EGKmB,cHFnB;EGIJ,gBHQK;EGNF,4BAAA;EAEH,sDHGQ;EGQR,aAAA;EAEA,mBAAA;EAEA,eAAA;EAEA,8BD1BkB;EAElB,mBAAA;EAEA,0BAAA;EAA4B,cAAA;EAE5B,wBAAA;EAAA,gBAAA;EAAkB,WAAA;EAClB,SAAA;EAEA,mBAAA;EACA,sBAAA;ADkCD;AChCC;EACC,SAAA;EACA,sBAAA;ADkCF;AChCC;EACC,qBAAA;EAAuB,UAAA;EACvB,UAAA;ADmCF;;AC/BA;ECFC,aAAA;EAEA,mBAAA;EAEA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A,qBAAA;EAEA,yBClFM;EDoFN,YAAA;EACA,gBChFI;ACiSN;AF9NC;EACC,sCAAA;EACA,eAAA;EAEA,qBAAA;EAEA,eAAA;EAEA,qBAAA;EAEA,yBClFM;EDoFN,YAAA;EACA,gBChFI;ACiSN;AF9MC;EACC,gBAAA;EACA,kBAAA;AEgNF;;AF5MA;;;;CAAA;AAKA;EACC,WAAA;EACA,sBAAA;AE+MD;AF7MC;EACC,WAAA;EACA,sBAAA;AE+MF;;AF3MA;;;;CAAA;AAKA;EACI,WAAA;EACA,gBAAA;EAAkB,YAAA;EI/GrB,aAAA;EAEA,sBAAA;EAEA,8BJ6GqB;EAElB,gDCjIK;EDkIL,kCAAA;UAAA,0BAAA;EAEA,gBCtHE;EDwHF,2DAAA;AE6MJ;;AF1MA;EACC,yBAAA;EAEA,WAAA;EAAa,YAAA;EAEb,sBAAA;EAEA,eAAA;AE2MD;;AFxMA;;;;CAAA;AAKA;EACC,SAAA;EAAW,eAAA;EAEX,eAAA;EAAiB,WAAA;EACjB,cAAA;EAAgB,YAAA;EAEhB,0BAAA;KAAA,uBAAA;EAEA,yBCjKI;EDkKJ,kCAAA;UAAA,0BAAA;EAEA,kBAAA;EACA,sDCvJQ;EDyJR,sDAAA;AEyMD;AFvMC;EACC,6BAAA;AEyMF;AFtMC;EACC,SAAA;EAAW,UAAA;EACX,aAAA;EAAe,cAAA;EAEf,cAAA;EAEA,0BAAA;KAAA,uBAAA;AEwMF","file":"main.css"}
{"version":3,"sources":["main.scss","scss/_variables.scss","main.css","scss/_navigation.scss","scss/_mixin.scss","scss/_body.scss","scss/_footer.scss"],"names":[],"mappings":"AAAA;;;;;;;;CAAA;ACwBA;EACI,eAAA;EACA,eAAA;EACA,eAAA;EACA,eAAA;EAEA,YAAA;EACA,kBAAA;EAEA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;EACA,gBAAA;EAEA,+BAAA;EACA,UAAA;EAEA,gBAAA;AClBJ;;ACxBA;ECCC,mBA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cAAA;EAEf,cAAA;EAEA,0BAAA;KAAA,uBAAA;AE0VF","file":"main.css"}

View file

@ -63,12 +63,17 @@ body {
.btn {
padding: 0.5rem;
width: 100%;
display: block;
box-sizing: border-box;
font-size: 16px;
font-weight: 500;
font-family: $font-body;
text-decoration: none;
text-align: center;
border: none;
border-radius: $rad;
@ -95,47 +100,32 @@ body {
border: none;
border-radius: $rad;
}
a {
margin-bottom: 0;
text-align: center;
}
}
.btn-good {
background-color: $green;
}
.btn-bad {
background-color: $red;
}
.btn-neutral {
background-color: $black;
}
/*
|-------------------------------------------------------------
| FORM
| FORM SIZING
|-------------------------------------------------------------
*/
form {
width: 100%;
box-sizing: border-box;
* {
width: 100%;
box-sizing: border-box;
}
box-sizing: content-box;
}
/*
|-------------------------------------------------------------
| IMAGES
| SVG
|-------------------------------------------------------------
*/
.image-container {
width: 100%;
max-height: 69vh; height: auto;
@include flexDown(space-between);
background-color: $bg-alt;
backdrop-filter: blur(8px);
border-radius: $rad;
transition: max-height 0.15s cubic-bezier(.19,1,.22,1);
}
.svg {
margin: 0 0.2rem 0.1rem 0;
@ -179,4 +169,4 @@ form {
object-position: center;
}
}
}

View file

@ -4,14 +4,16 @@
|-------------------------------------------------------------
*/
.info-text {
margin: 1rem 0; padding: 0;
@include defaultFont();
margin: 1rem 0 1rem 0.5rem; padding: 0;
text-align: center;
h1 {
font-family: $font-header;
margin-top: 0.5rem;
margin-top: 0;
margin-bottom: 1rem;
}
p {
@ -23,7 +25,7 @@
}
.gallery-root {
padding: 0.25rem;
margin-bottom: 1rem; padding: 0.25rem;
background-color: $bg; color: $fg;
@ -93,7 +95,7 @@
display: flex;
background-color: $bg;
background-color: $bg-alt;
backdrop-filter: blur(8px);
border-radius: $rad;
@ -103,10 +105,10 @@
@media (max-width: 600px) {
.image-container {
max-height: 42vh !important;
max-height: 42vh;
}
}
.image {
margin: 0 auto;
@ -114,4 +116,59 @@
max-height: inherit; height: auto;
border-radius: $rad;
}
}
/*
|-------------------------------------------------------------
| DESCRIPTION
|-------------------------------------------------------------
*/
.image-description {
@include defaultDecoration($green);
@include defaultFont();
}
/*
|-------------------------------------------------------------
| DETAILS
|-------------------------------------------------------------
*/
.image-detail {
@include defaultDecoration($green);
@include defaultFont();
}
/*
|-------------------------------------------------------------
| TAGS
|-------------------------------------------------------------
*/
.tags-root {
@include defaultDecoration($green);
@include defaultFont();
}
.tags {
@include flexLeft(auto);
}
.tag {
margin: 0.25rem; padding: 0.5rem;
display: block;
background-color: $page-accent;
border-radius: $rad;
font-family: $font-body;
}
/*
|-------------------------------------------------------------
| DANGER ZONE
|-------------------------------------------------------------
*/
.danger-zone {
@include defaultDecoration($red);
@include defaultFont();
}

View file

@ -2,7 +2,7 @@ footer {
@include defaultDecoration($page-accent);
@include flexLeft(space-around);
margin: 0 auto !important;
margin: 0 auto;
bottom: 0;

View file

@ -1,15 +1,28 @@
@mixin defaultDecoration($border) {
width: calc(100% - 2.4rem);
padding: 0.5rem;
margin-bottom: 1rem; padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: $bg; color: $fg;
border-radius: $rad;
border: 0.2rem solid $border;
box-shadow: $shadow;
>* {
margin-top: 0; margin-bottom: 0.5rem;
}
}
@mixin defaultFont() {
h1, h2, h3, h4, h5 {
font-family: $font-header;
}
p, a, button, input {
font-family: $font-body;
}
}
@mixin flexDown($justify) {

View file

@ -20,6 +20,9 @@ nav {
margin: 0.5rem 0.2rem; padding: 0;
opacity: 0;
}
.btn {
width: auto;
}
}
.nav-name {
@ -36,6 +39,8 @@ nav {
.nav-links {
@include flexLeft(space-around);
margin: 0;
font-family: $font-body;
width: auto;
@ -59,7 +64,7 @@ nav {
position: fixed;
top: auto; bottom: 0; left: 0; right: 0;
background-color: $bg;
background-color: $bg-alt;
backdrop-filter: blur(8px);
border: none;
@ -76,7 +81,7 @@ nav {
text-align: left !important;
}
footer {
margin-bottom: calc(5rem + 3px) !important;
margin-bottom: 4rem !important;
}
#back-to-top {
bottom: 5rem !important;

View file

@ -192,8 +192,10 @@
// Image Upload date
echo "<p>Last updated: +0 ".$image['upload']."</p>";
echo "<br>";
// Image download
echo "<a class='btn alert-high space-top' href='images/".$image['imagename']."' download='".$image['imagename']."'><img class='svg' src='assets/icons/download.svg'>Download image</a>";
echo "<a class='btn btn-good' href='images/".$image['imagename']."' download='".$image['imagename']."'><img class='svg' src='assets/icons/download.svg'>Download image</a>";
// Copy image
?>
@ -205,19 +207,19 @@
}
</script>
<?php
echo "<button class='btn alert-high space-top-small' onclick='copyLink()'><img class='svg' src='assets/icons/clipboard-text.svg'>Copy image link</button>";
echo "<button class='btn btn-good' onclick='copyLink()'><img class='svg' src='assets/icons/clipboard-text.svg'>Copy image link</button>";
?>
</div>
<div class="tags-root default-window">
<h2>Tags</h2>
<div class="tags flex-left">
<div class="tags">
<?php
// Get image tags
if (isset($image['tags']) && !empty($image['tags'])) {
$image_tags_array = explode(" ", $image['tags']);
foreach ($image_tags_array as $tag) {
echo "<p class='tag alert-high'><img class='svg' src='assets/icons/tag.svg'>".$tag."</p>";
echo "<p class='tag btn-good'><img class='svg' src='assets/icons/tag.svg'>".$tag."</p>";
}
} else {
echo "<p>No tags present</p>";
@ -249,13 +251,13 @@
| I cannot describe the anxiety this gives me. pls help
|-------------------------------------------------------------
-->
<button id='deleteButton' class='btn alert-low'><img class='svg' src='assets/icons/trash.svg'>Delete image</button>
<button id='deleteButton' class='btn btn-bad'><img class='svg' src='assets/icons/trash.svg'>Delete image</button>
<script>
$('#deleteButton').click(function() {
var header = "Are you sure?";
var description = "Deleting this image is pernament, there is no going back after this!!!!!";
var actionBox = "<form id='deleteConfirm' method='POST'>\
<button id='deleteSubmit' class='btn alert-low' type='submit'><img class='svg' src='assets/icons/trash.svg'>Delete image</button>\
<button id='deleteSubmit' class='btn btn-bad' type='submit'><img class='svg' src='assets/icons/trash.svg'>Delete image</button>\
</form>";
flyoutShow(header, description, actionBox);
@ -279,14 +281,14 @@
| TO FIGURE OUT. i hate js.
|-------------------------------------------------------------
-->
<button id='descriptionButton' class='btn alert-low space-top-small'><img class='svg' src='assets/icons/edit.svg'>Edit description</button>
<button id='descriptionButton' class='btn btn-bad'><img class='svg' src='assets/icons/edit.svg'>Edit description</button>
<script>
$('#descriptionButton').click(function() {
var header = "Enter new Description/Alt";
var description = "Whatcha gonna put in there 👀";
var actionBox = "<form id='descriptionConfirm' action='app/image/edit_description.php' method='POST'>\
<input id='descriptionInput' class='btn alert-default space-bottom' type='text' placeholder='Description/Alt for image'>\
<button id='descriptionSubmit' class='btn alert-low' type='submit'><img class='svg' src='assets/icons/edit.svg'>Update information</button>\
<input id='descriptionInput' class='btn btn-neutral space-bottom' type='text' placeholder='Description/Alt for image'>\
<button id='descriptionSubmit' class='btn btn-bad' type='submit'><img class='svg' src='assets/icons/edit.svg'>Update information</button>\
</form>";
flyoutShow(header, description, actionBox);
@ -313,14 +315,14 @@
| anyone cry. I am so sorry.
|-------------------------------------------------------------
-->
<button id='tagsButton' class='btn alert-low space-top-small'><img class='svg' src='assets/icons/tag.svg'>Add image tags</button>
<button id='tagsButton' class='btn btn-bad'><img class='svg' src='assets/icons/tag.svg'>Add image tags</button>
<script>
$('#tagsButton').click(function() {
var header = "Tags";
var description = "Add image tags here! This is still being tested so your tags may be removed later on. Tags ONLY accept, letters, numbers and underscores. Hyphens will be stitched to underscores and spaces will seperate the different tags from eachother";
var actionBox = "<form id='tagsConfirm' action='app/image/edit_tags.php' method='POST'>\
<input id='tagsInput' class='btn alert-default space-bottom' type='text' placeholder='Tags are seperated by spaces'>\
<button id='tagsSubmit' class='btn alert-low' type='submit'><img class='svg' src='assets/icons/edit.svg'>Edit tags</button>\
<input id='tagsInput' class='btn btn-neutral space-bottom' type='text' placeholder='Tags are seperated by spaces'>\
<button id='tagsSubmit' class='btn btn-bad' type='submit'><img class='svg' src='assets/icons/edit.svg'>Edit tags</button>\
</form>";
flyoutShow(header, description, actionBox);
@ -347,14 +349,14 @@
<?php
if (is_admin($_SESSION['id'])) {
?>
<button id='authorButton' class='btn alert-low space-top-small'><img class='svg' src='assets/icons/edit.svg'>Edit author</button>
<button id='authorButton' class='btn btn-bad'><img class='svg' src='assets/icons/edit.svg'>Edit author</button>
<script>
$('#authorButton').click(function() {
var header = "Who owns the image?????";
var description = "Enter ID of image owner";
var actionBox = "<form id='authorConfirm' action='app/image/edit_author.php' method='POST'>\
<input id='authorInput' class='btn alert-default space-bottom' type='text' placeholder='le author'>\
<button id='authorSubmit' class='btn alert-low' type='submit'><img class='svg' src='assets/icons/edit.svg'>Edit author</button>\
<input id='authorInput' class='btn btn-neutral space-bottom' type='text' placeholder='le author'>\
<button id='authorSubmit' class='btn btn-bad' type='submit'><img class='svg' src='assets/icons/edit.svg'>Edit author</button>\
</form>";
flyoutShow(header, description, actionBox);
@ -385,4 +387,4 @@
<?php include "ui/footer.php"; ?>
</body>
</html>
</html>