summaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-02-01 20:56:09 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-02-01 20:56:09 -0500
commite43bee9e2e4dedb42eacbb524a96554bd73051ac (patch)
treec5903d2e32dbf9551ec265f04b520ba55ee856da /public/css
parentstatic serve refactor (diff)
downloadxssbook-e43bee9e2e4dedb42eacbb524a96554bd73051ac.tar.gz
xssbook-e43bee9e2e4dedb42eacbb524a96554bd73051ac.tar.bz2
xssbook-e43bee9e2e4dedb42eacbb524a96554bd73051ac.zip
image upload spinner
Diffstat (limited to 'public/css')
-rw-r--r--public/css/main.css51
-rw-r--r--public/css/profile.css1
2 files changed, 51 insertions, 1 deletions
diff --git a/public/css/main.css b/public/css/main.css
index 0314b3f..4819f38 100644
--- a/public/css/main.css
+++ b/public/css/main.css
@@ -308,6 +308,7 @@ footer {
background-color: var(--hover);
flex-shrink: 0;
image-rendering: crisp-edges;
+ object-fit: cover;
}
.nb {
@@ -378,4 +379,52 @@ form {
filter: invert(100%) !important;
background-color: #bbbbbb !important;
}
-} \ No newline at end of file
+}
+
+.fullwidth {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+}
+
+.loading {
+ display: inline-block;
+ position: relative;
+ width: 80px;
+ height: 80px;
+}
+
+.loading div {
+ box-sizing: border-box;
+ display: block;
+ position: absolute;
+ width: 64px;
+ height: 64px;
+ margin: 8px;
+ border: 3px solid var(--text);
+ border-radius: 50%;
+ animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
+ border-color: var(--text) transparent transparent transparent;
+}
+
+.loading div:nth-child(1) {
+ animation-delay: -0.45s;
+}
+
+.loading div:nth-child(2) {
+ animation-delay: -0.3s;
+}
+
+.loading div:nth-child(3) {
+ animation-delay: -0.15s;
+}
+
+@keyframes loading {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+ \ No newline at end of file
diff --git a/public/css/profile.css b/public/css/profile.css
index 4aff91b..8f212dd 100644
--- a/public/css/profile.css
+++ b/public/css/profile.css
@@ -30,6 +30,7 @@ body {
height: inherit;
background-color: var(--hover);
border-radius: 0px 0px 20px 20px;
+ object-fit: cover;
}
#info {