oho/README.md

49 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2019-03-22 10:10:07 +00:00
# OHO - Openource Hardware Observatory
2019-04-14 22:40:45 +00:00
## Intro
2019-04-15 00:05:58 +00:00
### Demo
https://oho.zeitpunkt-agentur.org
2019-04-14 23:30:50 +00:00
### CSS
2019-04-14 22:40:45 +00:00
The styling of the page is in the CSS file: **[style.css](https://git.bmen.eu/Projekte/oho/src/master/style.css)**. In general, only the classes of elements of the media wiki have to be found out and transferred to the CSS. Some implementations are a bit more tricky and are described in more detail in this Readme.
2019-04-14 23:30:50 +00:00
### Images
2019-04-15 00:22:44 +00:00
All images are in the folder [/img](https://git.bmen.eu/Projekte/oho/src/master/img). There are sample images as well as individual icons, banner / footer backgrounds and logo files.
2019-04-14 22:40:45 +00:00
2019-04-14 23:30:50 +00:00
### Javascript
2019-04-15 00:05:58 +00:00
The Javascript Framework Jquery is used for this website. The javascript functions are saved in separate files in the [/js](https://git.bmen.eu/Projekte/oho/src/master/js) folder and named according to their task.
2019-04-14 22:40:45 +00:00
## Overview CSS classes homepage
![Overview CSS classes homepage](https://git.bmen.eu/Projekte/oho/raw/master/doc/overview_css_classes_home.png)
2019-04-15 00:29:44 +00:00
## z-index
```
.header {
z-index:1003;
}
.search-results-item:hover {
z-index:1002;
}
.row::before {
z-index:1001;
}
.row::after {
z-index:1001;
}
.searchbar {
z-index:1000;
}
.search-results-item {
z-index:999;
}
```
2019-04-14 22:40:45 +00:00
## Row - Background and red lines (CSS line: 51-87)
The rows who separating the content horizontally must be 100% wide. This means that the width restriction of the content must be made within the row. So the background color gradiation is in full width and the red lines are on the left and right side of the browser.
The red lines are purely CSS and no additionaly HTML elements have to be created.
```
.row::before {...}
.row::after {...}
```
## Search results grid
2019-04-15 00:17:31 +00:00
![](https://git.bmen.eu/Projekte/oho/raw/master/doc/search-results-grid.png)
2019-04-15 00:29:44 +00:00
2019-04-15 00:18:30 +00:00
Because of the hover effect, the search result item (.search-results-item) must be absolutely positioned. Therefore, it is important that there is a grid element (.col-1-4) above the search result item which is relatively positioned. And it needs even a minimum height, because the absolutely positioned search result item falls from the HTML flow.