From 0f2f6bc1c5473558fe593ce6865d68e50272c4b5 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 3 May 2023 22:23:22 -0400 Subject: Migrated Search Area --- static/css/search.css | 30 ++++++++++++++++++++++++++++++ static/css/styles.css | 3 +++ static/images/backgrounds/search-area.png | Bin 0 -> 40022 bytes templates/blog/partials/base.html | 8 +++++++- templates/blog/partials/sidebar.html | 16 ---------------- templates/blog/search.html | 9 --------- 6 files changed, 40 insertions(+), 26 deletions(-) create mode 100644 static/css/search.css create mode 100644 static/images/backgrounds/search-area.png diff --git a/static/css/search.css b/static/css/search.css new file mode 100644 index 00000000..946650c0 --- /dev/null +++ b/static/css/search.css @@ -0,0 +1,30 @@ +#search-area { + width: 250px; + height: 110px; + background: url('../images/backgrounds/search-area.png') no-repeat; + background-size: 250px 110px; + margin: auto; + padding: 0px; + border: 0px; + position: absolute; + bottom: 0px; + right: 0px; +} + +#search-form { + position: absolute; + bottom: 10px; + left: 40px; +} + +#search-form input[type=text]{ + display: block; + width: 180px; + font-size: 12px; + background: transparent; + color: #231F20; + border-radius: 4px; +} +#search-form input::placeholder { + color: #524e4f; +} diff --git a/static/css/styles.css b/static/css/styles.css index 072c68b7..f5b99bb3 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1,3 +1,5 @@ +@import url(search.css); + body { background: black; font-size: 11px; @@ -257,6 +259,7 @@ blockquote { margin: auto; width: 1000px; height: 360px; + position: relative; } #navigation-area ul, #archives-area ul, #categories-area ul, #admin-area ul, #announcements ul, #user-area ul, #fun-stuff ul, #activity ul { diff --git a/static/images/backgrounds/search-area.png b/static/images/backgrounds/search-area.png new file mode 100644 index 00000000..3c13c990 Binary files /dev/null and b/static/images/backgrounds/search-area.png differ diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html index 3f3b5f19..f6fa9ff1 100644 --- a/templates/blog/partials/base.html +++ b/templates/blog/partials/base.html @@ -27,7 +27,13 @@
- + diff --git a/templates/blog/partials/sidebar.html b/templates/blog/partials/sidebar.html index cc1fcf70..ec0486b6 100644 --- a/templates/blog/partials/sidebar.html +++ b/templates/blog/partials/sidebar.html @@ -38,22 +38,6 @@ {% endif %} - -
-

Search

-
-
- - - - -
- - - -
- -
{% if user.is_authenticated %}

Hello, {{ user.username }}!

diff --git a/templates/blog/search.html b/templates/blog/search.html index dc92cd15..a709ccb0 100644 --- a/templates/blog/search.html +++ b/templates/blog/search.html @@ -1,14 +1,5 @@ {% extends 'blog/partials/base.html' %} {% block content %} {% load get_list %} - -- cgit v1.2.3