diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-14 16:42:16 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-14 17:28:11 +0200 |
commit | 01cbd757d69668b39c1b072b0449b77e6e2bee8d (patch) | |
tree | 3bb22c5a3d21543a69a03e0e03d7fc864878e19a /theme/admin/html | |
parent | a4242144eebc101bc1e5ec150a80312e30d0112f (diff) | |
download | blog-01cbd757d69668b39c1b072b0449b77e6e2bee8d.tar.gz blog-01cbd757d69668b39c1b072b0449b77e6e2bee8d.tar.xz blog-01cbd757d69668b39c1b072b0449b77e6e2bee8d.zip |
Do some minor optimizations on the admin theme
* Add noisy background images
* Rename SCSS/CSS file "main" to "bright"
* Remove uppercase text-transform for headings
* Replace hardcoded font sizes with SCSS variables
* Decrease font size for category link in post item template
* Move right-floated ID before the heading in the HTML markup to ensure
it does not moves to the second line if the heading text is too wide.
Diffstat (limited to 'theme/admin/html')
-rw-r--r-- | theme/admin/html/category/item.php | 2 | ||||
-rw-r--r-- | theme/admin/html/main.php | 2 | ||||
-rw-r--r-- | theme/admin/html/page/item.php | 2 | ||||
-rw-r--r-- | theme/admin/html/post/item.php | 2 | ||||
-rw-r--r-- | theme/admin/html/user/item.php | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/theme/admin/html/category/item.php b/theme/admin/html/category/item.php index 710253c..0c6d243 100644 --- a/theme/admin/html/category/item.php +++ b/theme/admin/html/category/item.php @@ -1,8 +1,8 @@ <article class="item"> <header> <h2> - <i class="fa fa-tag"></i><?=escapeHTML($CATEGORY['ATTR']['NAME'])?> <span class="item-id">#<?=$CATEGORY['ATTR']['ID']?></span> + <i class="fa fa-tag"></i><?=escapeHTML($CATEGORY['ATTR']['NAME'])?> </h2> <ul class="item-meta"> <li> diff --git a/theme/admin/html/main.php b/theme/admin/html/main.php index a0a1412..82dd407 100644 --- a/theme/admin/html/main.php +++ b/theme/admin/html/main.php @@ -11,7 +11,7 @@ if($toogle = HTTP::GET('colors')) { } } -$theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'main'; +$theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'bright'; ?> <!DOCTYPE html> <html lang="<?=$BLOGMETA['LANG']?>"> diff --git a/theme/admin/html/page/item.php b/theme/admin/html/page/item.php index 018286e..6e394bb 100644 --- a/theme/admin/html/page/item.php +++ b/theme/admin/html/page/item.php @@ -1,8 +1,8 @@ <article class="item"> <header> <h2> - <i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?> <span class="item-id">#<?=$PAGE['ATTR']['ID']?></span> + <i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?> </h2> <ul class="item-meta"> <li> diff --git a/theme/admin/html/post/item.php b/theme/admin/html/post/item.php index 5261bdb..e4b2bec 100644 --- a/theme/admin/html/post/item.php +++ b/theme/admin/html/post/item.php @@ -1,8 +1,8 @@ <article class="item"> <header> <h2> - <i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?> <span class="item-id">#<?=$POST['ATTR']['ID']?></span> + <i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?> </h2> <ul class="item-meta"> <li> diff --git a/theme/admin/html/user/item.php b/theme/admin/html/user/item.php index 9a5a83e..3a9ecb6 100644 --- a/theme/admin/html/user/item.php +++ b/theme/admin/html/user/item.php @@ -1,8 +1,8 @@ <article class="item"> <header> <h2> - <i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?> <span class="item-id">#<?=$USER['ATTR']['ID']?></span> + <i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?> </h2> <ul class="item-meta"> <li> |