Arc-hive-omeka-theme/README.md

111 lines
4.9 KiB
Markdown
Raw Normal View History

2021-06-08 11:07:11 +02:00
# Arc-hive omeka theme
2021-04-25 09:49:47 +02:00
2021-06-08 11:07:11 +02:00
This is the Arc-hive development theme based on Omeka S theme based on [Omeka Foundation S theme].
## dev site
https://dev-archive.hangar.org/
2021-04-25 09:49:47 +02:00
2021-07-06 18:36:03 +02:00
### designs omeka
We are trying to accomplish this design for the OmekaS system
https://www.figma.com/file/HruKRRVPgfAgSgs8HihI2w/ARCHIVE-WEB-04?node-id=274%3A0
2021-04-25 09:49:47 +02:00
## Installation
2021-05-31 15:17:12 +02:00
For basic out-of-the-box use of the theme, follow the [Omeka S User Manual instructions for installing themes](https://omeka.org/s/docs/user-manual/sites/site_theme/#installing-themes).
2021-06-08 11:07:11 +02:00
```bash
2021-05-31 15:17:12 +02:00
cd themes
2021-07-06 15:12:57 +02:00
git clone https://git.hangar.org/arcHIVE-tech/Arc-hive-omeka-theme.git archive
cd archive
2021-06-08 11:07:11 +02:00
git checkout arc-hive-v01
chown -R www-data:www-data ./
2021-05-31 15:17:12 +02:00
```
2021-06-08 11:07:11 +02:00
to update changes
2021-05-31 15:17:12 +02:00
2021-06-08 11:07:11 +02:00
```bash
2021-07-06 15:12:57 +02:00
cd themes/archive
2021-06-08 11:07:11 +02:00
git pull
chown -R www-data:www-data ./
```
2021-05-31 15:17:12 +02:00
2021-06-08 11:07:11 +02:00
## Arc-hive theme notes
2021-05-31 15:17:12 +02:00
2021-04-25 09:49:47 +02:00
For more advanced use, such as customizing the theme with Sass, you'll need to install the tools with [NodeJS](https://nodejs.org/en/) (0.12 or greater). Navigate to your theme directory and run `npm install`.
## Theme Configuration
* **Stylesheet**: The theme provides 4 style options.
* **Default** uses ZURB Foundation's default styles for prototyping, which are all viewable in their documentation under the [Kitchen Sink](https://get.foundation/sites/docs/kitchen-sink.html).
* **Revolution** aims to capture the feel of old documents and juxtaposes it with a bright red accent. It includes a textured paper background image.
* **Sea Foam** offers a clean, friendly look with a teal palette.
* **Inkwell** features a high contrast serif family for its typography, as well as sunny yellow accents.
* **Navigation layouts**: Global navigation can display as a **horizontal top bar with optional dropdown menus** or a **left vertical column**.
* **Show Top Navigation Child Pages**: Toggle display of child pages within the main navigation.
* **Top Navigation Depth**: If the main navigation is set to display child pages, this setting controls how many navigation levels to display. Setting this to '0' shows all levels.
* **Logo**: Upload an image asset to use as a logo in place of a text site title.
* **Footer Content**: Control what appears in the footer. This field takes HTML markup.
* **Layout for Browse Pages**: Select how to display items within their "browse" views.
* **Grid**: Items are organized into rows and columns. This is recommended for items that prominently feature images.
* **List**: Items are stacked into a single column.
* **Toggle (default: grid)**: Site visitors can choose to display the browse views as grids or lists, and grids are the default.
* **Toggle (default: list)**: Site visitors can choose to display the browse views as grids or lists, and lists are the default.
* **Layout for Show Pages**: Resource metadata can show display as **stacked** with properties as headings above their values, or **inline** with properties as headings inline with their values.
## Customizing the Theme
2021-07-06 18:28:00 +02:00
### CSS classes
Arc-hive projecct css classes will start with `arc-` as ex: `arc-my-class-name`
2021-04-25 09:49:47 +02:00
### Sass Tasks
Run these commands within the theme's root directory.
* **npm start**: While this task runs, it watches for changes to sass files and recompiles the CSS.
* **gulp sass**: This is the one-off task for compiling the current Sass/CSS.
### Sass File Structure
Foundation S comes with the Default theme, as well as 3 other customized stylesheets that were built on top of Default. The "Sea Foam" theme has the fewest overrides and is thus the easiest reference for a custom theme model.
**/asset/sass/seafoam.scss**
```
@charset 'utf-8';
@import 'globals-default';
@import 'globals-seafoam';
@import 'settings';
// Sea Foam Settings
$topbar-background: $primary-color;
2021-05-31 15:17:12 +02:00
2021-04-25 09:49:47 +02:00
$thumbnail-border: 4px solid $secondary-color;
$thumbnail-shadow: none;
$thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5);
$button-background: $secondary-color;
$button-color: $primary-color;
@import 'foundation-core';
@import 'omeka';
header a {
color: $white;
}
```
2021-05-31 15:17:12 +02:00
Much of the customizability within the theme lies in managing its settings variables. ZURB Foundation's default global variables from their original `_settings.scss` all sit in `_globals-default.scss`. Many of these variables are used throughout the rest of `_settings.scss`, so it was necessary to separate them out into their own file if the theme writer wants to set their own global variables. Here all the overrides live in `_globals-seafoam.scss`, and so all overridden values will be appropriately updated for use throughout the rest of `_settings.scss`.
2021-04-25 09:49:47 +02:00
2021-05-31 15:17:12 +02:00
Any non-global setting variable overrides should come after the import for `_settings.scss` and before their usagee in the rule files, `_foundation-core.scss`, and `_omeka.scss`.
2021-04-25 09:49:47 +02:00
ZURB Foundation's default style rules are all managed in `_foundation-core.scss`. All style rules specific to Omeka S are contained within `_omeka.scss`.
2021-05-31 15:17:12 +02:00
After all those imports come all style rules specific to the theme.