Compare commits
17 Commits
fix/fontsi
...
main
Author | SHA1 | Date |
---|---|---|
jorge | f279e3debc | |
jorge | a09bc127b7 | |
jorge | 0a5c9be1e4 | |
jorge | f0494cb874 | |
jorge | 5183bec42a | |
jorge | 52836de96c | |
jorge | cf56c8b912 | |
jorge | b482acda67 | |
jorge | b88efeb9ef | |
jorge | c4d97514b0 | |
jorge | d8bbb010ab | |
jorge | b95b003eff | |
jorge | 201b3c71f7 | |
jorge | b61c94c3cd | |
jorge | 4e70055570 | |
jorge | 36d578541e | |
jorge | 5138e67908 |
85
README.md
85
README.md
|
@ -1,3 +1,88 @@
|
|||
# Gridspinoza theme
|
||||
|
||||
Theme based up on BootStrap modified for the [GridSpinoza](https://gridspinoza.net) website, as part of the [Hangar](https://hangar.org)network.
|
||||
|
||||
|
||||
## Development / modifications
|
||||
|
||||
The repo is cloned inside the servers theme, but from ther we have no writing permissions in the git repository, so the development is always done locally, then pushed to [Hangar Git](http://git.hangar.org) and from the server they are `pulled`.
|
||||
|
||||
In our computer (localhost):
|
||||
```
|
||||
git clone ssh://git@git.hangar.org:21036/hangar-tech/gridspinoza.git
|
||||
```
|
||||
|
||||
|
||||
## Appliying changes in server
|
||||
|
||||
Before we did prepare the content by https cloning the repo `git clone https://git.hangar.org/hangar-tech/gridspinoza.git` and changing file permissions to server needs.
|
||||
|
||||
Go to the theme directory:
|
||||
```
|
||||
cd /var/www/html/sites/all/themes/gridspinoza
|
||||
```
|
||||
|
||||
|
||||
from there checkout the `main` branch and `pull`
|
||||
```
|
||||
git checkout main
|
||||
git pull
|
||||
```
|
||||
|
||||
### checking changes before apply
|
||||
We can create different branches locally, then push them and in the server preview before applying to main.
|
||||
|
||||
For example, need to fix "font-size" some were.
|
||||
|
||||
#### local host
|
||||
|
||||
checkout main repo and be up to date
|
||||
|
||||
```
|
||||
git checkout main
|
||||
git status
|
||||
git pull
|
||||
```
|
||||
create new branch and check out
|
||||
```
|
||||
git branch fix/font-size
|
||||
git checkout fix/font-size
|
||||
```
|
||||
start doing changes and commit and push them to server
|
||||
|
||||
#### in the sever
|
||||
Pull changes
|
||||
|
||||
```
|
||||
cd /var/www/html/sites/all/themes/gridspinoza
|
||||
git fetch --all
|
||||
git checkout fix/font-size
|
||||
git pull
|
||||
```
|
||||
now you can refresh the browser and eventually fix more things.
|
||||
|
||||
if you like it then do as next:
|
||||
|
||||
sever: `git checkout main`
|
||||
|
||||
localhost:
|
||||
- `git fetch all` to get all changes
|
||||
- in the _fix/font-size_ branch do `git merge main`
|
||||
- if ok, then go to _main_ branch `git checkout main`
|
||||
- merge changes `git merge fix/font-size`
|
||||
- publish the changes `git push`
|
||||
|
||||
go to the server, inside the theme directory `git fetch --all` and then `git checkout main` and finally `git pull`
|
||||
|
||||
|
||||
## Drupal enable debug mode
|
||||
This way we can check the html source code and see where the files are generated.
|
||||
|
||||
edit `/var/www/html/sites/default/services.yml` set option `debug: true` and go into drupal admin *configuration* -> *development* -> *performance* and **clear all caches**
|
||||
the url is https://MYWEBSITE.COM/admin/config/development/performance
|
||||
|
||||
---
|
||||
|
||||
<!-- @file Instructions on how to sub-theme the Drupal Bootstrap base theme using the CDN Starterkit. -->
|
||||
<!-- @defgroup subtheme_cdn -->
|
||||
<!-- @ingroup subtheme -->
|
||||
|
|
109
css/style.css
109
css/style.css
|
@ -16,6 +16,12 @@ h1 {
|
|||
h2, h3 {
|
||||
font-size: 20px;
|
||||
}
|
||||
a {
|
||||
color: #cf3b3b;
|
||||
}
|
||||
a:hover{
|
||||
color: #a63030;
|
||||
}
|
||||
|
||||
div.page-top {
|
||||
background-color: #dddddd;
|
||||
|
@ -104,7 +110,32 @@ div.region-top {
|
|||
float: right;
|
||||
width: 200px;
|
||||
}
|
||||
/*******************
|
||||
BUTTONS */
|
||||
|
||||
.btn-default, .btn-primary {
|
||||
color: #555;
|
||||
background-color: #eee;
|
||||
border-color: #ececec;
|
||||
padding: 1rem 3rem;
|
||||
border-radius: 0.4rem;
|
||||
}
|
||||
.btn-default:hover,.btn-primary:hover {
|
||||
color: #333;
|
||||
background-color: #e6e6e6;
|
||||
border-color: #adadad;
|
||||
}
|
||||
|
||||
/*******************
|
||||
TABLES */
|
||||
.table-bordered,
|
||||
.table-bordered * {
|
||||
border: none !important;
|
||||
}
|
||||
td {
|
||||
padding-top: 2rem !important;
|
||||
padding-bottom: 2rem !important;
|
||||
}
|
||||
/*******************
|
||||
MENU */
|
||||
|
||||
|
@ -123,7 +154,6 @@ header.container {
|
|||
|
||||
#block-gridspinoza-main-menu ul.navbar-nav {
|
||||
display: table;
|
||||
/* table-layout: fixed; */
|
||||
width: 100%;
|
||||
border-bottom: 2px #cf3b3b solid;
|
||||
}
|
||||
|
@ -138,6 +168,7 @@ header.container {
|
|||
color: #aaa;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#block-gridspinoza-main-menu ul.navbar-nav li a.is-active, #block-gridspinoza-main-menu ul.navbar-nav li.active a {
|
||||
|
@ -225,11 +256,38 @@ h1.page-header {
|
|||
margin-top: 30px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.content p,.path-frontpage .field-content p {
|
||||
.path-frontpage .project-researcher {
|
||||
padding: 2rem 0 1rem;
|
||||
}
|
||||
.content,
|
||||
.field-content,
|
||||
.path-node .field-content,
|
||||
.path-researchers .field-content,
|
||||
.path-research-fields .field-content p,
|
||||
.path-frontpage .field-content p{
|
||||
font-size: 16px;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.path-programs .views-field-title {
|
||||
min-height: 8rem;
|
||||
}
|
||||
.path-programs .views-field-body {
|
||||
min-height: 30rem;
|
||||
}
|
||||
.path-programs .views-field-body p{
|
||||
padding: 1rem 0;
|
||||
}
|
||||
.path-programs .views-field-body img{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.path-programs .views-field-view-node {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.page-node-25 h1.page-header, .page-node-236 h1.page-header, .path-partners h1.page-header {
|
||||
display: none;
|
||||
}
|
||||
|
@ -261,10 +319,9 @@ div.project-researcher a {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/*span.project-btn*/
|
||||
.views-field-view-node {
|
||||
text-align: right;
|
||||
margin-bottom: 40px;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
.views-col {
|
||||
|
@ -279,6 +336,10 @@ div.project-researcher a {
|
|||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.views-row.clearfix {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
#views-exposed-form-search-content-page-1 {
|
||||
float: right;
|
||||
}
|
||||
|
@ -414,6 +475,28 @@ footer img {
|
|||
padding-right: 10px;
|
||||
}
|
||||
|
||||
/******************
|
||||
EU COOKIE BANNER
|
||||
*/
|
||||
|
||||
div#sliding-popup, div#sliding-popup .eu-cookie-withdraw-banner, .eu-cookie-withdraw-tab {
|
||||
background-color: #bdbdbd;
|
||||
}
|
||||
.disagree-button.eu-cookie-compliance-more-button, .eu-cookie-compliance-agree-button, .eu-cookie-compliance-default-button, .eu-cookie-compliance-hide-button, .eu-cookie-compliance-more-button-thank-you, .eu-cookie-withdraw-button {
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
border: none;
|
||||
color: unset;
|
||||
font-family: unset;
|
||||
font-weight: unset;
|
||||
text-shadow: none;
|
||||
color: #555;
|
||||
background-color: #eee;
|
||||
border-color: #ececec;
|
||||
padding: 1rem 3rem;
|
||||
border-radius: 0.4rem;
|
||||
}
|
||||
|
||||
/******************
|
||||
MEDIA QUERIES
|
||||
*/
|
||||
|
@ -441,7 +524,21 @@ footer img {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td {
|
||||
.table-responsive > .table > thead > tr > th,
|
||||
.table-responsive > .table > tbody > tr > th,
|
||||
.table-responsive > .table > tfoot > tr > th,
|
||||
.table-responsive > .table > thead > tr > td,
|
||||
.table-responsive > .table > tbody > tr > td,
|
||||
.table-responsive > .table > tfoot > tr > td {
|
||||
white-space: normal;
|
||||
}
|
||||
.page-node-type-project .field--name-body {
|
||||
-webkit-column-count: 1;
|
||||
-moz-column-count: 1;
|
||||
column-count: 1;
|
||||
-moz-column-gap: unset;
|
||||
-webkit-column-gap: unset;
|
||||
column-gap: unset;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue