Browse Source

snc local live

master
rdrew 2 years ago
parent
commit
53400e7976
  1. 2
      biosafety.libraries.yml
  2. 2
      css/style.css
  3. 89
      hacks.css
  4. 2
      scss/style.scss
  5. 2
      templates/block--system-branding-block.html.twig
  6. 36
      templates/views-exposed-form--clone_of_hazards.html.twig
  7. 36
      templates/views-exposed-form.html.twig

2
biosafety.libraries.yml

@ -5,7 +5,7 @@ global-styling:
js/barrio.js: {} js/barrio.js: {}
js/custom.js: {} js/custom.js: {}
css: css:
boostrap.css: {} #boostrap.css: {}
component: component:
css/style.css: {} css/style.css: {}
hacks.css: {} hacks.css: {}

2
css/style.css

@ -15125,7 +15125,7 @@ a {
} }
.site-footer { .site-footer {
background: #0079C0 !important; background: #0079C0 ;
} }
.menu--main li a { .menu--main li a {

89
hacks.css

@ -1,9 +1,6 @@
/*a {*/ /*a {*/
/*color: #8b1f03 !important;*/ /*color: #8b1f03 !important;*/
/*}*/ /*}*/
nav.tabs ul .nav-item.active a {
background: #8b1f03 !important;
}
.menu--main li a { .menu--main li a {
color: #fff; color: #fff;
font-family: 'Roboto Condensed', sans-serif; font-family: 'Roboto Condensed', sans-serif;
@ -32,3 +29,87 @@ nav.tabs ul .nav-item.active a {
} }
#navbar-top.navbar-dark .nav-link { #navbar-top.navbar-dark .nav-link {
color: #fff;} color: #fff;}
.node--type-biosafety-input-form .node__content .field {
display: flex;
margin-bottom: 5px;
padding-bottom: 5px;
border-bottom: 1px solid #ccc;
}
.node--type-biosafety-input-form .node__content .field__label {
font-weight: bold;
margin-right: 1em;
color: black;
text-transform: uppercase;
width: 300px;
}
#links-section {
display: flex;
justify-content: space-between;
margin-top: 1em;
}
.site-footer a {
--bs-link-color: #fff;
--bs-link-hover-color: #fff;
text-decoration: none;
}
.site-footer h2 {
color: #fff;
}
.upei-footer ul {
list-style: none;
margin-top: 1em;
}
.upei-footer li {
list-style: none;
margin: 0;
}
a {
--bs-link-color: #8c2004;
--bs-link-hover-color: #8c2004;
}
.region-footer-first {
border-bottom: 4px solid #8c2004;
margin-bottom: 1em;
padding-bottom: 1em;
}
nav.tabs ul .nav-item.active a {
background: #8c2004;
}
header .navbar.bg-primary {
/*background-image: none;*/
/*filter: none;*/
/*border: 1px solid #36587c;*/
}
.site-footer {
background: var(--bs-gray-800);
}
.footerlogo {
float: right;
}
.addressleft {
float: left;
}
.view nav {
display: flex;
justify-content: space-around;
}
.pagination {
--bs-link-color: #8c2004;
--bs-pagination-active-bg: #8b1f03;
}
.active>.page-link, .page-link.active {
--bs-pagination-active-color: #fff;
--bs-pagination-active-bg: #8b1f03;
/*border-color: var(--bs-pagination-active-border-color);*/
}
.accordion-button:not(.collapsed) {
--bs-accordion-active-color: #8b1f03;
background-color: var(--bs-accordion-active-bg);
box-shadow: inset 0 calc(var(--bs-accordion-border-width) * -1) 0 var(--bs-accordion-border-color);
}

2
scss/style.scss

@ -26,7 +26,7 @@ a {
} }
.site-footer { .site-footer {
background: $accent-shade !important; background: $accent-shade ;
} }
.menu--main li a { .menu--main li a {

2
templates/block--system-branding-block.html.twig

@ -14,7 +14,7 @@
#} #}
{% set attributes = attributes.addClass('site-branding') %} {% set attributes = attributes.addClass('site-branding') %}
{% if site_logo or site_name %} {% if site_logo or site_name %}
<a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="navbar-brand"> <a href="https://upei.ca" title="{{ 'Home'|t }}" rel="home" class="navbar-brand">
{% if site_logo %} {% if site_logo %}
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" class="img-fluid d-inline-block align-top" /> <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" class="img-fluid d-inline-block align-top" />
{% endif %} {% endif %}

36
templates/views-exposed-form--clone_of_hazards.html.twig

@ -0,0 +1,36 @@
{#
/**
* @file
* Theme override for a views exposed form.
*
* Available variables:
* - form: A render element representing the form.
*
* @see template_preprocess_views_exposed_form()
*/
#}
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Filter Results...
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse " aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
{% if q is not empty %}
{#
This ensures that, if clean URLs are off, the 'q' is added first,
as a hidden form element, so that it shows up first in the POST URL.
#}
{{ q }}
{% endif %}
<div class="row">
{{ form }}
</div>
</div>
</div>
</div>
</div>

36
templates/views-exposed-form.html.twig

@ -0,0 +1,36 @@
{#
/**
* @file
* Theme override for a views exposed form.
*
* Available variables:
* - form: A render element representing the form.
*
* @see template_preprocess_views_exposed_form()
*/
#}
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Filter Results...
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse " aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
{% if q is not empty %}
{#
This ensures that, if clean URLs are off, the 'q' is added first,
as a hidden form element, so that it shows up first in the POST URL.
#}
{{ q }}
{% endif %}
<div class="row">
{{ form }}
</div>
</div>
</div>
</div>
</div>
Loading…
Cancel
Save