pull from github
This commit is contained in:
commit
c55cd842ab
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
_site
|
||||
.jekyll-cache
|
||||
.DS_Store
|
||||
Gemfile.lock
|
BIN
.sass-cache/08bbb029940157e9afeb5f2145cc53f7311b28d4/site.scssc
Normal file
BIN
.sass-cache/08bbb029940157e9afeb5f2145cc53f7311b28d4/site.scssc
Normal file
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/5b643fea89f07475f0adad42eb0b843004fe2521/_grid.scssc
Normal file
BIN
.sass-cache/5b643fea89f07475f0adad42eb0b843004fe2521/_grid.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/5b643fea89f07475f0adad42eb0b843004fe2521/_nav.scssc
Normal file
BIN
.sass-cache/5b643fea89f07475f0adad42eb0b843004fe2521/_nav.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/5b643fea89f07475f0adad42eb0b843004fe2521/_type.scssc
Normal file
BIN
.sass-cache/5b643fea89f07475f0adad42eb0b843004fe2521/_type.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/7595469d2539c1c83954025b916ed733581bb164/_grid.scssc
Normal file
BIN
.sass-cache/7595469d2539c1c83954025b916ed733581bb164/_grid.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/7595469d2539c1c83954025b916ed733581bb164/_size.scssc
Normal file
BIN
.sass-cache/7595469d2539c1c83954025b916ed733581bb164/_size.scssc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/845d849cfc1abf9fadb5b7737072e44e5de5b9f2/_rfs.scssc
Normal file
BIN
.sass-cache/845d849cfc1abf9fadb5b7737072e44e5de5b9f2/_rfs.scssc
Normal file
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/8e047bda6461b2293e4dd9b705da95d768c8955b/_flex.scssc
Normal file
BIN
.sass-cache/8e047bda6461b2293e4dd9b705da95d768c8955b/_flex.scssc
Normal file
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/8e047bda6461b2293e4dd9b705da95d768c8955b/_text.scssc
Normal file
BIN
.sass-cache/8e047bda6461b2293e4dd9b705da95d768c8955b/_text.scssc
Normal file
Binary file not shown.
24
404.html
Normal file
24
404.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
.container {
|
||||
margin: 10px auto;
|
||||
max-width: 600px;
|
||||
text-align: center;
|
||||
}
|
||||
h1 {
|
||||
margin: 30px 0;
|
||||
font-size: 4em;
|
||||
line-height: 1;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container">
|
||||
<h1>404</h1>
|
||||
|
||||
<p><strong>Page not found :(</strong></p>
|
||||
<p>The requested page could not be found.</p>
|
||||
</div>
|
26
Gemfile
Normal file
26
Gemfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
source "https://rubygems.org"
|
||||
|
||||
# Hello! This is where you manage which Jekyll version is used to run.
|
||||
# When you want to use a different version, change it below, save the
|
||||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
||||
#
|
||||
# bundle exec jekyll serve
|
||||
#
|
||||
# This will help ensure the proper Jekyll version is running.
|
||||
# Happy Jekylling!
|
||||
gem "jekyll"
|
||||
|
||||
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
||||
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
||||
# gem "github-pages", group: :jekyll_plugins
|
||||
|
||||
# If you have any plugins, put them here!
|
||||
group :jekyll_plugins do
|
||||
gem "jekyll-feed"
|
||||
gem "jekyll-sitemap"
|
||||
gem "octopress-minify-html"
|
||||
gem "jekyll-responsive-image"
|
||||
end
|
||||
|
||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
79
_config.yml
Normal file
79
_config.yml
Normal file
|
@ -0,0 +1,79 @@
|
|||
company_name: Freehold Cottage
|
||||
title: Freehold Cottage Residential Home
|
||||
description: Residential Care Home in Shawforth, Rochdale
|
||||
domain: "https://www.freeholdcottage.com"
|
||||
|
||||
# you can leave any of these empty - that bit just won't show
|
||||
|
||||
email_address: freeholdcottage@gmail.com
|
||||
phone_number: 01706 853384
|
||||
|
||||
# if you blank this it'll remove the whatsapp links
|
||||
# whatsapp_country_code: 44
|
||||
|
||||
address:
|
||||
street: 452 Market St
|
||||
locality: Shawforth, Rochdale
|
||||
region: Lancashire
|
||||
post_code: OL12 8JB
|
||||
country: United Kingdom
|
||||
|
||||
geo:
|
||||
latitude: 53.6845915958082
|
||||
longitude: -2.166006644012877
|
||||
|
||||
# https://schema.org/
|
||||
json_ld:
|
||||
type: LocalBusiness
|
||||
description: "Freehold Cottage Residential Home"
|
||||
country_code: 44
|
||||
google_maps: https://goo.gl/maps/8xbF4cJMCJjX9Vee6
|
||||
google_maps_embed: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2362.8911053200522!2d-2.1682167843129148!3d53.68456618005128!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487bbe7a7e728fdb%3A0xb8b600deb70cdf9e!2s452%20Market%20St%2C%20Shawforth%2C%20Rochdale%20OL12%208JB!5e0!3m2!1sen!2suk!4v1630289871024!5m2!1sen!2suk"
|
||||
|
||||
# you probably don't need to touch much below here that often
|
||||
|
||||
responsive_image:
|
||||
template: _includes/responsive-image.html
|
||||
default_quality: 80
|
||||
strip: true
|
||||
output_path_format: resized/%{width}/%{dirname}/%{basename}
|
||||
extra_images:
|
||||
- assets/news/*/*.jpg
|
||||
- assets/banner.jpg
|
||||
- assets/flower-background.png
|
||||
sizes:
|
||||
- width: 200
|
||||
- width: 400
|
||||
- width: 800
|
||||
- width: 1200
|
||||
|
||||
env: production
|
||||
|
||||
markdown: kramdown
|
||||
|
||||
plugins:
|
||||
- jekyll-responsive-image
|
||||
|
||||
collections:
|
||||
pages:
|
||||
output: true
|
||||
services:
|
||||
output: true
|
||||
news:
|
||||
output: true
|
||||
|
||||
defaults:
|
||||
- scope:
|
||||
path: "_pages"
|
||||
values:
|
||||
layout: page
|
||||
permalink: :slug
|
||||
- scope:
|
||||
type: services
|
||||
values:
|
||||
permalink: services/:title
|
||||
layout: service
|
||||
- scope:
|
||||
path: "assets/services"
|
||||
values:
|
||||
service_image: true
|
29
_includes/contact-links.html
Normal file
29
_includes/contact-links.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<ul class="contact-links">
|
||||
{% if site.phone_number %}
|
||||
<li class="contact-links__list">
|
||||
<i class="contact-links__icon icon-phone"></i>
|
||||
{%- capture to_markdown -%}
|
||||
**Call:** {% include link-phone-number.md %}
|
||||
{%- endcapture -%}
|
||||
{{- to_markdown | markdownify -}}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if site.whatsapp_country_code %}
|
||||
<li class="contact-links__list">
|
||||
<i class="contact-links__icon icon-whatsapp"></i>
|
||||
<strong>WhatsApp:</strong>
|
||||
<a href="https://wa.me/{{site.whatsapp_country_code}}{{site.phone_number|remove:" "|remove_first:"0"}}">
|
||||
Click here
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if site.email_address %}
|
||||
<li class="contact-links__list">
|
||||
<i class="contact-links__icon icon-at"></i>
|
||||
<strong>Email:</strong>
|
||||
<a href="mailto:{{site.email_address}}">
|
||||
{{site.email_address}}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
3
_includes/cqc-widget.html
Normal file
3
_includes/cqc-widget.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div id="cqc-widget">
|
||||
<script type="text/javascript" src="//www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-9162515718&data-host=www.cqc.org.uk"></script>
|
||||
</div>
|
20
_includes/disqus_comments.html
Normal file
20
_includes/disqus_comments.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
{% if page.comments != false and jekyll.environment == "production" %}
|
||||
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
var disqus_config = function () {
|
||||
this.page.url = '{{ page.url | absolute_url }}';
|
||||
this.page.identifier = '{{ page.url | absolute_url }}';
|
||||
};
|
||||
|
||||
(function() {
|
||||
var d = document, s = d.createElement('script');
|
||||
|
||||
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
||||
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
||||
{% endif %}
|
16
_includes/footer-scripts.html
Normal file
16
_includes/footer-scripts.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
{% if facebook_url %}
|
||||
<script async href="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId=179012276202158&autoLogAppEvents=1" id="facebook-jssdk"></script>
|
||||
{% endif %}
|
||||
|
||||
<script>
|
||||
if (window.netlifyIdentity) {
|
||||
window.netlifyIdentity.on("init", user => {
|
||||
if (!user) {
|
||||
window.netlifyIdentity.on("login", () => {
|
||||
document.location.href = "/admin/";
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
10
_includes/footer.html
Normal file
10
_includes/footer.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% capture to_markdown %}
|
||||
**{{site.company_name}}**
|
||||
{% if site.address.street %}{{site.address.street }} {% endif %}
|
||||
{% if site.address.locality %}{{site.address.locality }} {% endif %}
|
||||
{% if site.address.post_code %}{{site.address.post_code }} {% endif %}
|
||||
{% include link-phone-number.md %}
|
||||
{% include link-facebook-page.md %}
|
||||
{% endcapture %}
|
||||
|
||||
<footer>{{ to_markdown | markdownify }}</footer>
|
18
_includes/head.html
Normal file
18
_includes/head.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>{%- include meta-title.html -%}</title>
|
||||
|
||||
<meta name="description" content="
|
||||
{{- page.meta_description | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape -}}
|
||||
">
|
||||
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
||||
<link rel="stylesheet" href="{{ "/assets/icons/css/fontello.css" | relative_url }}">
|
||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
{% include json-ld.html %}
|
||||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||
</head>
|
30
_includes/header.html
Normal file
30
_includes/header.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<nav class="navbar fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/">
|
||||
<i class="navbar__icon icon-tree"></i>
|
||||
{{site.company_name}}
|
||||
</a>
|
||||
<div class="navbar__links align--right">
|
||||
{% assign pages_list = (site.pages | sort: 'order') %}
|
||||
{% for my_page in pages_list %}
|
||||
{% assign my_page = pages_list | where: "path", path | first %}
|
||||
{% if my_page.order == 0 %}
|
||||
{% assign icon = "home" %}
|
||||
{% else %}
|
||||
{% assign icon = my_page.icon %}
|
||||
{% endif %}
|
||||
{% if my_page.order %}
|
||||
<a class="
|
||||
navbar__link
|
||||
{% if my_page.order == 0 %}
|
||||
hidden-sm
|
||||
{% endif %}
|
||||
" href="{{ my_page.url | relative_url }}">
|
||||
{{ my_page.name | escape }}
|
||||
<i class="navbar__icon navbar__icon--smaller icon-{{ icon }}"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
46
_includes/json-ld.html
Normal file
46
_includes/json-ld.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
{% capture json_ld %}
|
||||
{
|
||||
"@context": "http://www.schema.org",
|
||||
"@type": "{{ site.json_ld.type }}",
|
||||
"name": "{{ site.site_name }}",
|
||||
"url": "{{ site.domain }}",
|
||||
"sameAs": [
|
||||
{%- if site.google_maps -%}
|
||||
"{{ site.google_maps }}",
|
||||
{%- endif -%}
|
||||
{%- if site.facebook_page -%}
|
||||
"https://fb.me/{{ site.facebook_page }}",
|
||||
{%- endif -%}
|
||||
],
|
||||
"description": "{{ site.json_ld.description }}",
|
||||
{%- if site.address.street -%}
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "{{ site.address.street }}",
|
||||
"addressLocality": "{{ site.address.locality }}",
|
||||
"addressRegion": "{{ site.address.region }}",
|
||||
"postalCode": "{{ site.address.post_code }}",
|
||||
"addressCountry": "{{ site.address.country }}"
|
||||
},
|
||||
{%- endif -%}
|
||||
{%- if site.geo.latitude -%}
|
||||
"geo": {
|
||||
"@type": "GeoCoordinates",
|
||||
"latitude": "{{ site.geo.latitude }}",
|
||||
"longitude": "{{ site.geo.longitude }}"
|
||||
},
|
||||
{%- endif -%}
|
||||
{%- if google_maps -%}
|
||||
"hasMap": "{{ site.google_maps }}",
|
||||
{%- endif -%}
|
||||
"contactPoint": {
|
||||
"@type": "ContactPoint",
|
||||
"contactType": "reservations",
|
||||
"telephone": "+{{site.json_ld.country_code}} (0) {{site.phone_number|remove_first:"0"}}"
|
||||
}
|
||||
}
|
||||
{% endcapture %}
|
||||
<script type="application/ld+json">
|
||||
{{json_ld|replace:" "," "|replace:" "," "|replace:" "," "|replace:" "," "|remove:"
|
||||
"}}
|
||||
</script>
|
1
_includes/link-facebook-page.md
Normal file
1
_includes/link-facebook-page.md
Normal file
|
@ -0,0 +1 @@
|
|||
[@{{site.facebook_page}}](https://fb.me/{{site.facebook_page}})
|
1
_includes/link-phone-number.md
Normal file
1
_includes/link-phone-number.md
Normal file
|
@ -0,0 +1 @@
|
|||
[{{site.phone_number}}](tel:{{site.phone_number|remove:" "}})
|
8
_includes/meta-title.html
Normal file
8
_includes/meta-title.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{%- if page.meta_title %}
|
||||
{% assign meta_title = page.meta_title %}
|
||||
{% elsif page.title %}
|
||||
{% assign meta_title = page.title %}
|
||||
{% else %}
|
||||
{% assign meta_title = "Freehold Cottage Residential Home" %}
|
||||
{% endif -%}
|
||||
{{- meta_title | switcheroo | escape -}}
|
25
_includes/news-links.html
Normal file
25
_includes/news-links.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<ul class="service-links">
|
||||
{% assign counter = 0 %}
|
||||
{% for news_item in site.news|sort: "date" | reverse %}
|
||||
{% if counter >= include.limit %}
|
||||
{% break %}
|
||||
{% endif %}
|
||||
{% assign counter = counter | plus: 1 %}
|
||||
<li class="service-links__link">
|
||||
<a class="
|
||||
service-links__link
|
||||
{% if news_item.url == page.url %}
|
||||
service-links__link--active
|
||||
{% endif %}
|
||||
" href="{{news_item.url}}">
|
||||
{{news_item.date|date: "%b %d %Y"}}:
|
||||
{{news_item.title}}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li>
|
||||
<a href="{% link _pages/news-archive.md %}">
|
||||
Archive
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
7
_includes/responsive-image.html
Normal file
7
_includes/responsive-image.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% capture srcset %}
|
||||
{% for i in resized %}
|
||||
/{{ i.path }} {{ i.width }}w,
|
||||
{% endfor %}
|
||||
{% endcapture %}
|
||||
|
||||
<img src="/{{ path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }} /{{ path }} {{ original.width }}w">
|
20
_includes/service-links.html
Normal file
20
_includes/service-links.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
<hr>
|
||||
<h5>Services</h5>
|
||||
<ul class="service-links">
|
||||
{% for service in site.services %}
|
||||
<li class="service-links__link">
|
||||
{% if service.icon %}
|
||||
<i class="service-links__icon icon-{{service.icon}}"></i>
|
||||
{% endif %}
|
||||
<a class="
|
||||
service-links__link
|
||||
{% if service.url == page.url %}
|
||||
service-links__link--active
|
||||
{% endif %}
|
||||
" href="{{service.url}}">
|
||||
{{service.title}}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
7
_includes/social-media-feeds.html
Normal file
7
_includes/social-media-feeds.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
{% if site.facebook_url %}
|
||||
<div class="embed-reviews margin--bottom">
|
||||
<div id="fb-root"></div>
|
||||
<div class="fb-page" data-href="https://www.facebook.com/{{site.facebook_url}}/" data-tabs="timeline" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
|
||||
</div>
|
||||
{% endif %}
|
20
_includes/title.html
Normal file
20
_includes/title.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
<div class="header">
|
||||
<h1 class="header__text">
|
||||
{% if page.icon %}
|
||||
<i class="header__icon icon-{{page.icon}}"></i>
|
||||
{% endif %}
|
||||
{{ page.title | switcheroo | escape }}
|
||||
{% if page.subtitle %}
|
||||
<small class="header__subtitle">
|
||||
{{ page.subtitle }}
|
||||
</small>
|
||||
{% endif %}
|
||||
{% if page.collection == "news" %}
|
||||
<small class="header__subtitle" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
||||
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
||||
{{ page.date | date: date_format }}
|
||||
</small>
|
||||
{% endif %}
|
||||
</h1>
|
||||
</div>
|
17
_includes/video.html
Normal file
17
_includes/video.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
<div class="card text-center">
|
||||
{% if page.caption %}
|
||||
<div class="card-header">
|
||||
{{ page.caption}}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="card-body">
|
||||
{% include youtube-embed.html %}
|
||||
</div>
|
||||
{% if page.date %}
|
||||
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
||||
<div class="card-footer text-muted">
|
||||
{{ page.date | date: date_format }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
3
_includes/youtube-embed.html
Normal file
3
_includes/youtube-embed.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="embed-responsive embed-responsive-16by9">
|
||||
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/{{page.youtube-id}}?rel=0" allowfullscreen></iframe>
|
||||
</div>
|
14
_layouts/default.html
Normal file
14
_layouts/default.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
||||
{% include head.html %}
|
||||
<body>
|
||||
{% include header.html %}
|
||||
<main>
|
||||
<div class="container">
|
||||
{{ content }}
|
||||
</div>
|
||||
</main>
|
||||
{% include footer.html %}
|
||||
{% include footer-scripts.html %}
|
||||
</body>
|
||||
</html>
|
26
_layouts/home.html
Normal file
26
_layouts/home.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include title.html %}
|
||||
|
||||
<div class="homepage-banner">
|
||||
{% responsive_image path: "assets/banner.jpg" %}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8 page page--home">
|
||||
{{ content }}
|
||||
<hr>
|
||||
{% if site.google_maps_embed %}
|
||||
<div class="embed-responsive embed-responsive-16by9 margin--top">
|
||||
<iframe class="embed-responsive-item" src="{{site.google_maps_embed}}"></iframe>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{% include contact-links.html %}
|
||||
{% include cqc-widget.html %}
|
||||
</div>
|
||||
</div>
|
29
_layouts/news-archive.html
Normal file
29
_layouts/news-archive.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include title.html %}
|
||||
<div class="row">
|
||||
<div class="col-md-8 order-sm-1 margin--bottom">
|
||||
<div class="page {{page.cssClass}}">
|
||||
{{ content | switcheroo }}
|
||||
{% assign news_items = site.news | sort: "date" | reverse %}
|
||||
<hr>
|
||||
{% for news_item in news_items %}
|
||||
<p>
|
||||
<strong>
|
||||
<a href="{{news_item.url}}">
|
||||
{{news_item.date|date: "%b %d %Y"}}:
|
||||
{{news_item.title}}
|
||||
</a>
|
||||
</strong>
|
||||
</p>
|
||||
{{news_item.meta_description}}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 order-sm-2 margin--bottom">
|
||||
{% include contact-links.html %}
|
||||
{% include cqc-widget.html %}
|
||||
</div>
|
||||
</div>
|
39
_layouts/news.html
Normal file
39
_layouts/news.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{%- capture img_dir -%}
|
||||
/assets{{page.url}}/
|
||||
{%- endcapture -%}
|
||||
{% assign place_images = site.static_files | where: "news_image", true %}
|
||||
|
||||
<div itemscope itemtype="http://schema.org/BlogPosting">
|
||||
{% include title.html %}
|
||||
<div class="row">
|
||||
<div class="col-md-8 order-sm-1 margin--bottom">
|
||||
<div class="page {{page.cssClass}}">
|
||||
<div class="content" itemprop="articleBody">
|
||||
{{ content }}
|
||||
</div>
|
||||
<div class="news-images">
|
||||
{% for img in place_images %}
|
||||
{% assign this_img_dir = img.path | slice: 0, img_dir.size %}
|
||||
{% if this_img_dir == img_dir %}
|
||||
{% assign thumb_path = img.path | replace_first: "assets/news/", "resized/200/news/" %}
|
||||
<a href="{{img.path}}" style="
|
||||
background-image: url('{{thumb_path}}')"
|
||||
></a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 order-sm-2 margin--bottom">
|
||||
{% include contact-links.html %}
|
||||
{% include cqc-widget.html %}
|
||||
<hr>
|
||||
<h5>News Posts</h5>
|
||||
{% include news-links.html limit=10 %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
16
_layouts/page.html
Normal file
16
_layouts/page.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include title.html %}
|
||||
<div class="row">
|
||||
<div class="col-md-8 order-sm-1 margin--bottom">
|
||||
<div class="page {{page.cssClass}}">
|
||||
{{ content | switcheroo }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 order-sm-2 margin--bottom">
|
||||
{% include contact-links.html %}
|
||||
{% include cqc-widget.html %}
|
||||
</div>
|
||||
</div>
|
31
_layouts/service.html
Normal file
31
_layouts/service.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include title.html %}
|
||||
<div class="row">
|
||||
<div class="col-md-8 order-sm-1 margin--bottom">
|
||||
<div class="page {{page.cssClass}}">
|
||||
{%- capture search_banner_path -%}
|
||||
assets{{page.url}}.jpg
|
||||
{%- endcapture -%}
|
||||
{% assign images = site.static_files | where: "service_image", true%}
|
||||
{% for banner_image in images %}
|
||||
{% assign banner_image_path = banner_image.path | remove_first: "/" %}
|
||||
{% if banner_image_path == search_banner_path %}
|
||||
<div class="page__banner">
|
||||
{% responsive_image_block %}
|
||||
path: {{ banner_image_path }}
|
||||
{% endresponsive_image_block %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{{ content | switcheroo }}
|
||||
<h2>Services Offered</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 order-sm-2 margin--bottom">
|
||||
{% include contact-links.html %}
|
||||
{% include cqc-widget.html %}
|
||||
</div>
|
||||
</div>
|
76
_pages/about.md
Normal file
76
_pages/about.md
Normal file
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
layout: page
|
||||
name: About
|
||||
permalink: /about
|
||||
order: 1
|
||||
meta_title: Freehold Cottage Residential Home, Shawforth, Rochdale
|
||||
title: About Us
|
||||
subtitle: A calm, relaxed home.
|
||||
icon: tree
|
||||
---
|
||||
|
||||
**On this page:**
|
||||
- [Our Support](#our-support)
|
||||
- [The Building](#the-building)
|
||||
- [Daily Life](#daily-life)
|
||||
- [food](#food) / [activities](#activities) / [religion](#religion) / [finances](#finances) / [visiting](#visiting)
|
||||
|
||||
## Our Support
|
||||
|
||||
Our dedicated and professional team collectively has decades of experience in providing residential support to people with mental health problems, including those exacerbated by drug and alcohol problems.
|
||||
|
||||
We’ve all got a close bond with the local community, and close relationships with medical professionals including dentists, doctors and opticians, so we can ensure that everyone at Freehold Cottage receives the specialised care they need.
|
||||
|
||||
## The Building
|
||||
|
||||
Freehold Cottage is located on Market Street, which is the main road that leads from Rochdale through Whitworth and Shawforth and up to Bacup. Alongside these convenient transport links, it’s also next to open countryside, and is set on a hillside surrounded by valleys and lush nature.
|
||||
|
||||
Like many of the houses in the Lancashire countryside, our residential home is built with York stone, with a stone-walled garden set at the back. There are two upstairs toilets – one for men and one for women – and one downstairs toilet, as well as a lounge, a kitchen, a dining room, a utility room and the staff room.
|
||||
|
||||
## Daily Life
|
||||
|
||||
### Food
|
||||
|
||||
You’ll love mealtimes at Freehold Cottage! We listen to what each individual likes and what they don’t like, and then prepare delicious home-cooked food based on their preferences.
|
||||
|
||||
Residents don’t just enjoy the food – if they’re interested, they’re more than welcome to take a role in its preparation, and can even make their own food from scratch should they wish. We’ll be on hand to provide help if needed and to give them the support they need to eat a healthy, balanced diet with dishes they love. Everyone at the home helps us to decide what goes on the shopping list.
|
||||
|
||||
Our staff are trained in food safety and hygiene so they comply with all relevant food safety regulations, and guests are happily accommodated with drinks and snacks.
|
||||
|
||||
### Activities
|
||||
|
||||
As well as looking at television and listening to music, there are opportunities for the residents to enjoy many other recreational activities. Going for walks, swimming, day outings, eating out, enjoying handicrafts and art, gardening, trips, inventing games to while away the wet Lancashire days, are part and parcel of the home’s provisions.
|
||||
|
||||
Community facilities, i.e. Occupational Therapy, Industrial Therapy, Community Day Centres, Employment Training Schemes, are employed for the benefit of residents wishing to take advantage of such services.
|
||||
|
||||
### Religion
|
||||
|
||||
Our team knows how important personalised care is, and this includes supporting residents with their religious and spiritual needs. If anyone would like a visit from local religious leaders or to go to a nearby place of worship, we’re happy to make suitable arrangements, so you can be confident that our dedicated staff will do what they can to support mental, physical and even spiritual development.
|
||||
|
||||
### Finances
|
||||
|
||||
We want our residents to be as responsible and independent as they can be, and give them all the assistance they need to manage their own money. This involves helping them visit the banks, building societies and post offices. In some instances, residents cannot realistically manage their finances, and in these cases administration of their assets is carried out to exceed the best practices as directed by the Lancashire County Council Guide to the Registered Homes Act 1984.
|
||||
|
||||
### Visiting
|
||||
|
||||
We love visitors in our Whitworth residential home – people from Lancashire and beyond come to spend time with their friends and family at Freehold Cottage.
|
||||
|
||||
Please come between 10am and 10pm. If you wish to come outside of these times, this is possible in special circumstances or if you have spoke to the management.
|
||||
|
||||
### Terms and Conditions
|
||||
|
||||
After a two month trial period, a written record will confirm that the manager or resident can terminate the period of residence following a two month notice period.
|
||||
|
||||
We will provide full board, continuous snack provisions, regular trips out, laundry provisions, materials for pastimes, and anything else that can be reasonably considered as a necessary provision for an acceptable level of comfort.
|
||||
|
||||
### Grievances
|
||||
|
||||
We hope all grievances are minor and will be resolved quickly and with little distress. Residents will be informed of the whereabouts and availability of the complaints registry and the contact information of the authority the can raise complaints with. The complaints register can be inspected by the Commission for Social Care Inspection.
|
||||
|
||||
### Fees
|
||||
|
||||
Fees are calculated based on an individual’s support and care needs, and payments can be made from any source, including the resident themselves and their family. We want everyone who needs us to be able to use us, and will not exclude anyone because they can’t pay the full fee, but we’ll do what we can to help them gain funding.
|
||||
|
||||
### Personal allowance payments
|
||||
|
||||
We believe that the DSS’s provision for personal allowances is not sufficient, and when residents are completely reliant on Universal Basic Income and are unable to make ends meet, we will make provisions to top up their allowance.
|
22
_pages/contact.md
Normal file
22
_pages/contact.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
order: 3
|
||||
icon: phone
|
||||
name: Contact
|
||||
title: Contact Us
|
||||
meta_title: Freehold Cottage contact details
|
||||
subtitle: It's easy to get in touch
|
||||
---
|
||||
|
||||
If you're interested in your or someone else's eligibility for Freehold Cottage, please check out our [eligibility and referrrals](/page/eligibility-and-referrals.md) page.
|
||||
|
||||
For all other enquiries, please:
|
||||
|
||||
- **Phone us:** 01706 85 33 84
|
||||
- **Email:** [freeholdcottage@gmail.com](freeholdcottage@gmail.com)
|
||||
- **Address:** 452 Market St, Shawforth, Rochdale, Lancs, OL12 8JB
|
||||
- **[Find us on Google Maps](https://goo.gl/maps/xhycSrKSjGWUVJYx7)**
|
||||
- **[Our listing on the Care Quality Commission (CQC) website](https://www.cqc.org.uk/location/1-9162515718)**
|
||||
|
||||
### Other Links
|
||||
|
||||
- **[Newbarn Ltd Supported Accommodation](http://www.newbarnltd.co.uk)**
|
24
_pages/eligibility-and-referrals.md
Normal file
24
_pages/eligibility-and-referrals.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
order: 2
|
||||
icon: users
|
||||
name: Eligiblity / Referrals
|
||||
title: Eligibility / Referrals
|
||||
meta_title: Eligiblity for Freehold Cottage Residential Home, Bacup
|
||||
subtitle: Eligiblity for Freehold Cottage
|
||||
---
|
||||
|
||||
You’re eligible to live at Freehold Cottage if you are:
|
||||
|
||||
- Aged over 19 years old
|
||||
- Living with mental health issues, including those exacerbated by drugs
|
||||
- And you have a Community Psychiatric Nurse, social worker, probation officer, care coordinator or are receiving similar assistance.
|
||||
|
||||
We’d love to discuss eligibility with you. Find out about how Freehold Cottage offers a top-quality service you can rely on – visit our contact us page to find out more.
|
||||
|
||||
## Referrals
|
||||
|
||||
Click to download referral forms (Microsoft Word .doc files) and forward completed forms to us at [freeholdcottage@gmail.com](mailto:freeholdcottage@gmail.com)
|
||||
|
||||
- **[Self Referral Form](/assets/docs/freehold-cottage-self-referral-form.doc):** Use this form if you want to refer yourself for help and support at Freehold Cottage Residential Home. We’d love to hear from you; please be as honest as possible. This form will help us to understand whether Freehold Cottage is the right service for you, or if there’s somewhere else you’d be better suited.
|
||||
|
||||
- **[Agency Form](/assets/docs/freehold-cottage-agency-referral-form.doc):** – Use this form if you are acting on behalf of an agency and would like to refer someone you work with to Freehold Cottage Residential Home. Please provide as much information as possible in the form, as we will use your responses to determine if our residential home is the appropriate place, and if we and the referral will be a good fit for each other.
|
44
_pages/index.md
Normal file
44
_pages/index.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
layout: home
|
||||
name: Home
|
||||
permalink: /
|
||||
order: 0
|
||||
meta_title: Freehold Cottage Residential Home, Shawforth, Rochdale
|
||||
title: Freehold Cottage Residential Home
|
||||
subtitle: 24-hour care
|
||||
icon: tree
|
||||
---
|
||||
|
||||
## A residential home for up to six adults with mental health problems
|
||||
|
||||
Our home is set in the hillsides of Shawforth, Rochdale. A dedicated team of staff provide 24-hour individualised care and support to up to six adults with mental health problems, including those exacerbated by drugs.
|
||||
|
||||
You’ll love our beautiful detached house. Residents can enjoy modern facilities in a calm, relaxing environment, with their own large, private room, and can sit in the vibrant garden, walk to nearby Bacup and Whitworth, or catch a quick bus to Rochdale Town Centre.
|
||||
|
||||
We’re dedicated to treating the people who live here with:
|
||||
|
||||
- Privacy
|
||||
- Dignity
|
||||
- Independence
|
||||
- Choices
|
||||
- Rights
|
||||
- Fulfilment
|
||||
|
||||
This allows them to participate in the home, the local community and the wider world as much as possible.
|
||||
|
||||
Read more on our [about](/about) page.
|
||||
|
||||
Freehold Cottage is a member of North East Lancs. Care Homes Association and the N.S.F.
|
||||
|
||||
The home is insured with Ecclesiastical Insurance. A Public Liability Certificate is displayed on the office wall.
|
||||
|
||||
## Our Principles of Care
|
||||
|
||||
- Each resident is valued as a full citizen, with rights and responsibilities.
|
||||
- Residents have as much control and responsibility for their own lives as possible.
|
||||
- Residents must have access to privacy, security and confidentiality.
|
||||
- First consideration is given to respecting residents’ wishes and needs.
|
||||
- Individual care and support, with regular reviews and updates, is genuinely negotiated with each resident.
|
||||
- Residents’ views are taken into account in determining the operational development of the home.
|
||||
- Community facilities are used whenever possible, and the residents’ special needs are catered for.
|
||||
- Residents are to have the opportunity to join in everyday life in the area.
|
9
_plugins/CompanyNameify.rb
Normal file
9
_plugins/CompanyNameify.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module Jekyll
|
||||
module CompanyNameify
|
||||
def switcheroo(input)
|
||||
return input && input.gsub("company_name", @context.registers[:site].config['company_name'])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Liquid::Template.register_filter(Jekyll::CompanyNameify)
|
51
_sass/bootstrap/_alert.scss
Normal file
51
_sass/bootstrap/_alert.scss
Normal file
|
@ -0,0 +1,51 @@
|
|||
//
|
||||
// Base styles
|
||||
//
|
||||
|
||||
.alert {
|
||||
position: relative;
|
||||
padding: $alert-padding-y $alert-padding-x;
|
||||
margin-bottom: $alert-margin-bottom;
|
||||
border: $alert-border-width solid transparent;
|
||||
@include border-radius($alert-border-radius);
|
||||
}
|
||||
|
||||
// Headings for larger alerts
|
||||
.alert-heading {
|
||||
// Specified to prevent conflicts of changing $headings-color
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
// Provide class for links that match alerts
|
||||
.alert-link {
|
||||
font-weight: $alert-link-font-weight;
|
||||
}
|
||||
|
||||
|
||||
// Dismissible alerts
|
||||
//
|
||||
// Expand the right padding and account for the close button's positioning.
|
||||
|
||||
.alert-dismissible {
|
||||
padding-right: $close-font-size + $alert-padding-x * 2;
|
||||
|
||||
// Adjust close link position
|
||||
.close {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: $alert-padding-y $alert-padding-x;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Alternate styles
|
||||
//
|
||||
// Generate contextual modifier classes for colorizing the alert.
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
.alert-#{$color} {
|
||||
@include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
|
||||
}
|
||||
}
|
54
_sass/bootstrap/_badge.scss
Normal file
54
_sass/bootstrap/_badge.scss
Normal file
|
@ -0,0 +1,54 @@
|
|||
// Base class
|
||||
//
|
||||
// Requires one of the contextual, color modifier classes for `color` and
|
||||
// `background-color`.
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: $badge-padding-y $badge-padding-x;
|
||||
@include font-size($badge-font-size);
|
||||
font-weight: $badge-font-weight;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
@include border-radius($badge-border-radius);
|
||||
@include transition($badge-transition);
|
||||
|
||||
@at-root a#{&} {
|
||||
@include hover-focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Empty badges collapse automatically
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Quick fix for badges in buttons
|
||||
.btn .badge {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
// Pill badges
|
||||
//
|
||||
// Make them extra rounded with a modifier to replace v3's badges.
|
||||
|
||||
.badge-pill {
|
||||
padding-right: $badge-pill-padding-x;
|
||||
padding-left: $badge-pill-padding-x;
|
||||
@include border-radius($badge-pill-border-radius);
|
||||
}
|
||||
|
||||
// Colors
|
||||
//
|
||||
// Contextual variations (linked badges get darker on :hover).
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
.badge-#{$color} {
|
||||
@include badge-variant($value);
|
||||
}
|
||||
}
|
41
_sass/bootstrap/_breadcrumb.scss
Normal file
41
_sass/bootstrap/_breadcrumb.scss
Normal file
|
@ -0,0 +1,41 @@
|
|||
.breadcrumb {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
||||
margin-bottom: $breadcrumb-margin-bottom;
|
||||
list-style: none;
|
||||
background-color: $breadcrumb-bg;
|
||||
@include border-radius($breadcrumb-border-radius);
|
||||
}
|
||||
|
||||
.breadcrumb-item {
|
||||
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
||||
+ .breadcrumb-item {
|
||||
padding-left: $breadcrumb-item-padding;
|
||||
|
||||
&::before {
|
||||
display: inline-block; // Suppress underlining of the separator in modern browsers
|
||||
padding-right: $breadcrumb-item-padding;
|
||||
color: $breadcrumb-divider-color;
|
||||
content: $breadcrumb-divider;
|
||||
}
|
||||
}
|
||||
|
||||
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
|
||||
// without `<ul>`s. The `::before` pseudo-element generates an element
|
||||
// *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
|
||||
//
|
||||
// To trick IE into suppressing the underline, we give the pseudo-element an
|
||||
// underline and then immediately remove it.
|
||||
+ .breadcrumb-item:hover::before {
|
||||
text-decoration: underline;
|
||||
}
|
||||
// stylelint-disable-next-line no-duplicate-selectors
|
||||
+ .breadcrumb-item:hover::before {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $breadcrumb-active-color;
|
||||
}
|
||||
}
|
163
_sass/bootstrap/_button-group.scss
Normal file
163
_sass/bootstrap/_button-group.scss
Normal file
|
@ -0,0 +1,163 @@
|
|||
// stylelint-disable selector-no-qualifying-type
|
||||
|
||||
// Make the div behave like a button
|
||||
.btn-group,
|
||||
.btn-group-vertical {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
vertical-align: middle; // match .btn alignment given font-size hack above
|
||||
|
||||
> .btn {
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
|
||||
// Bring the hover, focused, and "active" buttons to the front to overlay
|
||||
// the borders properly
|
||||
@include hover {
|
||||
z-index: 1;
|
||||
}
|
||||
&:focus,
|
||||
&:active,
|
||||
&.active {
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Optional: Group multiple button groups together for a toolbar
|
||||
.btn-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
|
||||
.input-group {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
// Prevent double borders when buttons are next to each other
|
||||
> .btn:not(:first-child),
|
||||
> .btn-group:not(:first-child) {
|
||||
margin-left: -$btn-border-width;
|
||||
}
|
||||
|
||||
// Reset rounded corners
|
||||
> .btn:not(:last-child):not(.dropdown-toggle),
|
||||
> .btn-group:not(:last-child) > .btn {
|
||||
@include border-right-radius(0);
|
||||
}
|
||||
|
||||
> .btn:not(:first-child),
|
||||
> .btn-group:not(:first-child) > .btn {
|
||||
@include border-left-radius(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Sizing
|
||||
//
|
||||
// Remix the default button sizing classes into new ones for easier manipulation.
|
||||
|
||||
.btn-group-sm > .btn { @extend .btn-sm; }
|
||||
.btn-group-lg > .btn { @extend .btn-lg; }
|
||||
|
||||
|
||||
//
|
||||
// Split button dropdowns
|
||||
//
|
||||
|
||||
.dropdown-toggle-split {
|
||||
padding-right: $btn-padding-x * .75;
|
||||
padding-left: $btn-padding-x * .75;
|
||||
|
||||
&::after,
|
||||
.dropup &::after,
|
||||
.dropright &::after {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.dropleft &::before {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-sm + .dropdown-toggle-split {
|
||||
padding-right: $btn-padding-x-sm * .75;
|
||||
padding-left: $btn-padding-x-sm * .75;
|
||||
}
|
||||
|
||||
.btn-lg + .dropdown-toggle-split {
|
||||
padding-right: $btn-padding-x-lg * .75;
|
||||
padding-left: $btn-padding-x-lg * .75;
|
||||
}
|
||||
|
||||
|
||||
// The clickable button for toggling the menu
|
||||
// Set the same inset shadow as the :active state
|
||||
.btn-group.show .dropdown-toggle {
|
||||
@include box-shadow($btn-active-box-shadow);
|
||||
|
||||
// Show no shadow for `.btn-link` since it has no other button styles.
|
||||
&.btn-link {
|
||||
@include box-shadow(none);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Vertical button groups
|
||||
//
|
||||
|
||||
.btn-group-vertical {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
|
||||
> .btn,
|
||||
> .btn-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
> .btn:not(:first-child),
|
||||
> .btn-group:not(:first-child) {
|
||||
margin-top: -$btn-border-width;
|
||||
}
|
||||
|
||||
// Reset rounded corners
|
||||
> .btn:not(:last-child):not(.dropdown-toggle),
|
||||
> .btn-group:not(:last-child) > .btn {
|
||||
@include border-bottom-radius(0);
|
||||
}
|
||||
|
||||
> .btn:not(:first-child),
|
||||
> .btn-group:not(:first-child) > .btn {
|
||||
@include border-top-radius(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Checkbox and radio options
|
||||
//
|
||||
// In order to support the browser's form validation feedback, powered by the
|
||||
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
|
||||
// `display: none;` or `visibility: hidden;` as that also hides the popover.
|
||||
// Simply visually hiding the inputs via `opacity` would leave them clickable in
|
||||
// certain cases which is prevented by using `clip` and `pointer-events`.
|
||||
// This way, we ensure a DOM element is visible to position the popover from.
|
||||
//
|
||||
// See https://github.com/twbs/bootstrap/pull/12794 and
|
||||
// https://github.com/twbs/bootstrap/pull/14559 for more information.
|
||||
|
||||
.btn-group-toggle {
|
||||
> .btn,
|
||||
> .btn-group > .btn {
|
||||
margin-bottom: 0; // Override default `<label>` value
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
position: absolute;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
137
_sass/bootstrap/_buttons.scss
Normal file
137
_sass/bootstrap/_buttons.scss
Normal file
|
@ -0,0 +1,137 @@
|
|||
// stylelint-disable selector-no-qualifying-type
|
||||
|
||||
//
|
||||
// Base styles
|
||||
//
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
font-family: $btn-font-family;
|
||||
font-weight: $btn-font-weight;
|
||||
color: $body-color;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
user-select: none;
|
||||
background-color: transparent;
|
||||
border: $btn-border-width solid transparent;
|
||||
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
|
||||
@include transition($btn-transition);
|
||||
|
||||
@include hover {
|
||||
color: $body-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&.focus {
|
||||
outline: 0;
|
||||
box-shadow: $btn-focus-box-shadow;
|
||||
}
|
||||
|
||||
// Disabled comes first so active can properly restyle
|
||||
&.disabled,
|
||||
&:disabled {
|
||||
opacity: $btn-disabled-opacity;
|
||||
@include box-shadow(none);
|
||||
}
|
||||
|
||||
&:not(:disabled):not(.disabled):active,
|
||||
&:not(:disabled):not(.disabled).active {
|
||||
@include box-shadow($btn-active-box-shadow);
|
||||
|
||||
&:focus {
|
||||
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Future-proof disabling of clicks on `<a>` elements
|
||||
a.btn.disabled,
|
||||
fieldset:disabled a.btn {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Alternate buttons
|
||||
//
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
.btn-#{$color} {
|
||||
@include button-variant($value, $value);
|
||||
}
|
||||
}
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
.btn-outline-#{$color} {
|
||||
@include button-outline-variant($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Link buttons
|
||||
//
|
||||
|
||||
// Make a button look and behave like a link
|
||||
.btn-link {
|
||||
font-weight: $font-weight-normal;
|
||||
color: $link-color;
|
||||
text-decoration: $link-decoration;
|
||||
|
||||
@include hover {
|
||||
color: $link-hover-color;
|
||||
text-decoration: $link-hover-decoration;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&.focus {
|
||||
text-decoration: $link-hover-decoration;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||