aboutsummaryrefslogtreecommitdiffstats
path: root/theme
AgeCommit message (Collapse)AuthorFilesLines
2024-02-03Fix use of wrong Fontello class for nav toggleThomas Lange1-1/+1
Broken since 6f1c594 when the class name in the Fontello SCSS file has been renamed from `fa-bars` to `fa-menu` and it was forgotten to also change the use of the class name in the HTML template.
2024-01-23Remove trailing slash on void elementsThomas Lange17-82/+82
The trailing slash on void elements (self-closing tags) doesn't have any effect, isn't required by HTML5 and it is recommended to not use it.
2023-02-01Darken the background color of the headerThomas Lange4-4/+6
Use SCSS variables for the background color of the header and darken it a bit more for the dark theme of the "admin" template.
2023-02-01Remove "text-shadow" property from header textThomas Lange3-3/+0
2023-02-01Recompile CSS and add ".sass-cache" to .gitignoreThomas Lange3-1713/+1044
2021-10-02Fix wrong color scheme identifier in migration.phpThomas Lange1-1/+1
The light color scheme was renamed from "main" to "bright" since the following commit: 01cbd757d69668b39c1b072b0449b77e6e2bee8d
2021-09-19Pre-select the current user in page/post formThomas Lange2-2/+4
Pre-select the user with the user ID of the current session in the forms for creating a page or a post. This fixes the problem that occurs if one have multiple users in the database, but the create forms were not using the *current* logged-in user as the default selected user. The forms for modifying a page or post are not affected because they use the ID from "$FORM['DATA']['USER']" for selecting the correct user. This key is undefined on the create forms, so we use "$_SESSION['USER_ID']" for selecting the default user for creating new pages and posts.
2021-08-26Add underline for blue hyperlinks in admin themeThomas Lange3-3/+16
2021-08-26Explicitly set placeholder color for admin themeThomas Lange3-0/+24
Explicitly set the placeholder color and opacity for the form fields of the admin theme as the various browsers are using different defaults.
2021-08-26Explicitly set scrollbar colors for admin themeThomas Lange5-0/+108
Explicitly set the scrollbar colors for the admin theme instead of using the default colors of the web browser and integrate the scrollbar colors better into the user-selected color scheme (bright or dark).
2021-08-10Clear floating for #message-list-wrapperThomas Lange3-0/+3
2021-08-09Show ID in the heading of the update templateThomas Lange4-4/+16
Show the current entity ID right-floated in the update.php templates.
2021-08-09Show action button list in entity update templateThomas Lange7-4/+23
Add a link to the current entity on the website and a link to the entity delete form in the administration area's update.php templates.
2021-08-05Update link to MySQL documentation in translationsThomas Lange4-6/+6
Since the introduction of the category system, the application requires MySQL >= 8.0, so we should update the links to the documentation of the MySQL search functionality to match the minimum required MySQL version.
2021-07-28Add "required" attribute to required form fieldsThomas Lange8-15/+15
2021-07-24Update CSS for "code" tag in error message boxThomas Lange3-0/+13
2021-07-24Create feed item's GUID manually in template fileThomas Lange1-1/+1
Do not rely on the "$POST['GUID']" template parameter anymore and create the GUID for the feed item manually in the feed item's template file. The application internal function "generatePseudoGUID" has been removed and the function "generateItemTemplateData" will not return the "GUID" part anymore (which was only used by the feed item template anyway). For backward compatibility, the "$POST['GUID']" template parameter will still be present in the feed item template, but not in other templates!
2021-07-22Add quick link from category item to post searchThomas Lange1-0/+1
Add a quick link to the post search in the administration area with the category of the item preselected to search only posts in this category.
2021-07-22Add "autofocus" attribute to HTML form fieldsThomas Lange8-8/+8
2021-07-22Add user and category filter on post searchThomas Lange1-0/+37
Add a user and category filter option for the post search in the administration area. Filter on default theme is followed later.
2021-07-22Catch possible PDOException for search requestThomas Lange2-0/+20
Catch possible PDOException on search requests with queries like "*" and pass the exception message to the template for displaying.
2021-07-22Add pagination for search resultsThomas Lange3-0/+10
Add pagination for search results in the admin and default theme.
2021-07-14Do some minor optimizations on the admin themeThomas Lange12-25/+25
* 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.
2021-07-10Remove pages from the RSS feed (readme)Thomas Lange9-60/+21
This commit removes the pages from the RSS feed. I decided so because a page is a "timeless" object intended for things like the imprint, about page, privacy policy and similar stuff. It also makes things easier. The new primary feed URL is "/feed/" and shows only posts. The page feed ("/feed/page/") has been removed and will throw a 404 Not Found error. The visitors who already subscribed to the old post feed ("/feed/post/") are automatically 301-redirected to the new location ("/feed/"). The following system language variables have been removed: * feed_name_items * feed_name_pages * feed_name_posts The following configuration options have been removed: * PAGE.FEED_SIZE * PAGE.FEED_SORT * PAGE.FEED_GUID Furthermore, the template file "feed/item_post.php" has been renamed to "feed/item.php" since there is now only one type of feed item. If the system cannot find the "feed/item.php", it tries "feed/item_post.php" instead (for backward compatibility with older themes).
2021-07-10Fix unequal grid item widths (and use fr unit)Thomas Lange4-39/+30
This commit fixes the inconsistent grid item widths in the form and item overview grid layout. It now also makes use of the fraction unit "fr". See: https://css-tricks.com/introduction-fr-css-unit/
2021-07-09Detect unsaved changes in content editorThomas Lange1-0/+31
This commit adds a bit of JavaScript code to detect unsaved changes in the content editor when trying to leave the page. The browser's default confirmation dialog is shown when unsaved changes are detected. This currently only covers the textarea of the content editor, not the other form fields. There may be a better solution (like LocalStorage), but it works for the moment. I'll add it to my TODO list...
2021-07-09Bugfix: Add CSS "word-break" propertyThomas Lange3-0/+3
2021-07-05Add dark color mode for admin themeThomas Lange9-8/+1281
This commit adds a dark color mode for the admin theme. The dark color mode can be enabled/disabled by clicking the hyperlink in the footer. It is not perfect yet (it uses cookies and needs a full page reload), but it works just fine for the moment. Hope your eyes can enjoy it!
2021-07-05Add SCSS variables and do some minor optimizationsThomas Lange10-819/+896
This commit adds and uses variables for the SCSS files. Additionally, some minor optimizations have been done on the theme's HTML/CSS code.
2021-07-05Remove unused Font Awesome libraryThomas Lange1-4/+0
2021-07-04Remove unused CSS rules from admin themeThomas Lange2-76/+4
2021-07-04Use CSS grid for admin search formsThomas Lange4-4/+21
2021-07-04Prettify the item meta elements in the admin themeThomas Lange6-51/+51
This commit prettifies the item meta elements in the admin theme and also removes those ugly square brackets. It looks a lot better now.
2021-07-04Use list for item meta elementsThomas Lange6-16/+52
2021-07-04Move ID into heading element and remove bracketsThomas Lange6-8/+20
2021-07-01Add category system to categorize posts (readme)Thomas Lange16-3/+411
This commit implements a new category system to categorize posts. Each category can have an unlimited number of nested children categories. A single post don't necessarily need to be in a category, but it can. Each category can have a full content body like posts or pages, so you have enough space to describe the content of your categories. Please note that you need to have at least the following MySQL/MariaDB versions to use the category system, because it uses "WITH RECURSIVE" database queries, the so-called "Common-Table-Expressions (CTE)". MariaDB: 10.2.2 MySQL: 8.0 See: https://mariadb.com/kb/en/with/ See: https://dev.mysql.com/doc/refman/8.0/en/with.html
2021-07-01Add translations for upcoming category systemThomas Lange4-3/+31
2021-06-28Update Fontello for default themeThomas Lange8-96/+983
2021-06-26Use shorthand ternary operator in admin formsThomas Lange3-3/+3
2021-06-26Fix bug in user select form fieldThomas Lange2-2/+2
2021-06-26Add and change some Fontello icons for admin themeThomas Lange16-405/+919
2021-06-24Implement database schema MigratorThomas Lange6-19/+125
This commit implements the new database schema Migrator which keeps track of the on-disk schema and the schema used by the codebase. It tries to makes future database schema upgrades user-friendlier.
2021-06-23Show custom title and description in admin headerThomas Lange1-2/+2
2021-06-19Remove ID form field (and rearrange other fields)Thomas Lange6-51/+48
This commit removes the ID form field, enlarges the title form field and rearranges the other form fields in the grid layout.
2021-06-19Fix missing margin on user listThomas Lange2-0/+9
2021-06-14Darken background on focused/active buttonsThomas Lange2-2/+21
2021-06-13Use grid layout for items in administration areaThomas Lange23-66/+166
Introduce a new 1/2/3-column CSS grid layout in the administration area for items on overview pages and in the search results. The column count of the grid depends on the users viewport width. In addition, the default value of the following configuration settings has been changed to 12 because 12 can also be divided by 2 and 3 which is useful for the 1/2/3-column grid layout. ADMIN.PAGE.LIST_SIZE = 12 ADMIN.POST.LIST_SIZE = 12
2021-06-13Ignore source maps for Javascript and CSSThomas Lange2-2/+0
2021-06-13Replace the flex layout in favor of a grid layoutThomas Lange11-277/+265
This commit replaces the initial CSS flexbox layout for forms of the admin theme with a more elegant approach called "grid layout". :) Some interesting information: https://www.w3schools.com/css/css_grid.asp https://blog.logrocket.com/flexbox-vs-css-grid/
2021-06-12Remove outline from focused form elementsThomas Lange2-0/+7