diff --git a/docs/Gemfile b/docs/Gemfile new file mode 100644 index 0000000..ecbd3fe --- /dev/null +++ b/docs/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gem "github-pages", group: :jekyll_plugins + +gem "wdm", "~> 0.1.0" if Gem.win_platform? + +# If you have any plugins, put them here! +# group :jekyll_plugins do + # gem "jekyll-paginate" + # gem "jekyll-sitemap" + # gem "jekyll-gist" + # gem "jekyll-feed" + # gem "jemoji" +# end diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 0000000..a18ae18 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1,51 @@ +lang: en-US +title: Basically Basic +email: dugan.nash@mailinator.com +description: "Your new default Jekyll theme" +baseurl: "/jekyll-theme-basically-basic" +url: "https://mmistakes.github.io" +repository: "mmistakes/minimal-mistakes" +author: + name: Dugan Nash + twitter: Towlette_Pettetucci + picture: https://api.adorable.io/avatars/285/johndoe.png +twitter_username: Towlette_Pettetucci +github_username: Towlette_Pettetucci +logo: /assets/icons/basically-basic-logo-light.svg + +# Build settings +markdown: kramdown +# theme: jekyll-theme-basically-basic +gems: + - jekyll-feed + - jekyll-seo-tag + - jekyll-sitemap + - jekyll-paginate +feed: + path: atom.xml + +# Pagination - https://jekyllrb.com/docs/pagination/ +paginate: 10 +paginate_path: /page:num/ + +# Exclude from processing. +# The following items will not be processed, by default. Create a custom list +# to override the default setting. +# exclude: +# - Gemfile +# - Gemfile.lock +# - node_modules +# - vendor/bundle/ +# - vendor/cache/ +# - vendor/gems/ +# - vendor/ruby/ + +# Front Matter Defaults +defaults: + # _posts + - scope: + path: "_posts" + type: posts + values: + layout: post + read_time: true diff --git a/docs/_data/cv.json b/docs/_data/cv.json new file mode 100644 index 0000000..8b08c03 --- /dev/null +++ b/docs/_data/cv.json @@ -0,0 +1,128 @@ +{ + "basics": { + "name": "Dugan Nash", + "label": "Very extravagant man", + "picture": "", + "email": "dugan.hash@mailinator.com", + "phone": "(555) 555-5555", + "website": "https://towlettepettetuc.ci", + "summary": "Nash is well versed in the Montoyan / Artesian Connection, preparation of grasshopper mash, and baking of grover loaves.", + "location": { + "address": "123 Sesame Street", + "postalCode": "CA 94115", + "city": "San Francisco", + "countryCode": "US", + "region": "California" + }, + "profiles": [ + { + "network": "Twitter", + "username": "Towlette_Pettetucci", + "url": "https://twitter.com/Towlette_Pettetucci" + }, + { + "network": "SoundCloud", + "username": "Towlette_Pettetucci", + "url": "https://soundcloud.com/Towlette_Pettetucci" + } + ] + }, + "work": [ + { + "company": "The Whip", + "position": "CEO/President", + "website": "https://thewh.ip", + "startDate": "2013-12-01", + "endDate": "", + "summary": "Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment.", + "highlights": [ + "Concealed nipper in embrodiery.", + "Dealt with Elastical Gomez on a daily basis." + ] + } + ], + "volunteer": [ + { + "organization": "Steve's Meat Market", + "position": "Assistant", + "website": "", + "startDate": "1995-01-01", + "endDate": "1997-03-20", + "summary": "Ground up some sort of grasshopper mash for fishing.", + "highlights": [ + "Awarded a 'Helium Biscuit'" + ] + } + ], + "education": [ + { + "institution": "University of Ointment", + "area": "Digital Skillets", + "studyType": "Bachelor", + "startDate": "2011-06-01", + "endDate": "2014-01-01", + "gpa": "4.0", + "courses": [ + "DB1101 - Perpendicular Crosstalk", + "CS2011 - Introduction to Moisturization" + ] + } + ], + "awards": [ + { + "title": "Warble Pioneer Award", + "date": "2001-11-01", + "awarder": "Levi Goulet", + "summary": "Have you seen my turtle?" + } + ], + "publications": [ + { + "name": "Radio Julius", + "publisher": "Tanyo Lubbock", + "releaseDate": "2014-10-01", + "website": "https://en.rhy.es", + "summary": "Capitalize on low hanging fruit to identify a ballpark value added activity to beta test." + } + ], + "skills": [ + { + "name": "Audio Juggling", + "level": "Master", + "keywords": [ + "Ointment", + "Voltor", + "Millipedes" + ] + }, + { + "name": "Bruschotti", + "level": "Satisfactory", + "keywords": [ + "Snow camp", + "Owl" + ] + } + ], + "languages": [ + { + "language": "Nonsense", + "fluency": "Native speaker" + } + ], + "interests": [ + { + "name": "The Information Superhighway", + "keywords": [ + "Ferrets", + "Unicorns" + ] + } + ], + "references": [ + { + "name": " Nannette Nananacci", + "reference": "It is my pleasure to recommend Dugan Nash, his performance working as a consultant for Main St. Company proved that he will be a valuable addition to any company." + } + ] +} diff --git a/docs/_data/theme.yml b/docs/_data/theme.yml new file mode 100644 index 0000000..89242ea --- /dev/null +++ b/docs/_data/theme.yml @@ -0,0 +1,34 @@ +# Theme Skin +skin: default # default, night, plum, sea, soft, steel + +# Theme Text +t: + skip_links: "Skip links" + skip_primary_nav: "Skip to primary navigation" + skip_content: "Skip to content" + skip_footer: "Skip to footer" + menu: "Menu" + home: "Home" + newer: "Newer" + older: "Older" + email: "Email" + subscribe: "Subscribe" + read_more: "Read More" + posts: "Posts" + page: "Page" + of: "of" + min_read: "min read" + present: "Present" + +# Google Fonts +google_fonts: + - name: "Fira Sans" + weights: "400,400i,600,600i" + +# Link to specific internal pages in the navigation. +# Create a custom list to override the default setting of including links to all +# pages that have a `title`. Add raw page paths in the order you'd like. + +navigation_pages: + - about.md + - cv.md diff --git a/docs/_includes/author b/docs/_includes/author new file mode 100644 index 0000000..19bcf68 --- /dev/null +++ b/docs/_includes/author @@ -0,0 +1,31 @@ +{% assign author = page.author | default: page.authors[0] | default: site.author %} +{% if author %} + {% if author.name %} + {% assign author_name = author.name %} + {% else %} + {% if site.data.authors and site.data.authors[author] %} + {% assign author_name = site.data.authors[author].name %} + {% else %} + {% assign author_name = author %} + {% endif %} + {% endif %} + + {% if author.picture %} + {% assign author_picture = author.picture %} + {% else %} + {% if site.data.authors and site.data.authors[author] %} + {% assign author_picture = site.data.authors[author].picture %} + {% endif %} + {% unless author_picture contains '://' %}{% assign author_picture = author_picture | relative_url %}{% endunless %} + {% endif %} + + {% if author.twitter %} + {% assign author_twitter = author.twitter %} + {% else %} + {% if site.data.authors and site.data.authors[author] %} + {% assign author_twitter = site.data.authors[author].twitter %} + {% else %} + {% assign author_twitter = site.twitter_username %} + {% endif %} + {% endif %} +{% endif %} \ No newline at end of file diff --git a/docs/_includes/contact-list.html b/docs/_includes/contact-list.html new file mode 100644 index 0000000..b5697e3 --- /dev/null +++ b/docs/_includes/contact-list.html @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/docs/_includes/cv/awards.html b/docs/_includes/cv/awards.html new file mode 100644 index 0000000..81cc13a --- /dev/null +++ b/docs/_includes/cv/awards.html @@ -0,0 +1,24 @@ +{% if cv.awards %} +
+
+

Awards

+
+ +
+ {% for a in cv.awards %} + {% if a.title %} +

{{ a.title }}

+ {% endif %} + {% if a.date %} +
{{ a.date }}
+ {% endif %} + {% if a.awarder %} +
{{ a.awarder }}
+ {% endif %} + {% if a.summary %} +
{{ a.summary | markdownify }}
+ {% endif %} + {% endfor %} +
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/basics.html b/docs/_includes/cv/basics.html new file mode 100644 index 0000000..b40f698 --- /dev/null +++ b/docs/_includes/cv/basics.html @@ -0,0 +1,69 @@ +{% if cv.basics.summary %} +
+ {{ cv.basics.summary | markdownify }} +
+{% endif %} + +
+
+

Contact

+
+ +
+ {% if cv.basics.email %} + + {% endif %} + {% if cv.basics.phone %} +
Phone {{ cv.basics.phone }}
+ {% endif %} + {% if cv.basics.website %} + + {% endif %} + {% if cv.basics.profiles %} + {% for p in cv.basics.profiles %} +
+ {% if p.network %} + {{ p.network | append: ' ' }} + {% endif %} + {% if p.username %} + + {% unless p.url == '' or p.url == nil %} + {{ p.username }} + {% else %} + {{ p.username }} + {% endunless %} + + {% endif %} +
+ {% endfor %} + {% endif %} +
+
+ +{% if cv.basics.location %} +
+
+

Location

+
+ +
+
+ {% if cv.basics.location.address %} + {{ cv.basics.location.address }}
+ {% endif %} + {% if cv.basics.location.city %} + {{ cv.basics.location.city | append: ', ' }} + {% endif %} + {% if cv.basics.location.region %} + {{ cv.basics.location.region | append: ' ' }} + {% endif %} + {% if cv.basics.location.postalCode %} + {{ cv.basics.location.postalCode | append: ' ' }} + {% endif %} + {% if cv.basics.location.countryCode %} + {{ cv.basics.location.countryCode }} + {% endif %} +
+
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/education.html b/docs/_includes/cv/education.html new file mode 100644 index 0000000..df56572 --- /dev/null +++ b/docs/_includes/cv/education.html @@ -0,0 +1,36 @@ +{% if cv.education %} +
+
+

Education

+
+ +
+ {% for e in cv.education %} + {% if e.institution %} +

{{ e.institution }}

+ {% endif %} +
+ {% if e.startDate %} + {{ e.startDate }} + {% endif %} + {% if e.endDate == '' %} + {{ site.data.theme.t.present | default: 'Present' | prepend: ' — ' }} + {% else %} + {{ e.endDate | prepend: ' — ' }} + {% endif %} +
+ {% if e.area %} +
{{ e.area }}{% if e.studyType %}{{ e.studyType | prepend: ', ' }}{% endif %}{% if e.gpa %}{{ e.gpa | prepend: ' (' | append: ' GPA)' }}{% endif %}
+ {% endif %} + {% if e.courses %} +
Courses
+ + {% endif %} + {% endfor %} +
+
+{% endif %} diff --git a/docs/_includes/cv/interests.html b/docs/_includes/cv/interests.html new file mode 100644 index 0000000..692ecf2 --- /dev/null +++ b/docs/_includes/cv/interests.html @@ -0,0 +1,20 @@ +{% if cv.interests %} +
+
+

Interests

+
+ +
+ {% for i in cv.interests %} +
+ {% if i.name %} +

{{ i.name }}

+ {% endif %} + {% if i.keywords %} + {{ i.keywords | array_to_sentence_string }} + {% endif %} +
+ {% endfor %} +
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/intro.html b/docs/_includes/cv/intro.html new file mode 100644 index 0000000..92a4f31 --- /dev/null +++ b/docs/_includes/cv/intro.html @@ -0,0 +1,18 @@ +
+
+
+

{{ cv.basics.name | default: page.title | markdownify | remove: '

' | remove: '

' }}

+ {% if cv.basics.label %} +

{{ cv.basics.label | markdownify | remove: '

' | remove: '

' }}

+ {% endif %} + + {% if page.actions %} + + {% endif %} +
+
+
diff --git a/docs/_includes/cv/languages.html b/docs/_includes/cv/languages.html new file mode 100644 index 0000000..19dc3d4 --- /dev/null +++ b/docs/_includes/cv/languages.html @@ -0,0 +1,20 @@ +{% if cv.languages %} +
+
+

Languages

+
+ +
+ {% for l in cv.languages %} + {% if l.language %} +

{{ l.language }}

+ {% endif %} + {% if l.fluency %} +
+ {{ l.fluency }} +
+ {% endif %} + {% endfor %} +
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/publications.html b/docs/_includes/cv/publications.html new file mode 100644 index 0000000..e1813bb --- /dev/null +++ b/docs/_includes/cv/publications.html @@ -0,0 +1,30 @@ +{% if cv.publications %} +
+
+

Publications

+
+ +
+ {% for p in cv.publications %} + {% if p.name %} +

+ {% if p.website %} + {{ p.name }} + {% else %} + {{ p.name }} + {% endif %} +

+ {% endif %} + {% if p.releaseDate %} +
{{ p.releaseDate }}
+ {% endif %} + {% if p.publisher %} +
{{ p.publisher | prepend: 'Published by ' }}
+ {% endif %} + {% if p.summary %} +
{{ p.summary | markdownify }}
+ {% endif %} + {% endfor %} +
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/references.html b/docs/_includes/cv/references.html new file mode 100644 index 0000000..df3dc4c --- /dev/null +++ b/docs/_includes/cv/references.html @@ -0,0 +1,24 @@ +{% if cv.references %} +
+
+

References

+
+ +
+ {% for r in cv.references %} +
+ {% if r.reference %} +
+ {{ r.reference |markdownify }} + {% if r.name %} +

+ {{ r.name }} +

+ {% endif %} +
+ {% endif %} +
+ {% endfor %} +
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/skills.html b/docs/_includes/cv/skills.html new file mode 100644 index 0000000..9f1c833 --- /dev/null +++ b/docs/_includes/cv/skills.html @@ -0,0 +1,20 @@ +{% if cv.skills. %} +
+
+

Skills

+
+ +
+ {% for s in cv.skills %} +
+ {% if s.name %} +

{{ s.name }}

+ {% endif %} + {% if s.keywords %} + {{ s.keywords | array_to_sentence_string }} + {% endif %} +
+ {% endfor %} +
+
+{% endif %} \ No newline at end of file diff --git a/docs/_includes/cv/volunteer.html b/docs/_includes/cv/volunteer.html new file mode 100644 index 0000000..5a2d030 --- /dev/null +++ b/docs/_includes/cv/volunteer.html @@ -0,0 +1,46 @@ +{% if cv.volunteer %} +
+
+

Volunteer

+
+ +
+ {% for v in cv.volunteer %} + {% if v.organization %} +

+ {% if v.website %} + {{ v.organization }} + {% else %} + {{ v.organization }} + {% endif %} +

+ {% endif %} + {% if v.position %} +

{{ v.position }}

+ {% endif %} +
+ {% if v.startDate %} + {{ v.startDate }} + {% endif %} + {% if v.endDate == '' %} + {{ site.data.theme.t.present | default: 'Present' | prepend: ' — ' }} + {% else %} + {{ v.endDate | prepend: ' — ' }} + {% endif %} +
+ {% if v.summary %} +
+

{{ v.summary }}

+
+ {% endif %} + {% if v.highlights %} + + {% endif %} + {% endfor %} +
+
+{% endif %} diff --git a/docs/_includes/cv/work.html b/docs/_includes/cv/work.html new file mode 100644 index 0000000..cffb968 --- /dev/null +++ b/docs/_includes/cv/work.html @@ -0,0 +1,46 @@ +{% if cv.work %} +
+
+

Work

+
+ +
+ {% for w in cv.work %} + {% if w.company %} +

+ {% if w.website %} + {{ w.company }} + {% else %} + {{ w.company }} + {% endif %} +

+ {% endif %} + {% if w.position %} +

{{ w.position }}

+ {% endif %} +
+ {% if w.startDate %} + {{ w.startDate }} + {% endif %} + {% if w.endDate == '' %} + {{ site.data.theme.t.present | default: 'Present' | prepend: ' — ' }} + {% else %} + {{ w.endDate | prepend: ' — ' }} + {% endif %} +
+ {% if w.summary %} +
+

{{ w.summary }}

+
+ {% endif %} + {% if w.highlights %} + + {% endif %} + {% endfor %} +
+
+{% endif %} diff --git a/docs/_includes/disqus_comments.html b/docs/_includes/disqus_comments.html new file mode 100644 index 0000000..0407cd2 --- /dev/null +++ b/docs/_includes/disqus_comments.html @@ -0,0 +1,17 @@ +{% if page.comments != false and jekyll.environment == "production" %} +
+ + +{% endif %} \ No newline at end of file diff --git a/docs/_includes/entry.html b/docs/_includes/entry.html new file mode 100644 index 0000000..c214fca --- /dev/null +++ b/docs/_includes/entry.html @@ -0,0 +1,29 @@ +{% if post.id %} + {% assign title = post.title | markdownify | strip_html %} +{% else %} + {% assign title = post.title %} +{% endif %} + +
+
+

+ {{ title }} +

+
+ +
+ {% if post.excerpt %} + {{ post.excerpt | markdownify }} +

{{ site.data.theme.t.read_more | default: 'Read More' }} {% include icon-arrow-right.svg %}

+ {% endif %} +
+
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html new file mode 100644 index 0000000..3fb6489 --- /dev/null +++ b/docs/_includes/footer.html @@ -0,0 +1,9 @@ + diff --git a/docs/_includes/google-analytics.html b/docs/_includes/google-analytics.html new file mode 100644 index 0000000..6ac0616 --- /dev/null +++ b/docs/_includes/google-analytics.html @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/docs/_includes/head-feed.html b/docs/_includes/head-feed.html new file mode 100644 index 0000000..fc31ba7 --- /dev/null +++ b/docs/_includes/head-feed.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/head-seo.html b/docs/_includes/head-seo.html new file mode 100644 index 0000000..8694692 --- /dev/null +++ b/docs/_includes/head-seo.html @@ -0,0 +1 @@ +{% seo %} \ No newline at end of file diff --git a/docs/_includes/head.html b/docs/_includes/head.html new file mode 100644 index 0000000..19b63a0 --- /dev/null +++ b/docs/_includes/head.html @@ -0,0 +1,35 @@ + + + + + + {% if site.gems contains 'jekyll-seo-tag' %} + {% comment %} + Add metadata for search engines and social networks if jekyll-seo-tag plugin is enabled + {% endcomment %} + {% include head-seo.html %} + {% else %} + {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %} + + + {% endif %} + + + + + {% if site.data.theme.google_fonts %} + + {% endif %} + + {% if site.gems contains 'jekyll-feed' %} + {% comment %} + Add Atom feed link if jekyll-feed plugin is enabled + {% endcomment %} + {% include head-feed.html %} + {% endif %} + diff --git a/docs/_includes/icon-arrow-left.svg b/docs/_includes/icon-arrow-left.svg new file mode 100644 index 0000000..d7d28f0 --- /dev/null +++ b/docs/_includes/icon-arrow-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-arrow-right.svg b/docs/_includes/icon-arrow-right.svg new file mode 100644 index 0000000..e9ab917 --- /dev/null +++ b/docs/_includes/icon-arrow-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-bitbucket.html b/docs/_includes/icon-bitbucket.html new file mode 100644 index 0000000..f49af30 --- /dev/null +++ b/docs/_includes/icon-bitbucket.html @@ -0,0 +1,4 @@ + + {% include icon-bitbucket.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-bitbucket.svg b/docs/_includes/icon-bitbucket.svg new file mode 100644 index 0000000..4a17be0 --- /dev/null +++ b/docs/_includes/icon-bitbucket.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-calendar.svg b/docs/_includes/icon-calendar.svg new file mode 100644 index 0000000..410a49c --- /dev/null +++ b/docs/_includes/icon-calendar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-codepen.html b/docs/_includes/icon-codepen.html new file mode 100644 index 0000000..50412e4 --- /dev/null +++ b/docs/_includes/icon-codepen.html @@ -0,0 +1,4 @@ + + {% include icon-codepen.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-codepen.svg b/docs/_includes/icon-codepen.svg new file mode 100644 index 0000000..88bd3cf --- /dev/null +++ b/docs/_includes/icon-codepen.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-download.svg b/docs/_includes/icon-download.svg new file mode 100644 index 0000000..f3cd4a9 --- /dev/null +++ b/docs/_includes/icon-download.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-dribbble.html b/docs/_includes/icon-dribbble.html new file mode 100644 index 0000000..dc48071 --- /dev/null +++ b/docs/_includes/icon-dribbble.html @@ -0,0 +1,4 @@ + + {% include icon-dribbble.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-dribbble.svg b/docs/_includes/icon-dribbble.svg new file mode 100644 index 0000000..44c7af5 --- /dev/null +++ b/docs/_includes/icon-dribbble.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-email.svg b/docs/_includes/icon-email.svg new file mode 100644 index 0000000..40d8357 --- /dev/null +++ b/docs/_includes/icon-email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-facebook.html b/docs/_includes/icon-facebook.html new file mode 100644 index 0000000..c54ce9e --- /dev/null +++ b/docs/_includes/icon-facebook.html @@ -0,0 +1,4 @@ + + {% include icon-facebook.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-facebook.svg b/docs/_includes/icon-facebook.svg new file mode 100644 index 0000000..b1d1895 --- /dev/null +++ b/docs/_includes/icon-facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-flickr.html b/docs/_includes/icon-flickr.html new file mode 100644 index 0000000..efb7ae1 --- /dev/null +++ b/docs/_includes/icon-flickr.html @@ -0,0 +1,4 @@ + + {% include icon-flickr.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-flickr.svg b/docs/_includes/icon-flickr.svg new file mode 100644 index 0000000..68c4910 --- /dev/null +++ b/docs/_includes/icon-flickr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-github.html b/docs/_includes/icon-github.html new file mode 100644 index 0000000..873ffa9 --- /dev/null +++ b/docs/_includes/icon-github.html @@ -0,0 +1,4 @@ + + {% include icon-github.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-github.svg b/docs/_includes/icon-github.svg new file mode 100644 index 0000000..59d57b9 --- /dev/null +++ b/docs/_includes/icon-github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-gitlab.html b/docs/_includes/icon-gitlab.html new file mode 100644 index 0000000..bdebcb6 --- /dev/null +++ b/docs/_includes/icon-gitlab.html @@ -0,0 +1,4 @@ + + {% include icon-gitlab.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-gitlab.svg b/docs/_includes/icon-gitlab.svg new file mode 100644 index 0000000..29c2012 --- /dev/null +++ b/docs/_includes/icon-gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-googleplus.html b/docs/_includes/icon-googleplus.html new file mode 100644 index 0000000..59248fe --- /dev/null +++ b/docs/_includes/icon-googleplus.html @@ -0,0 +1,4 @@ + + {% include icon-googleplus.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-googleplus.svg b/docs/_includes/icon-googleplus.svg new file mode 100644 index 0000000..87b3af6 --- /dev/null +++ b/docs/_includes/icon-googleplus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-instagram.html b/docs/_includes/icon-instagram.html new file mode 100644 index 0000000..936771d --- /dev/null +++ b/docs/_includes/icon-instagram.html @@ -0,0 +1,4 @@ + + {% include icon-instagram.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-instagram.svg b/docs/_includes/icon-instagram.svg new file mode 100644 index 0000000..5c45f1f --- /dev/null +++ b/docs/_includes/icon-instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-lastfm.html b/docs/_includes/icon-lastfm.html new file mode 100644 index 0000000..8fb6625 --- /dev/null +++ b/docs/_includes/icon-lastfm.html @@ -0,0 +1,4 @@ + + {% include icon-lastfm.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-lastfm.svg b/docs/_includes/icon-lastfm.svg new file mode 100644 index 0000000..146f4b9 --- /dev/null +++ b/docs/_includes/icon-lastfm.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-linkedin.html b/docs/_includes/icon-linkedin.html new file mode 100644 index 0000000..103892b --- /dev/null +++ b/docs/_includes/icon-linkedin.html @@ -0,0 +1,4 @@ + + {% include icon-linkedin.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-linkedin.svg b/docs/_includes/icon-linkedin.svg new file mode 100644 index 0000000..91d7ee8 --- /dev/null +++ b/docs/_includes/icon-linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-pdf.svg b/docs/_includes/icon-pdf.svg new file mode 100644 index 0000000..bf174e0 --- /dev/null +++ b/docs/_includes/icon-pdf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-pinterest.html b/docs/_includes/icon-pinterest.html new file mode 100644 index 0000000..c1c461a --- /dev/null +++ b/docs/_includes/icon-pinterest.html @@ -0,0 +1,4 @@ + + {% include icon-pinterest.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-pinterest.svg b/docs/_includes/icon-pinterest.svg new file mode 100644 index 0000000..e4a3e4c --- /dev/null +++ b/docs/_includes/icon-pinterest.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-rss.svg b/docs/_includes/icon-rss.svg new file mode 100644 index 0000000..3b73970 --- /dev/null +++ b/docs/_includes/icon-rss.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-soundcloud.html b/docs/_includes/icon-soundcloud.html new file mode 100644 index 0000000..317f381 --- /dev/null +++ b/docs/_includes/icon-soundcloud.html @@ -0,0 +1,4 @@ + + {% include icon-soundcloud.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-soundcloud.svg b/docs/_includes/icon-soundcloud.svg new file mode 100644 index 0000000..642c815 --- /dev/null +++ b/docs/_includes/icon-soundcloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-stackoverflow.html b/docs/_includes/icon-stackoverflow.html new file mode 100644 index 0000000..29851ee --- /dev/null +++ b/docs/_includes/icon-stackoverflow.html @@ -0,0 +1,4 @@ + + {% include icon-stackoverflow.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-stackoverflow.svg b/docs/_includes/icon-stackoverflow.svg new file mode 100644 index 0000000..13e1dbb --- /dev/null +++ b/docs/_includes/icon-stackoverflow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-stopwatch.svg b/docs/_includes/icon-stopwatch.svg new file mode 100644 index 0000000..d448bdd --- /dev/null +++ b/docs/_includes/icon-stopwatch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-tumblr.html b/docs/_includes/icon-tumblr.html new file mode 100644 index 0000000..7ba5501 --- /dev/null +++ b/docs/_includes/icon-tumblr.html @@ -0,0 +1,4 @@ + + {% include icon-tumblr.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-tumblr.svg b/docs/_includes/icon-tumblr.svg new file mode 100644 index 0000000..d42a48c --- /dev/null +++ b/docs/_includes/icon-tumblr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-twitter.html b/docs/_includes/icon-twitter.html new file mode 100644 index 0000000..0682e12 --- /dev/null +++ b/docs/_includes/icon-twitter.html @@ -0,0 +1,4 @@ + + {% include icon-twitter.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-twitter.svg b/docs/_includes/icon-twitter.svg new file mode 100644 index 0000000..4d3fbe4 --- /dev/null +++ b/docs/_includes/icon-twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-xing.html b/docs/_includes/icon-xing.html new file mode 100644 index 0000000..c72bc39 --- /dev/null +++ b/docs/_includes/icon-xing.html @@ -0,0 +1,4 @@ + + {% include icon-xing.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-xing.svg b/docs/_includes/icon-xing.svg new file mode 100644 index 0000000..ed9ea48 --- /dev/null +++ b/docs/_includes/icon-xing.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/icon-youtube.html b/docs/_includes/icon-youtube.html new file mode 100644 index 0000000..3a1532a --- /dev/null +++ b/docs/_includes/icon-youtube.html @@ -0,0 +1,4 @@ + + {% include icon-youtube.svg %} + {{ include.label | default: include.username }} + diff --git a/docs/_includes/icon-youtube.svg b/docs/_includes/icon-youtube.svg new file mode 100644 index 0000000..8c1cdf2 --- /dev/null +++ b/docs/_includes/icon-youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/masthead.html b/docs/_includes/masthead.html new file mode 100644 index 0000000..13954b9 --- /dev/null +++ b/docs/_includes/masthead.html @@ -0,0 +1,27 @@ +{% if site.logo contains '://' %} + {% assign site_logo = site.logo %} +{% else %} + {% assign site_logo = site.logo | relative_url %} +{% endif %} + +
+
+ +
+
diff --git a/docs/_includes/navigation.html b/docs/_includes/navigation.html new file mode 100644 index 0000000..5351313 --- /dev/null +++ b/docs/_includes/navigation.html @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/docs/_includes/page-intro.html b/docs/_includes/page-intro.html new file mode 100644 index 0000000..9163e07 --- /dev/null +++ b/docs/_includes/page-intro.html @@ -0,0 +1,42 @@ +
+ {% if page.image %} + {% assign intro_image = page.image.path | default: page.image %} + {% unless intro_image contains '://' %} + {% assign intro_image = intro_image | relative_url %} + {% endunless %} + {% assign intro_image = intro_image | escape %} +
+ {{ page.title }} +
+ {% endif %} + +
+
+

{{ page.alt_title | default: page.title | default: site.title | markdownify | strip_html }}

+ {% if page.sub_title %} +

{{ page.sub_title | markdownify | strip_html }}

+ {% endif %} + + {% if page.date %} + {% include author %} + + {% endif %} + + {% if page.introduction %} +
+ {{ page.introduction | markdownify }} +
+ {% endif %} + + {% if page.actions %} + + {% endif %} +
+
+
diff --git a/docs/_includes/posts-all.html b/docs/_includes/posts-all.html new file mode 100644 index 0000000..a3646c9 --- /dev/null +++ b/docs/_includes/posts-all.html @@ -0,0 +1,3 @@ +{% for post in site.posts %} + {% include entry.html %} +{% endfor %} \ No newline at end of file diff --git a/docs/_includes/posts-paginated.html b/docs/_includes/posts-paginated.html new file mode 100644 index 0000000..142db39 --- /dev/null +++ b/docs/_includes/posts-paginated.html @@ -0,0 +1,16 @@ +{% for post in paginator.posts %} + {% include entry.html %} +{% endfor %} + + + \ No newline at end of file diff --git a/docs/_includes/read-time.html b/docs/_includes/read-time.html new file mode 100644 index 0000000..0cf008b --- /dev/null +++ b/docs/_includes/read-time.html @@ -0,0 +1,13 @@ +{% assign words_per_minute = site.words_per_minute | default: 200 %} + +{% if post.read_time %} + {% assign words = post.content | strip_html | number_of_words %} +{% elsif page.read_time %} + {% assign words = page.content | strip_html | number_of_words %} +{% endif %} + +{% if words < words_per_minute %} + ~1 {{ site.data.theme.t.min_read | default: 'min read' }} +{% else %} + {{ words | divided_by:words_per_minute }} {{ site.data.theme.t.min_read | default: 'min read' }} +{% endif %} diff --git a/docs/_includes/scripts.html b/docs/_includes/scripts.html new file mode 100644 index 0000000..85a2a21 --- /dev/null +++ b/docs/_includes/scripts.html @@ -0,0 +1,5 @@ +{% if jekyll.environment == 'production' and site.google_analytics %} + {% include google-analytics.html %} +{% endif %} + + \ No newline at end of file diff --git a/docs/_includes/skip-links.html b/docs/_includes/skip-links.html new file mode 100644 index 0000000..12893ea --- /dev/null +++ b/docs/_includes/skip-links.html @@ -0,0 +1,8 @@ +
+

{{ site.data.theme.t.skip_links | default: 'Skip links' }}

+ +
\ No newline at end of file diff --git a/docs/_layouts/about.html b/docs/_layouts/about.html new file mode 100644 index 0000000..fe13cb4 --- /dev/null +++ b/docs/_layouts/about.html @@ -0,0 +1,21 @@ +--- +layout: default +--- + +{% include page-intro.html %} + +
+
+
+
+ {{ content }} +
+ +
+ + {% include footer.html %} +
+
diff --git a/docs/_layouts/cv.html b/docs/_layouts/cv.html new file mode 100644 index 0000000..b2165f0 --- /dev/null +++ b/docs/_layouts/cv.html @@ -0,0 +1,28 @@ +--- +layout: default +--- + +{% assign cv = site.data.cv %} +{% include cv/intro.html %} + +
+
+
{{ content }}
+
+
+ {% include cv/basics.html %} + {% include cv/work.html %} + {% include cv/volunteer.html %} + {% include cv/education.html %} + {% include cv/awards.html %} + {% include cv/publications.html %} + {% include cv/skills.html %} + {% include cv/languages.html %} + {% include cv/interests.html %} + {% include cv/references.html %} +
+
+ + {% include footer.html %} +
+
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html new file mode 100644 index 0000000..f8c814a --- /dev/null +++ b/docs/_layouts/default.html @@ -0,0 +1,38 @@ + + + + {% include head.html %} + + + + {% include skip-links.html %} + + + +
+ {% include masthead.html %} + {{ content }} +
+ + + + {% include scripts.html %} + + + + diff --git a/docs/_layouts/home.html b/docs/_layouts/home.html new file mode 100644 index 0000000..f8a2b90 --- /dev/null +++ b/docs/_layouts/home.html @@ -0,0 +1,30 @@ +--- +layout: default +--- + +{% include page-intro.html %} + +
+
+
{{ content }}
+ +
+
+

{{ site.data.theme.t.posts | default: 'Posts' }}{% if paginator.page > 1 %}{{ site.data.theme.t.page | default: 'Page' | prepend: ' - ' | append: ' ' }}{{ paginator.page }} {{ site.data.theme.t.of | default: 'of' }} {{ paginator.total_pages }}{% endif %}

+
+
+ {% if site.gems contains 'jekyll-paginate' and page.paginate %} + {% comment %} + Add paginator.posts loop if jekyll-paginate plugin is enabled + and page.paginate == true + {% endcomment %} + {% include posts-paginated.html %} + {% else %} + {% include posts-all.html %} + {% endif %} +
+
+ + {% include footer.html %} +
+
diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html new file mode 100644 index 0000000..ca27059 --- /dev/null +++ b/docs/_layouts/page.html @@ -0,0 +1,17 @@ +--- +layout: default +--- + +{% include page-intro.html %} + +
+
+
+
+ {{ content }} +
+
+ + {% include footer.html %} +
+
diff --git a/docs/_layouts/post.html b/docs/_layouts/post.html new file mode 100644 index 0000000..ab4c2e1 --- /dev/null +++ b/docs/_layouts/post.html @@ -0,0 +1,20 @@ +--- +layout: default +--- + +{% include page-intro.html %} + +
+
+
+
+ {{ content }} +
+ {% if site.disqus.shortname %} + {% include disqus_comments.html %} + {% endif %} +
+ + {% include footer.html %} +
+
diff --git a/docs/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md b/docs/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md new file mode 100644 index 0000000..098ce7e --- /dev/null +++ b/docs/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md @@ -0,0 +1,58 @@ +--- +title: "Edge Case: Nested and Mixed Lists" +categories: + - Edge Case +tags: + - content + - css + - edge case + - lists + - markup +last_modified_at: 2017-03-09T14:25:52-05:00 +--- + +Nested and mixed lists are an interesting beast. It's a corner case to make sure that lists within lists do not break the ordered list numbering order and list styles go deep enough. + +## Ordered -- Unordered -- Ordered + +1. ordered item +2. ordered item + * **unordered** + * **unordered** + 1. ordered item + 2. ordered item +3. ordered item +4. ordered item + +## Ordered -- Unordered -- Unordered + +1. ordered item +2. ordered item + * **unordered** + * **unordered** + * unordered item + * unordered item +3. ordered item +4. ordered item + +## Unordered -- Ordered -- Unordered + +* unordered item +* unordered item + 1. ordered + 2. ordered + * unordered item + * unordered item +* unordered item +* unordered item + +## Unordered -- Unordered -- Ordered + +* unordered item +* unordered item + * unordered + * unordered + 1. **ordered item** + 2. **ordered item** +* unordered item +* unordered item \ No newline at end of file diff --git a/docs/_posts/2009-06-01-edge-case-many-tags.md b/docs/_posts/2009-06-01-edge-case-many-tags.md new file mode 100644 index 0000000..f43509f --- /dev/null +++ b/docs/_posts/2009-06-01-edge-case-many-tags.md @@ -0,0 +1,49 @@ +--- +title: "Edge Case: Many Tags" +categories: + - Edge Case +tags: + - 8BIT + - alignment + - Articles + - captions + - categories + - chat + - comments + - content + - css + - dowork + - edge case + - embeds + - excerpt + - Fail + - featured image + - FTW + - Fun + - gallery + - html + - image + - Jekyll + - layout + - link + - Love + - markup + - Mothership + - Must Read + - Nailed It + - Pictures + - Post Formats + - quote + - standard + - Success + - Swagger + - Tags + - template + - title + - twitter + - Unseen + - video + - YouTube +--- + +This post has many tags. \ No newline at end of file diff --git a/docs/_posts/2009-07-02-edge-case-many-categories.md b/docs/_posts/2009-07-02-edge-case-many-categories.md new file mode 100644 index 0000000..4d67986 --- /dev/null +++ b/docs/_posts/2009-07-02-edge-case-many-categories.md @@ -0,0 +1,19 @@ +--- +title: "Edge Case: Many Categories" +categories: + - aciform + - antiquarianism + - arrangement + - asmodeus + - broder + - buying + - championship + - chastening + - disinclination + - disinfection +tags: + - categories + - edge case +--- + +This post has many categories. \ No newline at end of file diff --git a/docs/_posts/2009-08-06-edge-case-no-body-content.md b/docs/_posts/2009-08-06-edge-case-no-body-content.md new file mode 100644 index 0000000..8a68508 --- /dev/null +++ b/docs/_posts/2009-08-06-edge-case-no-body-content.md @@ -0,0 +1,11 @@ +--- +title: "Edge Case: No Body Content" +excerpt: "This post has no body content and should be blank on the post's page." +categories: + - Edge Case +tags: + - content + - edge case + - layout +last_modified_at: 2017-03-09T14:23:48-05:00 +--- diff --git a/docs/_posts/2009-09-05-edge-case-no-yaml-title.md b/docs/_posts/2009-09-05-edge-case-no-yaml-title.md new file mode 100644 index 0000000..7a32127 --- /dev/null +++ b/docs/_posts/2009-09-05-edge-case-no-yaml-title.md @@ -0,0 +1,12 @@ +--- +categories: + - Edge Case +tags: + - edge case + - layout + - title +--- + +This post has no title specified in the YAML Front Matter. Jekyll should auto-generate a title from the filename. + +For example `2009-09-05-edge-case-no-yaml-title.md` becomes **Edge Case No Yaml Title**. \ No newline at end of file diff --git a/docs/_posts/2009-10-05-edge-case-title-should-not-overflow-the-content-area.md b/docs/_posts/2009-10-05-edge-case-title-should-not-overflow-the-content-area.md new file mode 100644 index 0000000..e7be7ba --- /dev/null +++ b/docs/_posts/2009-10-05-edge-case-title-should-not-overflow-the-content-area.md @@ -0,0 +1,26 @@ +--- +title: "Antidisestablishmentarianism" +categories: + - Edge Case +tags: + - content + - css + - edge case + - html + - layout + - title +last_modified_at: 2017-03-09T14:10:02-05:00 +--- + +This post title has a long word that could potentially overflow the content area. + +A few things to check for: + + * Non-breaking text in the title should have no adverse effects on layout or functionality. + * Check the browser window / tab title. + +The following CSS property will help you support non-breaking text. + +```css +word-wrap: break-word; +``` \ No newline at end of file diff --git a/docs/_posts/2009-10-05-edge-case-very-long-title.md b/docs/_posts/2009-10-05-edge-case-very-long-title.md new file mode 100644 index 0000000..d31e072 --- /dev/null +++ b/docs/_posts/2009-10-05-edge-case-very-long-title.md @@ -0,0 +1,14 @@ +--- +title: "Suspicio? Bene ... tunc ibimus? Quis uh ... CONEXUS locus his diebus? Quisque semper aliquid videtur, in volutpat mauris. Nolo enim dicere. Vobis neque ab aliis. Ego feci memetipsum explicans. Gus mortuus est. Lorem opus habeo. Jackson Isai? Tu quoque ... A te quidem a ante. Vos scitis quod blinking res Ive 'been vocans super vos? Et conteram illud, et conteram hoc. Maledicant druggie excors. Iam hoc tu facere conatus sum ad te in omni tempore? Ludum mutavit. Verbum est ex. Et ... sunt occid" +categories: + - Edge Case +tags: + - content + - css + - edge case + - html + - layout + - title +--- + +Check for long titles and how they might break layouts. \ No newline at end of file diff --git a/docs/_posts/2010-01-07-post-modified.md b/docs/_posts/2010-01-07-post-modified.md new file mode 100644 index 0000000..dbfbe21 --- /dev/null +++ b/docs/_posts/2010-01-07-post-modified.md @@ -0,0 +1,14 @@ +--- +title: "Post: Modified Date" +categories: + - Post Formats +tags: + - Post Formats + - readability + - standard +last_modified_at: 2017-03-09T13:01:27-05:00 +--- + +This post has been updated and should show a modified date if `last_modified_at` is used in the layout. + +Plugins like [**jekyll-sitemap**](https://github.com/jekyll/jekyll-feed) use this field to add a `` tag your `sitemap.xml`. \ No newline at end of file diff --git a/docs/_posts/2010-01-07-post-standard.md b/docs/_posts/2010-01-07-post-standard.md new file mode 100644 index 0000000..cd83ea0 --- /dev/null +++ b/docs/_posts/2010-01-07-post-standard.md @@ -0,0 +1,32 @@ +--- +title: "Post: Standard" +excerpt_separator: "" +categories: + - Post Formats +tags: + - Post Formats + - readability + - standard +--- + +All children, except one, grow up. They soon know that they will grow up, and the way Wendy knew was this. One day when she was two years old she was playing in a garden, and she plucked another flower and ran with it to her mother. I suppose she must have looked rather delightful, for Mrs. Darling put her hand to her heart and cried, "Oh, why can't you remain like this for ever!" This was all that passed between them on the subject, but henceforth Wendy knew that she must grow up. You always know after you are two. Two is the beginning of the end. + +Mrs. Darling first heard of Peter when she was tidying up her children's minds. It is the nightly custom of every good mother after her children are asleep to rummage in their minds and put things straight for next morning, repacking into their proper places the many articles that have wandered during the day. + + + +This post has a manual excerpt `` set after the second paragraph. The following YAML Front Matter has also be applied: + +```yaml +excerpt_separator: "" +``` + +If you could keep awake (but of course you can't) you would see your own mother doing this, and you would find it very interesting to watch her. It is quite like tidying up drawers. You would see her on her knees, I expect, lingering humorously over some of your contents, wondering where on earth you had picked this thing up, making discoveries sweet and not so sweet, pressing this to her cheek as if it were as nice as a kitten, and hurriedly stowing that out of sight. When you wake in the morning, the naughtiness and evil passions with which you went to bed have been folded up small and placed at the bottom of your mind and on the top, beautifully aired, are spread out your prettier thoughts, ready for you to put on. + +I don't know whether you have ever seen a map of a person's mind. Doctors sometimes draw maps of other parts of you, and your own map can become intensely interesting, but catch them trying to draw a map of a child's mind, which is not only confused, but keeps going round all the time. There are zigzag lines on it, just like your temperature on a card, and these are probably roads in the island, for the Neverland is always more or less an island, with astonishing splashes of colour here and there, and coral reefs and rakish-looking craft in the offing, and savages and lonely lairs, and gnomes who are mostly tailors, and caves through which a river runs, and princes with six elder brothers, and a hut fast going to decay, and one very small old lady with a hooked nose. It would be an easy map if that were all, but there is also first day at school, religion, fathers, the round pond, needle-work, murders, hangings, verbs that take the dative, chocolate pudding day, getting into braces, say ninety-nine, three-pence for pulling out your tooth yourself, and so on, and either these are part of the island or they are another map showing through, and it is all rather confusing, especially as nothing will stand still. + +Of course the Neverlands vary a good deal. John's, for instance, had a lagoon with flamingoes flying over it at which John was shooting, while Michael, who was very small, had a flamingo with lagoons flying over it. John lived in a boat turned upside down on the sands, Michael in a wigwam, Wendy in a house of leaves deftly sewn together. John had no friends, Michael had friends at night, Wendy had a pet wolf forsaken by its parents, but on the whole the Neverlands have a family resemblance, and if they stood still in a row you could say of them that they have each other's nose, and so forth. On these magic shores children at play are for ever beaching their coracles [simple boat]. We too have been there; we can still hear the sound of the surf, though we shall land no more. + +Of all delectable islands the Neverland is the snuggest and most compact, not large and sprawly, you know, with tedious distances between one adventure and another, but nicely crammed. When you play at it by day with the chairs and table-cloth, it is not in the least alarming, but in the two minutes before you go to sleep it becomes very real. That is why there are night-lights. + +Occasionally in her travels through her children's minds Mrs. Darling found things she could not understand, and of these quite the most perplexing was the word Peter. She knew of no Peter, and yet he was here and there in John and Michael's minds, while Wendy's began to be scrawled all over with him. The name stood out in bolder letters than any of the other words, and as Mrs. Darling gazed she felt that it had an oddly cocky appearance. \ No newline at end of file diff --git a/docs/_posts/2010-02-05-post-quote.md b/docs/_posts/2010-02-05-post-quote.md new file mode 100644 index 0000000..60859a0 --- /dev/null +++ b/docs/_posts/2010-02-05-post-quote.md @@ -0,0 +1,12 @@ +--- +title: "Post: Quote" +categories: + - Post Formats +tags: + - Post Formats + - quote +--- + +> Only one thing is impossible for God: To find any sense in any copyright law on the planet. +> +> Mark Twain \ No newline at end of file diff --git a/docs/_posts/2010-06-02-post-video-youtube.md b/docs/_posts/2010-06-02-post-video-youtube.md new file mode 100644 index 0000000..117cb86 --- /dev/null +++ b/docs/_posts/2010-06-02-post-video-youtube.md @@ -0,0 +1,12 @@ +--- +title: "Post: Video (YouTube)" +categories: + - Post Formats +tags: + - Post Formats +last_modified_at: 2017-03-09T12:58:20-05:00 +--- + + + +This post test YouTube video embeds. \ No newline at end of file diff --git a/docs/_posts/2010-09-10-post-twitter-embeds.md b/docs/_posts/2010-09-10-post-twitter-embeds.md new file mode 100644 index 0000000..fd16523 --- /dev/null +++ b/docs/_posts/2010-09-10-post-twitter-embeds.md @@ -0,0 +1,16 @@ +--- +title: "Post: Twitter Embed" +categories: + - Media +tags: + - content + - embeds + - media + - twitter +last_modified_at: 2017-03-09T12:57:42-05:00 +--- + +

Oh I dunno. It's probably been over 15 years since I smudged out a face with a pencil and kneaded eraser. #WIP #Sktchy pic.twitter.com/PwqbMddyVK

— Michael Rose (@mmistakes) February 1, 2017
+ + +This post tests Twitter Embeds. \ No newline at end of file diff --git a/docs/_posts/2010-10-25-post-future-date.md b/docs/_posts/2010-10-25-post-future-date.md new file mode 100644 index 0000000..163ee06 --- /dev/null +++ b/docs/_posts/2010-10-25-post-future-date.md @@ -0,0 +1,13 @@ +--- +title: "Post: Future Date" +date: 9999-12-31 +categories: + - Post +last_modified_at: 2017-03-09T12:45:25-05:00 +--- + +This post lives in the future and is dated {{ page.date | date: "%c" }}. It should only appear when Jekyll builds your project with the `--future` flag. + +```bash +jekyll build --future +``` \ No newline at end of file diff --git a/docs/_posts/2012-03-14-layout-excerpt-defined.md b/docs/_posts/2012-03-14-layout-excerpt-defined.md new file mode 100644 index 0000000..f5a1439 --- /dev/null +++ b/docs/_posts/2012-03-14-layout-excerpt-defined.md @@ -0,0 +1,16 @@ +--- +title: "Layout: Excerpt (Defined)" +excerpt: "This is a user-defined post excerpt. It should be displayed in place of the auto-generated excerpt or post content on index pages." +categories: + - Layout + - Uncategorized +tags: + - content + - excerpt + - layout +last_modified_at: 2017-03-09T12:43:31-05:00 +--- + +This is the start of the post content. + +This paragraph should be absent from an index page where `post.excerpt` is shown. \ No newline at end of file diff --git a/docs/_posts/2012-03-14-layout-excerpt-generated.md b/docs/_posts/2012-03-14-layout-excerpt-generated.md new file mode 100644 index 0000000..b6ebff3 --- /dev/null +++ b/docs/_posts/2012-03-14-layout-excerpt-generated.md @@ -0,0 +1,22 @@ +--- +title: "Layout: Excerpt (Generated with Separator Tag)" +excerpt_separator: "" +categories: + - Layout + - Uncategorized +tags: + - content + - excerpt + - layout +last_modified_at: 2017-03-09T12:32:16-05:00 +--- + +This is the post content. Archive-index pages should display an [auto-generated excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) of all the content preceding the `excerpt_separator`, as defined in the YAML Front Matter or globally in `_config.yml`. + +Be sure to test the formatting of the auto-generated excerpt, to ensure that it doesn't create any layout problems. + + + +Lorem ipsum dolor sit amet, dicant nusquam corpora in usu, laudem putent fuisset ut eam. Justo accusam definitionem id cum, choro prodesset ex his. Noluisse constituto intellegebat ea mei. Timeam admodum omnesque pri ex, eos habemus suavitate aliquando cu. Dico nihil delectus quo cu. Ludus cetero cu eos, vidit invidunt dissentiet mea ne. + +Usu delenit vocibus elaboraret ex. Scripta sapientem adversarium ei pri, pri ex solet democritum. Nam te porro impedit, ei doctus albucius cotidieque pri, ea mutat causae lucilius has. Pri omnis errem labore ut. An aperiam tibique est, mei te dolore veritus, nam nulla feugait ut. In vis labitur eripuit contentiones. \ No newline at end of file diff --git a/docs/_posts/2012-03-14-layout-hero-image.md b/docs/_posts/2012-03-14-layout-hero-image.md new file mode 100644 index 0000000..2d34e34 --- /dev/null +++ b/docs/_posts/2012-03-14-layout-hero-image.md @@ -0,0 +1,26 @@ +--- +title: "Layout: Hero Image" +image: /assets/images/eder-oliveira-180877.jpg +categories: + - Layout +tags: + - content + - image + - layout +last_modified_at: 2017-03-17T10:46:49-04:00 +--- + +This post should display a large hero image at the top of a page. + +This post tests a horizontal image using the following YAML Front Matter: + +```yaml +image: /assets/images/eder-oliveira-180877.jpg +``` + +Hero images can also be assigned like this: + +```yaml +image: + path: /assets/images/eder-oliveira-180877.jpg +``` diff --git a/docs/_posts/2012-05-22-markup-text-readability.md b/docs/_posts/2012-05-22-markup-text-readability.md new file mode 100644 index 0000000..9970eff --- /dev/null +++ b/docs/_posts/2012-05-22-markup-text-readability.md @@ -0,0 +1,46 @@ +--- +title: "Markup: Text Readability Test" +excerpt: "A large amount of sample text to test readability of a text heavy page." +tags: + - sample post + - readability + - test +last_modified_at: 2017-03-09T12:26:59-05:00 +--- + +Portland in shoreditch Vice, labore typewriter pariatur hoodie fap sartorial Austin. Pinterest literally occupy Schlitz forage. Odio ad blue bottle vinyl, 90's narwhal commodo bitters pour-over nostrud. Ugh est hashtag in, fingerstache adipisicing laboris esse Pinterest shabby chic Portland. Shoreditch bicycle rights anim, flexitarian laboris put a bird on it vinyl cupidatat narwhal. Hashtag artisan skateboard, flannel Bushwick nesciunt salvia aute fixie do plaid post-ironic dolor McSweeney's. Cliche pour-over chambray nulla four loko skateboard sapiente hashtag. + +Vero laborum commodo occupy. Semiotics voluptate mumblecore pug. Cosby sweater ullamco quinoa ennui assumenda, sapiente occupy delectus lo-fi. Ea fashion axe Marfa cillum aliquip. Retro Bushwick keytar cliche. Before they sold out sustainable gastropub Marfa readymade, ethical Williamsburg skateboard brunch qui consectetur gentrify semiotics. Mustache cillum irony, fingerstache magna pour-over keffiyeh tousled selfies. + +## Cupidatat 90's lo-fi authentic try-hard + +In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's. + + * Sartorial hoodie + * Labore viral forage + * Tote bag selvage + * DIY exercitation et id ugh tumblr church-key + +Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr. + +Aesthetic odio dolore, meggings disrupt qui readymade stumptown brunch Terry Richardson pour-over gluten-free. Banksy american apparel in selfies, biodiesel flexitarian organic meh wolf quinoa gentrify banjo kogi. Readymade tofu ex, scenester dolor umami fingerstache occaecat fashion axe Carles jean shorts minim. Keffiyeh fashion axe nisi Godard mlkshk dolore. Lomo you probably haven't heard of them eu non, Odd Future Truffaut pug keytar meggings McSweeney's Pinterest cred. Etsy literally aute esse, eu bicycle rights qui meggings fanny pack. Gentrify leggings pug flannel duis. + +## Forage occaecat cardigan qui + +Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole. + +> Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache. + +Tote bag asymmetrical elit sunt. Occaecat authentic Marfa, hella McSweeney's next level irure veniam master cleanse. Sed hoodie letterpress artisan wolf leggings, 3 wolf moon commodo ullamco. Anim occupy ea labore Terry Richardson. Tofu ex master cleanse in whatever pitchfork banh mi, occupy fugiat fanny pack Austin authentic. Magna fugiat 3 wolf moon, labore McSweeney's sustainable vero consectetur. Gluten-free disrupt enim, aesthetic fugiat jean shorts trust fund keffiyeh magna try-hard. + +## Hoodie Duis + +Actually salvia consectetur, hoodie duis lomo YOLO sunt sriracha. Aute pop-up brunch farm-to-table odio, salvia irure occaecat. Sriracha small batch literally skateboard. Echo Park nihil hoodie, aliquip forage artisan laboris. Trust fund reprehenderit nulla locavore. Stumptown raw denim kitsch, keffiyeh nulla twee dreamcatcher fanny pack ullamco 90's pop-up est culpa farm-to-table. Selfies 8-bit do pug odio. + +### Thundercats Ho! + +Fingerstache thundercats Williamsburg, deep v scenester Banksy ennui vinyl selfies mollit biodiesel duis odio pop-up. Banksy 3 wolf moon try-hard, sapiente enim stumptown deep v ad letterpress. Squid beard brunch, exercitation raw denim yr sint direct trade. Raw denim narwhal id, flannel DIY McSweeney's seitan. Letterpress artisan bespoke accusamus, meggings laboris consequat Truffaut qui in seitan. Sustainable cornhole Schlitz, twee Cosby sweater banh mi deep v forage letterpress flannel whatever keffiyeh. Sartorial cred irure, semiotics ethical sed blue bottle nihil letterpress. + +Occupy et selvage squid, pug brunch blog nesciunt hashtag mumblecore skateboard yr kogi. Ugh small batch swag four loko. Fap post-ironic qui tote bag farm-to-table american apparel scenester keffiyeh vero, swag non pour-over gentrify authentic pitchfork. Schlitz scenester lo-fi voluptate, tote bag irony bicycle rights pariatur vero Vice freegan wayfarers exercitation nisi shoreditch. Chambray tofu vero sed. Street art swag literally leggings, Cosby sweater mixtape PBR lomo Banksy non in pitchfork ennui McSweeney's selfies. Odd Future Banksy non authentic. + +Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam. diff --git a/docs/_posts/2013-01-05-markup-title-with-markup.md b/docs/_posts/2013-01-05-markup-title-with-markup.md new file mode 100644 index 0000000..2ce5f1b --- /dev/null +++ b/docs/_posts/2013-01-05-markup-title-with-markup.md @@ -0,0 +1,18 @@ +--- +title: "Markup: Title *with* **Markdown**" +categories: + - Markdown +tags: + - css + - html + - title +last_modified_at: 2017-03-09T12:25:10-05:00 +--- + +Using Markdown in the title should have no adverse effect on the layout or functionality. + +**`page.title` example:** + +```yaml +title: "Markup: Title *with* **Markdown**"" +``` \ No newline at end of file diff --git a/docs/_posts/2013-01-05-markup-title-with-special-characters.md b/docs/_posts/2013-01-05-markup-title-with-special-characters.md new file mode 100644 index 0000000..1b5eceb --- /dev/null +++ b/docs/_posts/2013-01-05-markup-title-with-special-characters.md @@ -0,0 +1,437 @@ +--- +title: "Markup: Title with Special --- Characters" +categories: + - Markup +tags: + - html + - markup + - post + - title +last_modified_at: 2017-03-09T12:23:27-05:00 +--- + +Putting special characters in the title should have no adverse effect on the layout or functionality. + +The title above has none-breaking spaces before and after the m-dash. + +```markdown + ---  +``` + +## Latin Character Tests + +This is a test to see if the fonts used in this theme support basic Latin characters. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ ! + + “ + + # + + $ + + % + + & + + ‘ + + ( + + ) + + * +
+ + + + , + + – + + . + + / + + + 1 + + 2 + + 3 + + 4 +
+ 5 + + 6 + + 7 + + 8 + + 9 + + : + + ; + + > + + = + + < +
+ ? + + @ + + A + + B + + C + + D + + E + + F + + G + + H +
+ I + + J + + K + + L + + M + + N + + O + + P + + Q + + R +
+ S + + T + + U + + V + + W + + X + + Y + + Z + + [ + +
+ ] + + ^ + + _ + + ` + + a + + b + + c + + d + + e + + f +
+ g + + h + + i + + j + + k + + l + + m + + n + + o + + p +
+ q + + r + + s + + t + + u + + v + + w + + x + + y + + z +
+ { + + | + + } + + ~ + + + + + + +
\ No newline at end of file diff --git a/docs/_posts/2013-01-09-markup-text-alignment.md b/docs/_posts/2013-01-09-markup-text-alignment.md new file mode 100644 index 0000000..bc50755 --- /dev/null +++ b/docs/_posts/2013-01-09-markup-text-alignment.md @@ -0,0 +1,111 @@ +--- +title: "Markup: Text Alignment and Transformations" +categories: + - Markup +tags: + - alignment + - content + - css + - markup +last_modified_at: 2017-03-09T12:17:03-05:00 +--- + +Sample text to demonstrate alignment and transformation classes. + +Easily realign text with alignment classes via HTML: + +``` +

Left aligned text.

+

Center aligned text.

+

Right aligned text.

+

Justified text.

+

No wrap text.

+``` + +Or with Kramdown and [inline attribute lists](https://kramdown.gettalong.org/syntax.html#inline-attribute-lists): + +```markdown +Left aligned text. +{: .text-left} + +Center aligned text. +{: .text-center} + +Right aligned text. +{: .text-right} + +Justified text. +{: .text-justify} + +No wrap text. +{: .text-nowrap} +``` + +## Default + +This is a paragraph. It should not have any alignment of any kind. It should just flow like you would normally expect. Nothing fancy. Just straight up text, free flowing, with love. Completely neutral and not picking a side or sitting on the fence. It just is. It just freaking is. It likes where it is. It does not feel compelled to pick a side. Leave him be. It will just be better that way. Trust me. + +## Left Aligned + +This is a paragraph. It is left aligned. Because of this, it is a bit more liberal in it's views. It's favorite color is green. Left align tends to be more eco-friendly, but it provides no concrete evidence that it really is. Even though it likes share the wealth evenly, it leaves the equal distribution up to justified alignment. +{: .text-left} + +## Center Aligned + +This is a paragraph. It is center aligned. Center is, but nature, a fence sitter. A flip flopper. It has a difficult time making up its mind. It wants to pick a side. Really, it does. It has the best intentions, but it tends to complicate matters more than help. The best you can do is try to win it over and hope for the best. I hear center align does take bribes. +{: .text-center} + +## Right Aligned + +This is a paragraph. It is right aligned. It is a bit more conservative in it's views. It's prefers to not be told what to do or how to do it. Right align totally owns a slew of guns and loves to head to the range for some practice. Which is cool and all. I mean, it's a pretty good shot from at least four or five football fields away. Dead on. So boss. +{: .text-right} + +## Justify Aligned + +This is a paragraph. It is justify aligned. It gets really mad when people associate it with Justin Timberlake. Typically, justified is pretty straight laced. It likes everything to be in it's place and not all cattywampus like the rest of the aligns. I am not saying that makes it better than the rest of the aligns, but it does tend to put off more of an elitist attitude. +{: .text-justify} + +## No Wrap + +This is a paragraph. It has a no wrap. Beef ribs pig tenderloin filet mignon. Spare ribs leberkas ribeye, burgdoggen fatback tenderloin biltong jowl flank sirloin hamburger bacon brisket. Shoulder bresaola drumstick capicola. Beef ribs prosciutto porchetta beef. +{: .text-nowrap} + +--- + +Transform text with capitalization classes via HTML: + +```html +

Lowercased text.

+

Uppercased text.

+

Capitalized text.

+

Truncated text.

+

Small text.

+``` + +Or with Kramdown: + +```markdown +Lowercased text +{: .text-lowercase} + +Uppercased text +{: .text-uppercase} + +Capitalized text +{: .text-capitalize} +``` + +Lowercased text +{: .text-lowercase} + +Uppercased text +{: .text-uppercase} + +Capitalized text +{: .text-capitalize} + +This is a truncated paragraph of text. Bacon ipsum dolor amet shoulder jowl tail andouille fatback tongue. Ham porchetta kielbasa pork pork chop, tenderloin hamburger meatball. Picanha porchetta swine, brisket salami pork belly burgdoggen. Cupim swine pastrami, chuck tri-tip pork belly jowl shankle alcatra brisket capicola ball tip prosciutto beef ribs doner. Tri-tip bacon ground round pork chop burgdoggen leberkas pork strip steak beef corned beef salami. +{: .text-truncate} + +Small text +{: .small} diff --git a/docs/_posts/2013-01-10-markup-image-alignment.md b/docs/_posts/2013-01-10-markup-image-alignment.md new file mode 100644 index 0000000..60e6293 --- /dev/null +++ b/docs/_posts/2013-01-10-markup-image-alignment.md @@ -0,0 +1,89 @@ +--- +title: "Markup: Image Alignment" +categories: + - Markup +tags: + - alignment + - captions + - content + - css + - image + - markup +last_modified_at: 2017-03-09T11:15:57-05:00 +--- + +The best way to demonstrate the ebb and flow of the various image positioning options is to nestle them snuggly among an ocean of words. Grab a paddle and let's get started. + +Assign classes with HTML: + +```html + + + +``` + +Or use Kramdown and [inline attribute lists](https://kramdown.gettalong.org/syntax.html#inline-attribute-lists): + +```markdown +![left-aligned-image](image.jpg){: .align-left} +![center-aligned-image](image.jpg){: .align-center} +![right-aligned-image](image.jpg){: .align-right} +``` + +![image-center]({{ site.url }}{{ site.baseurl }}/assets/images/image-alignment-580x300.jpg){: .align-center} + +The image should be **centered** with the `.align-center` class. + +![image-left]({{ site.url }}{{ site.baseurl }}/assets/images/image-alignment-150x150.jpg){: .align-left} The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is **left aligned** with the `.align-left` class. + +As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we'll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it's thing. Mission accomplished! + +And now for a **massively large image** --- it has **no alignment**. + +![no-alignment]({{ site.url }}{{ site.baseurl }}/assets/images/image-alignment-1200x4002.jpg) + +The image above, though `1200px` wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content. + +![image-right]({{ site.url }}{{ site.baseurl }}/assets/images/image-alignment-300x200.jpg){: .align-right} + +And now we're going to shift things to the **right** with the `.align-right` class. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there --- Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently. + +In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah --- Just like that. It never felt so good to be right. + +And just when you thought we were done, we're going to do them all over again with captions! + +
+ +
Look at 580 x 300 getting some love.
+
+ +The figure above happens to be **centered**. The caption also has a link in it, just to see if it does anything funky. + +
+ +
Itty-bitty caption.
+
+ +The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is **left aligned** with the `.align-left` class. + +As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we'll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it's thing. Mission accomplished! + +And now for a massively large image with **no alignment**. + +
+ +
Massive image comment for your eyeballs.
+
+ +The figure element above has an inline style of `width: 1200px` set which should case it to break outside of the normal content flow. + +
+ +
Feels good to be on the right.
+
+ +And now we're going to shift things to the **right** with the `.align-right` class. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there --- Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently. + +In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah --- Just like that. It never felt so good to be right. + +And that's a wrap, yo! You survived the tumultuous waters of alignment. Image alignment achievement unlocked! \ No newline at end of file diff --git a/docs/_posts/2013-01-11-markup-html-elements-and-formatting.md b/docs/_posts/2013-01-11-markup-html-elements-and-formatting.md new file mode 100644 index 0000000..11a130b --- /dev/null +++ b/docs/_posts/2013-01-11-markup-html-elements-and-formatting.md @@ -0,0 +1,177 @@ +--- +title: "Markup: HTML Elements and Formatting" +sub_title: "The common elements" +categories: + - Markup +elements: + - content + - css + - formatting + - html + - markup +last_modified_at: 2017-03-09T10:55:59-05:00 +--- + +A variety of common HTML elements to demonstrate the theme's stylesheet and verify they have been styled appropriately. + +# Header one + +## Header two + +### Header three + +#### Header four + +##### Header five + +###### Header six + +## Blockquotes + +Single line blockquote: + +> Stay hungry. Stay foolish. + +Multi line blockquote with a cite reference: + +> People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things. + +Steve Jobs --- Apple Worldwide Developers' Conference, 1997 +{: .small} + +## Tables + +| Employee | Salary | | +| -------- | ------ | ------------------------------------------------------------ | +| [John Doe](#) | $1 | Because that's all Steve Jobs needed for a salary. | +| [Jane Doe](#) | $100K | For all the blogging she does. | +| [Fred Bloggs](#) | $100M | Pictures are worth a thousand words, right? So Jane × 1,000. | +| [Jane Bloggs](#) | $100B | With hair like that?! Enough said. | + +| Header1 | Header2 | Header3 | +|:--------|:-------:|--------:| +| cell1 | cell2 | cell3 | +| cell4 | cell5 | cell6 | +|-----------------------------| +| cell1 | cell2 | cell3 | +| cell4 | cell5 | cell6 | +|=============================| +| Foot1 | Foot2 | Foot3 | + +## Definition Lists + +Definition List Title +: Definition list division. + +Startup +: A startup company or startup is a company or temporary organization designed to search for a repeatable and scalable business model. + +#dowork +: Coined by Rob Dyrdek and his personal body guard Christopher "Big Black" Boykins, "Do Work" works as a self motivator, to motivating your friends. + +Do It Live +: I'll let Bill O'Reilly [explain](https://www.youtube.com/watch?v=O_HyZ5aW76c "We'll Do It Live") this one. + +## Unordered Lists (Nested) + + * List item one + * List item one + * List item one + * List item two + * List item three + * List item four + * List item two + * List item three + * List item four + * List item two + * List item three + * List item four + +## Ordered List (Nested) + + 1. List item one + 1. List item one + 1. List item one + 2. List item two + 3. List item three + 4. List item four + 2. List item two + 3. List item three + 4. List item four + 2. List item two + 3. List item three + 4. List item four + +## Address element + +
+ 1 Infinite Loop
Cupertino, CA 95014
United States +
+ +## Anchor element (aka. Link) + +This is an example of a [link](http://apple.com "Apple"). + +## Abbreviation element + +The abbreviation CSS stands for "Cascading Style Sheets". + +*[CSS]: Cascading Style Sheets + +## Cite element + +"Code is poetry." ---Automattic + +## Code element + +You will learn later on in these tests that `word-wrap: break-word;` will be your best friend. + +## Strike element + +This element will let you strikeout text. + +## Emphasize element + +The emphasize element should _italicize_ text. + +## Insert element + +This element should denote inserted text. + +## Keyboard element + +This scarcely known element emulates keyboard text, which is usually styled like the `` element. + +## Preformatted element + +This element styles large blocks of code. + +
+.post-title {
+	margin: 0 0 5px;
+	font-weight: bold;
+	font-size: 38px;
+	line-height: 1.2;
+	and here's a line of some really, really, really, really long text, just to see how the PRE element handles it and to find out how it overflows;
+}
+
+ +## Quote element + +Developers, developers, developers… –Steve Ballmer + +## Strong element + +This element shows **bold text**. + +## Subscript element + +Getting our science styling on with H2O, which should push the "2" down. + +## Superscript element + +Still sticking with science and Isaac Newton's E = MC2, which should lift the 2 up. + +## Variable element + +This allows you to denote variables. \ No newline at end of file diff --git a/docs/_posts/2013-08-16-markup-syntax-highlighting.md b/docs/_posts/2013-08-16-markup-syntax-highlighting.md new file mode 100644 index 0000000..8d8ae90 --- /dev/null +++ b/docs/_posts/2013-08-16-markup-syntax-highlighting.md @@ -0,0 +1,123 @@ +--- +title: "Markup: Syntax Highlighting" +excerpt: "Post displaying the various ways one can highlight code blocks with Jekyll. Some options include standard Markdown, GitHub Flavored Markdown, and Jekyll's `{% highlight %}` tag." +last_modified_at: 2017-03-09T10:27:01-05:00 +tags: + - code + - syntax highlighting +--- + +Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.[^1] + +[^1]: + +## GFM Code Blocks + +GitHub Flavored Markdown [fenced code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/) are supported by default with Jekyll. You may need to update your `_config.yml` file to enable them if you're using an older version. + +```yaml +kramdown: + input: GFM +``` + +Here's an example of a CSS code snippet written in GFM: + +```css +#container { + float: left; + margin: 0 -240px 0 0; + width: 100%; +} +``` + +Yet another code snippet for demonstration purposes: + +```ruby +module Jekyll + class TagIndex < Page + def initialize(site, base, dir, tag) + @site = site + @base = base + @dir = dir + @name = 'index.html' + self.process(@name) + self.read_yaml(File.join(base, '_layouts'), 'tag_index.html') + self.data['tag'] = tag + tag_title_prefix = site.config['tag_title_prefix'] || 'Tagged: ' + tag_title_suffix = site.config['tag_title_suffix'] || '–' + self.data['title'] = "#{tag_title_prefix}#{tag}" + self.data['description'] = "An archive of posts tagged #{tag}." + end + end +end +``` + +## Jekyll Highlight Liquid Tag + +Jekyll also has built-in support for syntax highlighting of code snippets using either Rouge or Pygments, using a dedicated Liquid tag as follows: + +```liquid +{% raw %}{% highlight scss %} +.highlight { + margin: 0; + padding: 1em; + font-family: $monospace; + font-size: $type-size-7; + line-height: 1.8; +} +{% endhighlight %}{% endraw %} +``` + +And the output will look like this: + +{% highlight scss %} +.highlight { + margin: 0; + padding: 1em; + font-family: $monospace; + font-size: $type-size-7; + line-height: 1.8; +} +{% endhighlight %} + +Here's an example of a code snippet using the Liquid tag and `linenos` enabled. + +{% highlight html linenos %} +{% raw %}{% endraw %} +{% endhighlight %} + +## Code Blocks in Lists + +Indentation matters. Be sure the indent of the code block aligns with the first non-space character after the list item marker (e.g., `1.`). Usually this will mean indenting 3 spaces instead of 4. + +1. Do step 1. +2. Now do this: + + ```ruby + def print_hi(name) + puts "Hi, #{name}" + end + print_hi('Tom') + #=> prints 'Hi, Tom' to STDOUT. + ``` + +3. Now you can do this. + +## GitHub Gist Embed + +GitHub Gist embeds can also be used: + +```html + +``` + +Which outputs as: + + diff --git a/docs/_sass/basically-basic.scss b/docs/_sass/basically-basic.scss new file mode 100644 index 0000000..c95ab41 --- /dev/null +++ b/docs/_sass/basically-basic.scss @@ -0,0 +1,37 @@ +/*! + * Basically Basic Jekyll Theme 0.0.1 + * Copyright 2017 Michael Rose - mademistakes | @mmistakes + * Free for personal and commercial use under the MIT license + * https://github.com/mmistakes/jekyll-theme-basically-basic/blob/master/LICENSE.md +*/ + +/* Mixins and functions */ +@import 'basically-basic/vendor/susy'; +@import 'basically-basic/vendor/breakpoint'; +@include breakpoint-set('to ems', true); +@import 'basically-basic/mixins'; + +/* Variables */ +@import 'basically-basic/variables'; + +/* Core CSS */ +@import 'basically-basic/reset'; +@import 'basically-basic/base'; +@import 'basically-basic/layout'; +@import 'basically-basic/tables'; + +/* Components */ +@import 'basically-basic/global'; +@import 'basically-basic/sidebar'; +@import 'basically-basic/navigation'; +@import 'basically-basic/footer'; +@import 'basically-basic/entries'; +@import 'basically-basic/buttons'; +@import 'basically-basic/icons'; +@import 'basically-basic/intro'; +@import 'basically-basic/navicons'; +@import 'basically-basic/contact-lists'; +@import 'basically-basic/syntax-highlighting'; + +/* Utility classes */ +@import 'basically-basic/utilities'; diff --git a/docs/_sass/basically-basic/_base.scss b/docs/_sass/basically-basic/_base.scss new file mode 100644 index 0000000..cec266f --- /dev/null +++ b/docs/_sass/basically-basic/_base.scss @@ -0,0 +1,110 @@ +/* ========================================================================== + Base elements + ========================================================================== */ + +html { + @include fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size); +} + +body { + background: $background-color; + color: $text-color; +} + +blockquote, +q { + color: tint($text-color, 40%); + font-style: italic; + + cite { + font-size: 80%; + font-style: normal; + font-weight: bold; + + &::before { + padding-right: 0.25rem; + content: '\2014'; + } + } +} + +code, +kbd, +samp, +pre { + font-family: $monospace-font-family; +} + +kbd { + display: inline-block; + margin: 0 0.125em; + padding: 0.125em 0.5em; + border: 1px solid rgb(204, 204, 204); + border-radius: 3px; + background-color: rgb(247, 247, 247); + text-shadow: 0 1px 0 #fff; + box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px #fff; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: $headline-font-family; + text-rendering: optimizeLegibility; /* enable common ligatures and kerning */ +} + +h1 { + @include fluid-type($min-vw, $max-vw, $h1-min, $h1-max); +} + +h2 { + @include fluid-type($min-vw, $max-vw, $h2-min, $h2-max); +} + +h3 { + @include fluid-type($min-vw, $max-vw, $h3-min, $h3-max); +} + +h4 { + @include fluid-type($min-vw, $max-vw, $h4-min, $h4-max); +} + +h5 { + @include fluid-type($min-vw, $max-vw, $h5-min, $h5-max); +} + +h6 { + @include fluid-type($min-vw, $max-vw, $h6-min, $h6-max); +} + +dt { + font-weight: bold; + + &:not(:first-child) { + margin-top: 1rem; + } +} + +dd { + margin: 0; +} + +pre { + @include fluid-type($min-vw, $max-vw, 12px, 14px); +} + +figcaption { + margin: 0.5rem 0; + font-size: 80%; +} + +a { + color: $accent-color; + + &:hover { + color: shade($accent-color, 25%); + } +} diff --git a/docs/_sass/basically-basic/_buttons.scss b/docs/_sass/basically-basic/_buttons.scss new file mode 100644 index 0000000..9502d32 --- /dev/null +++ b/docs/_sass/basically-basic/_buttons.scss @@ -0,0 +1,39 @@ +/* ========================================================================== + Buttons + ========================================================================== */ + +.btn { + display: inline-block; + padding: 0.5em 1em; + border: 0; + border-radius: $border-radius; + background-color: $accent-color; + color: #fff; + font-weight: bold; + text-align: center; + text-decoration: none; + cursor: pointer; + + &:hover { + background-color: tint($accent-color, 20%); + color: #fff; + } + + &:focus { + background-color: shade($accent-color, 20%); + } + + .icon { + margin-right: 0.5em; + } + + /* block button fills width of parent container */ + &--block { + display: block; + width: 100%; + + + .btn--block { + margin-top: 1rem; + } + } +} diff --git a/docs/_sass/basically-basic/_contact-lists.scss b/docs/_sass/basically-basic/_contact-lists.scss new file mode 100644 index 0000000..2bb5912 --- /dev/null +++ b/docs/_sass/basically-basic/_contact-lists.scss @@ -0,0 +1,11 @@ +/* ========================================================================== + Contact lists + ========================================================================== */ + +.contact-list { + @include list-unstyled; + + .icon { + margin-right: 0.25em; + } +} diff --git a/docs/_sass/basically-basic/_entries.scss b/docs/_sass/basically-basic/_entries.scss new file mode 100644 index 0000000..83947cc --- /dev/null +++ b/docs/_sass/basically-basic/_entries.scss @@ -0,0 +1,155 @@ +/* ========================================================================== + Entries (Posts, collection documents, etc.) + ========================================================================== */ + +.entry { + @include clearfix(); + margin-bottom: 2rem; + padding-bottom: 2rem; + + &:not(:last-child) { + border-bottom: 1px solid $border-color; + } + + a { + color: inherit; + } +} + +.entry-title { + @include fluid-type($min-vw, $max-vw, 18px, 24px); + margin-bottom: 0.5rem; + color: tint($text-color, 25%); + line-height: inherit; + + a { + text-decoration: none; + } +} + +.entry-meta { + @include fluid-type($min-vw, $max-vw, 12px, 16px); + margin-bottom: 1rem; + + a { + color: inherit; + } + + .byline-item { + + &:not(:first-child) { + margin-left: 1.5rem; + } + } + + .icon { + margin-right: 0.5em; + fill: $accent-color; + } +} + +/* + Entry list + ========================================================================== */ + +.entries { + + .entry-title { + word-wrap: break-word; /* break long words that could overflow */ + + a:hover { + color: $accent-color; + } + } + + .entry-excerpt { + @include breakpoint($medium) { + @include span(11 of 16); + } + + /* normalize font sizes */ + > * { + font-size: 1em; + } + + /* remove space after last child element */ + > *:last-child { + margin-bottom: 0; + } + } + + .entry-content { + @include breakpoint($medium) { + @include span(11 of 16); + } + + /* remove space after last child element */ + > *:last-child { + margin-bottom: 0; + } + } + + .entry-meta { + @include breakpoint($medium) { + @include span(5 of 16 last); + @include prefix(1 of 16); + } + + ul { + @include list-unstyled(); + + @include breakpoint(max-width $medium) { + li { + display: inline-block; + margin-right: 1.5rem; + } + } + + @include breakpoint($medium) { + li { + padding-bottom: 0.5rem; + } + } + } + } + + > .summary { + + > p:first-child { + font-size: 1.125em; + line-height: 1.625; + } + } +} + +.entry-content { + + > p:first-child { + font-size: 1.125em; + line-height: 1.625; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + color: tint($text-color, 25%); + } +} + +/* Footnotes */ +.footnotes { + margin: 2rem 0; + padding-top: 1rem; + border-top: 1px solid $border-color; + font-size: 80%; +} + +/* Read more link */ +.more-link { + font-size: 75%; + font-weight: bold; + text-decoration: none; +} diff --git a/docs/_sass/basically-basic/_footer.scss b/docs/_sass/basically-basic/_footer.scss new file mode 100644 index 0000000..9bd2cb0 --- /dev/null +++ b/docs/_sass/basically-basic/_footer.scss @@ -0,0 +1,13 @@ +/* ========================================================================== + Footer + ========================================================================== */ + +.site-footer { + margin-top: 4rem; + color: tint($text-color, 40%); + font-size: 80%; +} + +.copyright { + font-family: $monospace-font-family; +} diff --git a/docs/_sass/basically-basic/_global.scss b/docs/_sass/basically-basic/_global.scss new file mode 100644 index 0000000..abb3f50 --- /dev/null +++ b/docs/_sass/basically-basic/_global.scss @@ -0,0 +1,36 @@ +/* ========================================================================== + Site-wide + ========================================================================== */ + +.site-title { + @include fluid-type($min-vw, $max-vw, 20px, 24px); + margin: 0; + padding: 1.8125rem 1rem; + padding-right: calc(10vw + #{$navicon-width}); /* make room for sidebar toggle */ + font-family: $base-font-family; + font-weight: bold; + line-height: 1; + + @include breakpoint($medium) { + padding-left: 2rem; + } + + @include breakpoint($large) { + padding-left: 5vw; + } + + a { + display: flex; + align-items: center; + min-height: $site-image-height; + color: $text-color; + text-decoration: none; + } +} + +.site-logo { + width: $site-image-width; + height: $site-image-height; + margin-right: 0.5rem; + border-radius: 50%; +} diff --git a/docs/_sass/basically-basic/_icons.scss b/docs/_sass/basically-basic/_icons.scss new file mode 100644 index 0000000..7df5282 --- /dev/null +++ b/docs/_sass/basically-basic/_icons.scss @@ -0,0 +1,43 @@ +/* ========================================================================== + Icons + ========================================================================== */ + +.icon { + display: inline-block; + position: relative; + top: -0.05em; /* fine-tune alignment */ + width: 1em; + height: 1em; + line-height: 1; + vertical-align: middle; + fill: currentColor; + + $icons: ( + (bitbucket, #205081), + (codepen, #000), + (dribbble, #ea4c89), + (email, #000), + (facebook, #3b5998), + (flickr, #0063dc), + (github, #181717), + (gitlab, #e24329), + (googleplus, #dc4e41), + (instagram, #e4405f), + (lastfm, #d51007), + (linkedin, #0077b5), + (pinterest, #bd081c), + (rss, #ffa500), + (soundcloud, #f30), + (stackoverflow, #fe7a16), + (tumblr, #36465d), + (twitter, #1da1f2), + (xing, #005a5f), + (youtube, #cd201f) + ); + + @each $icon, $color in $icons { + &--#{$icon} { + fill: $color; + } + } +} diff --git a/docs/_sass/basically-basic/_intro.scss b/docs/_sass/basically-basic/_intro.scss new file mode 100644 index 0000000..77fe9bc --- /dev/null +++ b/docs/_sass/basically-basic/_intro.scss @@ -0,0 +1,65 @@ +/* ========================================================================== + Page intro + ========================================================================== */ + +.intro { + margin: 1rem 0; + padding-top: 2rem; + padding-bottom: 2rem; +} + +.intro-image { + position: relative; + margin-top: -3rem; /* compensate for intro top margin */ + margin-bottom: 3rem; + + &::before { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: rgba($accent-color, 0.25); + content: ''; + } + + img { + width: 100%; + } +} + +.intro-text { + + /* remove space after last child element */ + > *:last-child { + margin-bottom: 0; + } +} + +.intro-title { + @include fluid-type($min-vw, $max-vw, 26px, 80px); + margin-bottom: 1rem; + color: tint($text-color, 25%); + line-height: 1; +} + +.intro-subtitle { + @include fluid-type($min-vw, $max-vw, 18px, 28px); + font-style: italic; +} + +.intro-actions { + @include list-unstyled; + + li { + display: inline-block; + } +} + +.intro-more { + + > p:first-child { + font-size: 1.125em; + line-height: 1.625; + } +} diff --git a/docs/_sass/basically-basic/_layout.scss b/docs/_sass/basically-basic/_layout.scss new file mode 100644 index 0000000..79c0996 --- /dev/null +++ b/docs/_sass/basically-basic/_layout.scss @@ -0,0 +1,178 @@ +/* ========================================================================== + Layout + ========================================================================== */ + +.wrapper { + min-height: 100vh; + transition: $global-transition; +} + +.intro, +main { + + > .inner { + padding: 0 0.5rem; + + @include breakpoint($small) { + padding-right: 1rem; + padding-left: 1rem; + } + + @include breakpoint($medium) { + padding-right: 2rem; + padding-left: 2rem; + } + + @include breakpoint($large) { + padding-right: 3rem; + padding-left: 3rem; + } + + @include breakpoint($xlarge) { + padding-right: 4rem; + padding-left: 4rem; + } + } +} + +main { + + section { + @include container; + } +} + +.inner { + max-width: $large; +} + +/* + Layout specific adjustments + ========================================================================== */ + +.layout--post, +.layout--page { + + .entry-content { + + @include breakpoint($large) { + width: span(14 of 16); + } + } +} + +.layout--about { + + .entry-wrap { + display: flex; + flex-wrap: wrap; + + @include breakpoint($medium) { + flex-wrap: nowrap; + } + } + + .entry-content { + + @include breakpoint($medium) { + flex: 1; + } + } + + .entry-sidebar { + order: -1; + -ms-flex-order: -1; + + @include breakpoint($medium) { + order: initial; + -ms-flex-order: initial; + } + + .author-picture { + margin: 0 0 2rem; + border-radius: 2 * $border-radius; + + @include breakpoint($medium) { + margin: 0 0 0 2rem; + } + } + } +} + +.layout--cv { + + .entries { + + .entry-header { + + @include breakpoint($medium) { + @include span(5 of 16); + @include suffix(1 of 16); + + /* remove space after last child element */ + > *:last-child { + margin-bottom: 0; + } + } + } + + .entry-content { + @include breakpoint($medium) { + @include span(11 of 16 last); + } + } + } + + .entry { + + a { + color: $accent-color; + } + + address { + font-style: normal; + } + + .title, + .position, + .institution, + .language { + margin-bottom: 0; + } + + .date { + margin-bottom: 1rem; + color: tint($text-color, 40%); + font-family: $monospace-font-family; + font-size: 80%; + } + + .courses-title, + .awarder, + .publisher, + .level { + margin: 1rem 0 0; + } + + .courses, + .keywords { + @include list-unstyled; + } + } + + .taxonomy { + + + .taxonomy { + margin-top: 0.5rem; + } + + .title { + display: inline-block; + margin-right: 1rem; + } + + .keywords { + display: inline-block; + } + } +} diff --git a/docs/_sass/basically-basic/_mixins.scss b/docs/_sass/basically-basic/_mixins.scss new file mode 100644 index 0000000..71f0610 --- /dev/null +++ b/docs/_sass/basically-basic/_mixins.scss @@ -0,0 +1,7 @@ +@import 'mixins/color'; +@import 'mixins/clearfix'; +@import 'mixins/fluid-type'; +@import 'mixins/float'; +@import 'mixins/image'; +@import 'mixins/lists'; +@import 'mixins/text-truncate'; diff --git a/docs/_sass/basically-basic/_navicons.scss b/docs/_sass/basically-basic/_navicons.scss new file mode 100644 index 0000000..b21d964 --- /dev/null +++ b/docs/_sass/basically-basic/_navicons.scss @@ -0,0 +1,144 @@ +/* ========================================================================== + Navicons + ========================================================================== */ + +.navicon-button { + display: inline-block; + position: relative; + padding: 1.8125rem 1rem; + transition: $navicon-duration / 2; + background-color: $navicon-nav-bg-close; + cursor: pointer; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + user-select: none; + + @include breakpoint($medium) { + margin-right: 2rem; + } + + @include breakpoint($large) { + margin-right: 5vw; + } + + &.open { + background-color: $navicon-nav-bg-open; + } + + .navicon::before, + .navicon::after { + transition-duration: $navicon-duration / 2; + } + + &:hover { + transition-duration: $navicon-duration; + + .navicon::before, + .navicon::after { + transition-duration: $navicon-duration / 2; + } + + .navicon::before { top: (2.5 * $navicon-height); } + .navicon::after { top: (-2.5 * $navicon-height); } + } +} + +.navicon { + position: relative; + width: $navicon-width; + height: $navicon-height; + transition-duration: $navicon-duration; + border-radius: $navicon-width; + background: $navicon-content-bg; + + &::before, + &::after { + display: block; + position: absolute; + width: $navicon-width; + height: $navicon-height; + transition-duration: $navicon-duration $navicon-duration / 2; + border-radius: $navicon-width; + background: $navicon-content-bg; + content: ''; + } + + &::before { top: (2 * $navicon-height); } + &::after { top: (-2 * $navicon-height); } +} + +.open:not(.steps) .navicon::before, +.open:not(.steps) .navicon::after { + top: 0 !important; +} + +.open { + transform: scale($navicon-toggled-size); + + .navicon::before, + .navicon::after { + transition-duration: $navicon-duration; + } + + /* Arrows */ + &.larr .navicon, + &.rarr .navicon, + &.uarr .navicon { + + &::before, + &::after { + width: (0.6 * $navicon-width); + } + + &::before { + transform: rotate(35deg); + transform-origin: left top; + } + + &::after { + transform: rotate(-35deg); + transform-origin: left bottom; + } + } + + &.uarr { + transform: scale($navicon-toggled-size) rotate(90deg); + } + + &.rarr .navicon { + + &::before { + transform: translate3d(1em, 0, 0) rotate(-35deg); + transform-origin: right top; + } + + &::after { + transform: translate3d(1em, 0, 0) rotate(35deg); + transform-origin: right bottom; + } + } + + /* × and + */ + /* &.plus,*/ + /* &.x {*/ + /* .navicon {*/ + /* background: transparent;*/ + + /* &::before {*/ + /* -ms-transform: rotate(-45deg);*/ + /* transform: rotate(-45deg);*/ + /* }*/ + + /* &::after {*/ + /* -ms-transform: rotate(45deg);*/ + /* transform: rotate(45deg);*/ + /* }*/ + /* }*/ + /* }*/ + + /* &.plus {*/ + /* -ms-transform: scale($navicon-toggled-size) rotate(45deg);*/ + /* transform: scale($navicon-toggled-size) rotate(45deg);*/ + /* }*/ +} diff --git a/docs/_sass/basically-basic/_navigation.scss b/docs/_sass/basically-basic/_navigation.scss new file mode 100644 index 0000000..4e52b2d --- /dev/null +++ b/docs/_sass/basically-basic/_navigation.scss @@ -0,0 +1,51 @@ +/* ========================================================================== + Navigation + ========================================================================== */ + +.menu { + @include list-unstyled; + + a { + color: inherit; + text-decoration: none; + } +} + +/* + Paginator + ========================================================================== */ + +.pager { + @include clearfix(); + margin-bottom: 2rem; + + ul { + @include list-unstyled; + display: flex; + + > li { + flex: 1; + justify-content: space-between; + -ms-flex-pack: justify; + } + + li + li { + margin-left: 0.125em; + } + } + + a { + display: block; + padding: 1em; + border-radius: $border-radius; + background-color: $accent-color; + color: #fff; + font-weight: bold; + text-align: center; + text-decoration: none; + + &:hover { + background-color: tint($accent-color, 20%); + } + } +} diff --git a/docs/_sass/basically-basic/_reset.scss b/docs/_sass/basically-basic/_reset.scss new file mode 100644 index 0000000..2fface1 --- /dev/null +++ b/docs/_sass/basically-basic/_reset.scss @@ -0,0 +1,522 @@ +/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ + +/** + * 1. Change the default font family in all browsers (opinionated). + * 2. Prevent adjustments of font size after orientation changes in + * IE on Windows Phone and in iOS. + */ + +/* Document + ========================================================================== */ + +html { + font-family: $base-font-family; /* 1 */ + box-sizing: border-box; + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +*, +*::before, +*::after { + box-sizing: inherit; +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers (opinionated). + */ + +body { + margin: 0; + line-height: 1.5; +} + +/** + * Add the correct display in IE 9-. + */ + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +/** + * Remove margin padding. + * + */ + +h1, +h2, +h3, +h4, +h5, +h6, +p, +pre, +blockquote, +dl, +table, +address { + margin-top: 0; + margin-bottom: 1.5rem; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; +} + +/** + * Adjust heading line-height + * + */ + +h1, +h2, +h3, +h4 { + line-height: 1.2; +} + +/* Grouping content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + * 1. Add the correct display in IE. + */ + +figcaption, +figure, +main { /* 1 */ + display: block; +} + +/** + * Reset the margins. + */ + +figure { + margin: 1rem 0 1.5rem; +} + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + height: 0; /* 1 */ + overflow: visible; /* 2 */ + box-sizing: content-box; /* 1 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + * 3. Add scrollbars to wide code blocks. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ + overflow-x: auto; /* 3 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * 1. Remove the gray background on active links in IE 10. + * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. + */ + +a { + background-color: transparent; /* 1 */ + -webkit-text-decoration-skip: objects; /* 2 */ +} + +/** + * Remove the outline on focused links when they are also active or hovered + * in all browsers (opinionated). + */ + +a:active, +a:hover { + outline-width: 0; +} + +/** + * 1. Remove the bottom border in Firefox 39-. + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Prevent the duplicate application of `bolder` by the next rule in Safari 6. + */ + +b, +strong { + font-weight: inherit; + font-weight: bolder; /* Add the correct font weight in Chrome, Edge, and Safari. */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font style in Android 4.3-. + */ + +dfn { + font-style: italic; +} + +/** + * Add the correct background and color in IE 9-. + */ + +mark { + background-color: #ff0; + color: #000; +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Change the margin and padding and add a line rule on the left-side in all + * browsers (opinionated). + */ + +blockquote { + margin-right: 0; + margin-left: 0; + padding: 0 1rem; + border-left: solid 0.25rem; + + *:last-child { + margin-bottom: 0; + } +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/** + * Remove margin + */ + +ul, +ol { + margin-top: 0; +} + +/* Embedded content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +audio, +video { + display: inline-block; +} + +/** + * Add the correct display in iOS 4-7. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +img { + /* Responsive images (ensure images don't scale beyond their parents) */ + max-width: 100%; /* part 1: Set a maximum relative to the parent*/ + width: auto\9; /* IE7-8 need help adjusting responsive images*/ + height: auto; /* part 2: Scale the height according to the width, otherwise you get stretching*/ + + border-style: none; /* Remove the border on images inside links in IE 10-.*/ + + vertical-align: middle; + -ms-interpolation-mode: bicubic; +} + +/** + * Hide the overflow in IE. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers (opinionated). + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + margin: 0; /* 2 */ + font-family: $base-font-family; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` + * controls in Android 4. + * 2. Correct the inability to style clickable types in iOS and Safari. + */ + +button, +html [type="button"], /* 1 */ +[type="reset"], +[type="submit"] { + -webkit-appearance: button; /* 2 */ +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + padding: 0; + border-style: none; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Change the border, margin, and padding in all browsers (opinionated). + */ + +fieldset { + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; + border: 1px solid #c0c0c0; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + color: inherit; /* 2 */ + white-space: normal; /* 1 */ + box-sizing: border-box; /* 1 */ +} + +/** + * 1. Add the correct display in IE 9-. + * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Remove the default vertical scrollbar in IE. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10-. + * 2. Remove the padding in IE 10-. + */ + +[type="checkbox"], +[type="radio"] { + padding: 0; /* 2 */ + box-sizing: border-box; /* 1 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + outline-offset: -2px; /* 2 */ + -webkit-appearance: textfield; /* 1 */ +} + +/** + * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + font: inherit; /* 2 */ + -webkit-appearance: button; /* 1 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in IE 9-. + * 1. Add the correct display in Edge, IE, and Firefox. + */ + +details, /* 1 */ +menu { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Scripting + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +canvas { + display: inline-block; +} + +/** + * Add the correct display in IE. + */ + +template { + display: none; +} + +/* Hidden + ========================================================================== */ + +/** + * Add the correct display in IE 10-. + */ + +[hidden] { + display: none; +} diff --git a/docs/_sass/basically-basic/_sidebar.scss b/docs/_sass/basically-basic/_sidebar.scss new file mode 100644 index 0000000..7590b93 --- /dev/null +++ b/docs/_sass/basically-basic/_sidebar.scss @@ -0,0 +1,177 @@ +/* ========================================================================== + Sidebar + ========================================================================== */ + +.sidebar { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; + z-index: 150; + pointer-events: none; + + /* page overlay dimmer */ + &::after { + display: block; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + transition: opacity 0.3s cubic-bezier(0, 0, 0.3, 1); + background: rgba($base-color, 0.5); + content: ''; + opacity: 0; + pointer-events: none; + will-change: opacity; + } + + li { + transform: translateX(-1rem); + transition: all 0.5s; + opacity: 0; + + &.is--moved { + transform: translateX(0); + opacity: 1; + } + + /* line hover effect */ + a { + position: relative; + color: $base-color; + + &::before { + display: block; + position: absolute; + top: 50%; + left: -3rem; + width: 0; + height: 1px; + transition: width 0.3s cubic-bezier(0, 0, 0.3, 1); + background-color: $base-color; + content: ''; + } + + &:hover { + color: $accent-color; + } + + &:hover::before { + width: 2.5rem; + } + } + } + + &.is--visible { + transform: translateX(0); + + &::after { + opacity: 1; + pointer-events: auto; + } + + > .inner { + transform: none; + box-shadow: 0 1em 5em 0 rgba(0, 0, 0, 0.125); + } + + &.is--animatable > .inner { + transition: all 330ms ease-out; + } + } + + &.is--animatable > .inner { + transition: all 130ms ease-in; + } + + > .inner { + position: relative; + width: 100%; + max-width: $sidebar-width; + height: 100%; + padding: 1.5em; + transform: translateX(-1 * $sidebar-width); + background-color: $sidebar-background-color; + box-shadow: none; + z-index: 160; + will-change: transform; + overflow-x: hidden; + pointer-events: auto; + + @include breakpoint($medium) { + padding: 3rem; + } + + @include breakpoint($large) { + max-width: (1.5 * $sidebar-width); + transform: translateX(-1.5 * $sidebar-width); + } + } + + .menu { + @include fluid-type($min-vw, $max-vw, 24px, 48px); + position: relative; + margin-bottom: 1.5rem; + padding-bottom: 0.5rem; + font-weight: bold; + line-height: 1; + + a { + display: block; + } + + /* divider line */ + &::after { + position: absolute; + bottom: 0; + width: 1.5em; + height: 1px; + background-color: $base-color; + content: ''; + } + + li { + margin-bottom: 1.5rem; + } + } + + .contact-list { + @include fluid-type($min-vw, $max-vw, 18px, 24px); + margin-top: 0.5rem; + padding-top: 0.5rem; + + li:not(:last-child) { + margin-bottom: 0.5rem; + } + + a { + display: block; + color: $base-color; + text-decoration: none; + } + } +} + +.sidebar-toggle-wrapper { + position: fixed; + top: 0.675rem; + right: 0; + cursor: pointer; + z-index: 10000; + + .toggle { + display: flex; + align-items: center; + color: inherit; + text-decoration: none; + } +} + +.sidebar-toggle-label { + order: 2; + margin-left: 0.5rem; + font-weight: bold; +} diff --git a/docs/_sass/basically-basic/_syntax-highlighting.scss b/docs/_sass/basically-basic/_syntax-highlighting.scss new file mode 100644 index 0000000..eb5d512 --- /dev/null +++ b/docs/_sass/basically-basic/_syntax-highlighting.scss @@ -0,0 +1,127 @@ +/* ========================================================================== + Syntax highlighting + ========================================================================== */ + +.highlight { + padding: 1em; + background-color: $code-background-color; + + pre { + width: 100%; + margin: 0; + } + + table { + margin: 0; + border: 0; + font-size: 1em; + + tr { + border: 0; + } + + td { + padding: 5px; + border: 0; + + /* line numbers gutter */ + &.gutter { + padding-right: 1rem; + } + } + + pre { + margin: 0; + } + } + + /* line numbers */ + .lineno { + color: tint($base-color, 50%); + } + + /* + Solarized Light + http://ethanschoonover.com/solarized + + SOLARIZED HEX ROLE + --------- -------- ------------------------------------------ + base01 #586e75 body text / default code / primary content + base1 #93a1a1 comments / secondary content + base3 #fdf6e3 background + orange #cb4b16 constants + red #dc322f regex, special keywords + blue #22b3eb reserved keywords + cyan #2aa198 strings, numbers + green #859900 operators, other keywords + ========================================================================== */ + + .c { color: #93a1a1; } /* Comment */ + .err { color: #586e75; } /* Error */ + .g { color: #586e75; } /* Generic */ + .k { color: #859900; } /* Keyword */ + .l { color: #586e75; } /* Literal */ + .n { color: #586e75; } /* Name */ + .o { color: #859900; } /* Operator */ + .x { color: #cb4b16; } /* Other */ + .p { color: #586e75; } /* Punctuation */ + .cm { color: #93a1a1; } /* Comment.Multiline */ + .cp { color: #859900; } /* Comment.Preproc */ + .c1 { color: #93a1a1; } /* Comment.Single */ + .cs { color: #859900; } /* Comment.Special */ + .gd { color: #2aa198; } /* Generic.Deleted */ + .ge { color: #586e75; font-style: italic; } /* Generic.Emph */ + .gr { color: #dc322f; } /* Generic.Error */ + .gh { color: #cb4b16; } /* Generic.Heading */ + .gi { color: #859900; } /* Generic.Inserted */ + .go { color: #586e75; } /* Generic.Output */ + .gp { color: #586e75; } /* Generic.Prompt */ + .gs { color: #586e75; font-weight: bold; } /* Generic.Strong */ + .gu { color: #cb4b16; } /* Generic.Subheading */ + .gt { color: #586e75; } /* Generic.Traceback */ + .kc { color: #cb4b16; } /* Keyword.Constant */ + .kd { color: #22b3eb; } /* Keyword.Declaration */ + .kn { color: #859900; } /* Keyword.Namespace */ + .kp { color: #859900; } /* Keyword.Pseudo */ + .kr { color: #22b3eb; } /* Keyword.Reserved */ + .kt { color: #dc322f; } /* Keyword.Type */ + .ld { color: #586e75; } /* Literal.Date */ + .m { color: #2aa198; } /* Literal.Number */ + .s { color: #2aa198; } /* Literal.String */ + .na { color: #586e75; } /* Name.Attribute */ + .nb { color: #b58900; } /* Name.Builtin */ + .nc { color: #22b3eb; } /* Name.Class */ + .no { color: #cb4b16; } /* Name.Constant */ + .nd { color: #22b3eb; } /* Name.Decorator */ + .ni { color: #cb4b16; } /* Name.Entity */ + .ne { color: #cb4b16; } /* Name.Exception */ + .nf { color: #22b3eb; } /* Name.Function */ + .nl { color: #586e75; } /* Name.Label */ + .nn { color: #586e75; } /* Name.Namespace */ + .nx { color: #586e75; } /* Name.Other */ + .py { color: #586e75; } /* Name.Property */ + .nt { color: #22b3eb; } /* Name.Tag */ + .nv { color: #22b3eb; } /* Name.Variable */ + .ow { color: #859900; } /* Operator.Word */ + .w { color: #586e75; } /* Text.Whitespace */ + .mf { color: #2aa198; } /* Literal.Number.Float */ + .mh { color: #2aa198; } /* Literal.Number.Hex */ + .mi { color: #2aa198; } /* Literal.Number.Integer */ + .mo { color: #2aa198; } /* Literal.Number.Oct */ + .sb { color: #93a1a1; } /* Literal.String.Backtick */ + .sc { color: #2aa198; } /* Literal.String.Char */ + .sd { color: #586e75; } /* Literal.String.Doc */ + .s2 { color: #2aa198; } /* Literal.String.Double */ + .se { color: #cb4b16; } /* Literal.String.Escape */ + .sh { color: #586e75; } /* Literal.String.Heredoc */ + .si { color: #2aa198; } /* Literal.String.Interpol */ + .sx { color: #2aa198; } /* Literal.String.Other */ + .sr { color: #dc322f; } /* Literal.String.Regex */ + .s1 { color: #2aa198; } /* Literal.String.Single */ + .ss { color: #2aa198; } /* Literal.String.Symbol */ + .bp { color: #22b3eb; } /* Name.Builtin.Pseudo */ + .vc { color: #22b3eb; } /* Name.Variable.Class */ + .vg { color: #22b3eb; } /* Name.Variable.Global */ + .vi { color: #22b3eb; } /* Name.Variable.Instance */ + .il { color: #2aa198; } /* Literal.Number.Integer.Long */ +} diff --git a/docs/_sass/basically-basic/_tables.scss b/docs/_sass/basically-basic/_tables.scss new file mode 100644 index 0000000..68ac1c9 --- /dev/null +++ b/docs/_sass/basically-basic/_tables.scss @@ -0,0 +1,42 @@ +/* ========================================================================== + Tables + ========================================================================== */ + +table { + @include fluid-type($min-vw, $max-vw, 12px, 18px); + width: 100%; + border-collapse: collapse; + /* For Firefox to horizontally scroll wider tables */ + // scss-lint:disable DuplicateProperty + word-break: normal; + word-break: keep-all; +} + +thead { + + th, + td { + background-color: tint($base-color, 80%); + } +} + +th, +td { + border-bottom: 1px solid $border-color; +} + +th { + padding: 0.5em; + font-weight: bold; + text-align: left; +} + +td { + padding: 0.5em; +} + +tr, +td, +th { + vertical-align: middle; +} diff --git a/docs/_sass/basically-basic/_utilities.scss b/docs/_sass/basically-basic/_utilities.scss new file mode 100644 index 0000000..fd261bf --- /dev/null +++ b/docs/_sass/basically-basic/_utilities.scss @@ -0,0 +1,5 @@ +@import 'utilities/accessibility'; +@import 'utilities/align'; +@import 'utilities/clearfix'; +@import 'utilities/float'; +@import 'utilities/text'; diff --git a/docs/_sass/basically-basic/_variables.scss b/docs/_sass/basically-basic/_variables.scss new file mode 100644 index 0000000..5ac2a06 --- /dev/null +++ b/docs/_sass/basically-basic/_variables.scss @@ -0,0 +1,84 @@ +/* ========================================================================== + Variables + ========================================================================== */ + +/* Breakpoint widths */ +$small: 320px !default; +$medium: 768px !default; +$large: 1024px !default; +$xlarge: 1280px !default; + +/* Fluid type */ +$base-font-size: 16px !default; +$min-vw: $small !default; +$max-vw: $xlarge !default; +$min-font-size: 14px !default; +$max-font-size: 18px !default; + +/* Calculate Modular Scale */ +$modular-scale-1: 1.067 !default; /* small */ +$modular-scale-2: 1.296 !default; /* large */ +/* Heading 1 */ +$h1-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $base-font-size !default; +$h1-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $base-font-size !default; +/* Heading 2 */ +$h2-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $base-font-size !default; +$h2-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $base-font-size !default; +/* Heading 3 */ +$h3-min: $modular-scale-1 * $modular-scale-1 * $base-font-size !default; +$h3-max: $modular-scale-2 * $modular-scale-2 * $base-font-size !default; +/* Heading 4 */ +$h4-min: $modular-scale-1 * $base-font-size !default; +$h4-max: $modular-scale-2 * $base-font-size !default; +/* Heading 5 */ +$h5-min: $base-font-size !default; +$h5-max: $base-font-size !default; +/* Heading 6 */ +$h6-min: ($base-font-size / $modular-scale-1) !default; +$h6-max: ($base-font-size / $modular-scale-2) !default; + +/* Base font family */ +$base-font-family: "Fira Sans", sans-serif !default; +/* Other font families */ +$headline-font-family: $base-font-family !default; +$monospace-font-family: Menlo, Consolas, Monaco, "Courier New", Courier, monospace !default; + +/* Colors */ +$base-color: #393e46 !default; +$text-color: #222831 !default; +$accent-color: #00848a !default; +$background-color: #fff !default; +$code-background-color: tint($base-color, 95%) !default; +$border-color: tint($base-color, 80%) !default; +$overlay-color: $base-color !default; + +/* Max-width of the main content */ +$main-max-width: $xlarge !default; + +/* Width of the sidebar */ +$sidebar-width: $small !default; + +/* Background color of the sidebar */ +$sidebar-background-color: #fff !default; + +/* Border radius */ +$border-radius: 0.25em !default; + +/* Global transition */ +$global-transition: all 0.4s ease !default; + +/* Navicon */ +$navicon-width: 1.75em !default; +$navicon-height: 0.25em !default; +$navicon-duration: 0.5s !default; +$navicon-toggled-size: 1 !default; +$navicon-nav-bg-close: transparent !default; +$navicon-nav-bg-open: transparent !default; +$navicon-content-bg: $text-color !default; + +/* Site image */ +$site-image-width: 50px !default; +$site-image-height: 50px !default; + +/* Susy grid settings */ +$susy: (columns: 16, gutters: 0, math: fluid, output: float) !default; diff --git a/docs/_sass/basically-basic/mixins/_clearfix.scss b/docs/_sass/basically-basic/mixins/_clearfix.scss new file mode 100644 index 0000000..bd93049 --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_clearfix.scss @@ -0,0 +1,11 @@ +/* ========================================================================== + Clearfix Mixin + ========================================================================== */ + +@mixin clearfix() { + &::after { + display: block; + clear: both; + content: ''; + } +} diff --git a/docs/_sass/basically-basic/mixins/_color.scss b/docs/_sass/basically-basic/mixins/_color.scss new file mode 100644 index 0000000..80be545 --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_color.scss @@ -0,0 +1,21 @@ +/* ========================================================================== + Color Functions + ========================================================================== */ + +/// Slightly lighten a color +/// @access public +/// @param {Color} $color - color to tint +/// @param {Number} $percentage - percentage of `$color` in returned color +/// @return {Color} +@function tint($color, $percentage) { + @return mix(#fff, $color, $percentage); +} + +/// Slightly darken a color +/// @access public +/// @param {Color} $color - color to shade +/// @param {Number} $percentage - percentage of `$color` in returned color +/// @return {Color} +@function shade($color, $percentage) { + @return mix(#000, $color, $percentage); +} diff --git a/docs/_sass/basically-basic/mixins/_float.scss b/docs/_sass/basically-basic/mixins/_float.scss new file mode 100644 index 0000000..a5bab5b --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_float.scss @@ -0,0 +1,15 @@ +/* ========================================================================== + Float Mixins + ========================================================================== */ + +@mixin float-left { + float: left !important; +} + +@mixin float-right { + float: right !important; +} + +@mixin float-none { + float: none !important; +} diff --git a/docs/_sass/basically-basic/mixins/_fluid-type.scss b/docs/_sass/basically-basic/mixins/_fluid-type.scss new file mode 100644 index 0000000..9193809 --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_fluid-type.scss @@ -0,0 +1,33 @@ +/* ========================================================================== + Fluid Type + as seen on https://madebymike.com.au/writing/fluid-type-calc-examples/ + ========================================================================== */ + +@function strip-unit($value) { + @return $value / ($value * 0 + 1); +} + +@mixin fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size) { + // scss-lint:disable UnnecessaryParentReference + $u1: unit($min-vw); + $u2: unit($max-vw); + $u3: unit($min-font-size); + $u4: unit($max-font-size); + + @if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 { + & { + + font-size: $min-font-size; + + @media screen and (min-width: $min-vw) { + font-size: calc(#{$min-font-size} + #{strip-unit($max-font-size - $min-font-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})); + } + + @media screen and (min-width: $max-vw) { + font-size: $max-font-size; + } + } + } @else { + @error "Detected mixed units. Please use the same units for all parameters. " + $u1 +", " + $u2 + ", " + $u3 +", "+ $u4; + } +} diff --git a/docs/_sass/basically-basic/mixins/_image.scss b/docs/_sass/basically-basic/mixins/_image.scss new file mode 100644 index 0000000..8df8671 --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_image.scss @@ -0,0 +1,38 @@ +/* ========================================================================== + Image Mixins + - Responsive image + - Retina image + ========================================================================== */ + +/* + Responsive image + Keep images from scaling beyond the width of their parents. + ========================================================================== */ + +@mixin img-fluid { + // Part 1: Set a maximum relative to the parent + max-width: 100%; + // Part 2: Override the height to auto, otherwise images will be stretched + // when setting a width and height attribute on the img element. + height: auto; +} + +/* + Retina image + Short retina mixin for setting background-image and -size. + ========================================================================== */ + +@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) { + background-image: url($file-1x); + + // Autoprefixer takes care of adding -webkit-min-device-pixel-ratio and -o-min-device-pixel-ratio, + // but doesn't convert dppx=>dpi. + // There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard. + // Compatibility info: http://caniuse.com/#feat=css-media-resolution + @media + only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx + only screen and (min-resolution: 2dppx) { // Standardized + background-image: url($file-2x); + background-size: $width-1x $height-1x; + } +} diff --git a/docs/_sass/basically-basic/mixins/_lists.scss b/docs/_sass/basically-basic/mixins/_lists.scss new file mode 100644 index 0000000..2ca69a9 --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_lists.scss @@ -0,0 +1,9 @@ +/* ========================================================================== + List Mixins + ========================================================================== */ + +// Unstyled keeps list items block level, just removes default browser padding and list-style +@mixin list-unstyled { + padding-left: 0; + list-style: none; +} diff --git a/docs/_sass/basically-basic/mixins/_text-truncate.scss b/docs/_sass/basically-basic/mixins/_text-truncate.scss new file mode 100644 index 0000000..5277c90 --- /dev/null +++ b/docs/_sass/basically-basic/mixins/_text-truncate.scss @@ -0,0 +1,10 @@ +/* ========================================================================== + Text Truncate Mixin + Requires inline-block or block for proper styling + ========================================================================== */ + +@mixin text-truncate() { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} diff --git a/docs/_sass/basically-basic/themes/_default.scss b/docs/_sass/basically-basic/themes/_default.scss new file mode 100644 index 0000000..2f67753 --- /dev/null +++ b/docs/_sass/basically-basic/themes/_default.scss @@ -0,0 +1,5 @@ +/* ========================================================================== + Default theme skin + ========================================================================== */ + +// Intentionally left blank diff --git a/docs/_sass/basically-basic/themes/_night.scss b/docs/_sass/basically-basic/themes/_night.scss new file mode 100644 index 0000000..7b18a8c --- /dev/null +++ b/docs/_sass/basically-basic/themes/_night.scss @@ -0,0 +1,12 @@ +/* ========================================================================== + Night theme skin + ========================================================================== */ + +/* Colors */ +$base-color: #252a34 !default; +$text-color: #eaeaea !default; +$accent-color: #00adb5 !default; +$background-color: #252a34 !default; +$code-background-color: #fff !default; +$border-color: rgba($text-color, 0.5) !default; +$overlay-color: #fff !default; diff --git a/docs/_sass/basically-basic/themes/_plum.scss b/docs/_sass/basically-basic/themes/_plum.scss new file mode 100644 index 0000000..75c573c --- /dev/null +++ b/docs/_sass/basically-basic/themes/_plum.scss @@ -0,0 +1,12 @@ +/* ========================================================================== + Plum theme skin + ========================================================================== */ + +/* Colors */ +$base-color: #561050 !default; +$text-color: #35013f !default; +$accent-color: #951556 !default; +$background-color: #e9b5d2 !default; +$code-background-color: #fff !default; +$border-color: rgba($text-color, 0.5) !default; +$overlay-color: #fff !default; diff --git a/docs/_sass/basically-basic/themes/_sea.scss b/docs/_sass/basically-basic/themes/_sea.scss new file mode 100644 index 0000000..d545f2b --- /dev/null +++ b/docs/_sass/basically-basic/themes/_sea.scss @@ -0,0 +1,12 @@ +/* ========================================================================== + Sea theme skin + ========================================================================== */ + +/* Colors */ +$base-color: #41506b !default; +$text-color: #90f6d7 !default; +$accent-color: #35bcbf !default; +$background-color: #263849 !default; +$code-background-color: #fff !default; +$border-color: rgba($text-color, 0.5) !default; +$overlay-color: #fff !default; diff --git a/docs/_sass/basically-basic/themes/_soft.scss b/docs/_sass/basically-basic/themes/_soft.scss new file mode 100644 index 0000000..cb3efa6 --- /dev/null +++ b/docs/_sass/basically-basic/themes/_soft.scss @@ -0,0 +1,12 @@ +/* ========================================================================== + Soft theme skin + ========================================================================== */ + +/* Colors */ +$base-color: mix(#625772, #a9eee6, 75%) !default; +$text-color: #625772 !default; +$accent-color: #e85482 !default; +$background-color: #fefaec !default; +$code-background-color: #fff !default; +$border-color: rgba($text-color, 0.5) !default; +$overlay-color: #fff !default; diff --git a/docs/_sass/basically-basic/themes/_steel.scss b/docs/_sass/basically-basic/themes/_steel.scss new file mode 100644 index 0000000..b497a27 --- /dev/null +++ b/docs/_sass/basically-basic/themes/_steel.scss @@ -0,0 +1,12 @@ +/* ========================================================================== + Steel theme skin + ========================================================================== */ + +/* Colors */ +$base-color: #3a4750 !default; +$text-color: #303841 !default; +$accent-color: #d72323 !default; +$background-color: #eee !default; +$code-background-color: #fff !default; +$border-color: rgba($text-color, 0.25) !default; +$overlay-color: #fff !default; diff --git a/docs/_sass/basically-basic/utilities/_accessibility.scss b/docs/_sass/basically-basic/utilities/_accessibility.scss new file mode 100644 index 0000000..f870ee2 --- /dev/null +++ b/docs/_sass/basically-basic/utilities/_accessibility.scss @@ -0,0 +1,54 @@ +/* ========================================================================== + Accessibility Modules + ========================================================================== */ + +/* Skip links */ +.skip-links { + margin: 0; + + li { + width: 0; + height: 0; + list-style: none; + } +} + +/* Text meant only for screen readers */ +.screen-reader-text, +.screen-reader-text span, +.screen-reader-shortcut { + position: absolute !important; + width: 1px; + height: 1px; + clip: rect(0, 0, 0, 0); + border: 0; + overflow: hidden; + + &:focus { + display: block; + top: 5px; + left: 5px; + width: auto; + height: auto; + padding: 0.75em 1em; + clip: auto !important; + border-radius: 0.125em; + background-color: $base-color; + color: #fff; + font-weight: bold; + line-height: normal; + text-decoration: none; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + z-index: 100000; + } +} + +.screen-reader-text:focus, +.screen-reader-shortcut:focus { + width: auto; + height: auto; + clip: auto !important; + text-decoration: none; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + z-index: 100000; +} diff --git a/docs/_sass/basically-basic/utilities/_align.scss b/docs/_sass/basically-basic/utilities/_align.scss new file mode 100644 index 0000000..6c1156e --- /dev/null +++ b/docs/_sass/basically-basic/utilities/_align.scss @@ -0,0 +1,64 @@ +/* ========================================================================== + Alignment + ========================================================================== */ + +.align-baseline { vertical-align: baseline !important; } /* Browser default */ +.align-top { vertical-align: top !important; } +.align-middle { vertical-align: middle !important; } +.align-bottom { vertical-align: bottom !important; } +.align-text-bottom { vertical-align: text-bottom !important; } +.align-text-top { vertical-align: text-top !important; } + +/* + Image Alignment + ========================================================================== */ + +.align-center, +div.align-center, +a img.align-center { + display: block; + margin-right: auto; + margin-left: auto; +} + +figure.align-center { + + img { + display: block; + margin-right: auto; + margin-left: auto; + } + + figcaption { + text-align: center; + } +} + +.align-right, +a img.align-right { + margin-bottom: 1rem; + margin-left: 1rem; + float: right; +} + +.align-left, +a img.align-left { + margin-right: 1rem; + margin-bottom: 1rem; + float: left; +} + +/* + Sidebar Pusher + ========================================================================== */ + +.is--pushed { + + @include breakpoint($medium) { + padding-left: $sidebar-width; + } + + @include breakpoint($large) { + padding-left: (1.5 * $sidebar-width); + } +} diff --git a/docs/_sass/basically-basic/utilities/_clearfix.scss b/docs/_sass/basically-basic/utilities/_clearfix.scss new file mode 100644 index 0000000..031b70c --- /dev/null +++ b/docs/_sass/basically-basic/utilities/_clearfix.scss @@ -0,0 +1,7 @@ +// +// Clearfix +// + +.clearfix { + @include clearfix(); +} diff --git a/docs/_sass/basically-basic/utilities/_float.scss b/docs/_sass/basically-basic/utilities/_float.scss new file mode 100644 index 0000000..fdcb2a1 --- /dev/null +++ b/docs/_sass/basically-basic/utilities/_float.scss @@ -0,0 +1,7 @@ +/* ========================================================================== + Floats + ========================================================================== */ + +.float-left { @include float-left; } +.float-right { @include float-right; } +.float-none { @include float-none; } diff --git a/docs/_sass/basically-basic/utilities/_text.scss b/docs/_sass/basically-basic/utilities/_text.scss new file mode 100644 index 0000000..0f53033 --- /dev/null +++ b/docs/_sass/basically-basic/utilities/_text.scss @@ -0,0 +1,28 @@ +/* ========================================================================== + Text + ========================================================================== */ + +/* + Alignment + ========================================================================== */ + +.text-justify { text-align: justify !important; } +.text-nowrap { white-space: nowrap !important; } +.text-left { text-align: left !important; } +.text-right { text-align: right !important; } +.text-center { text-align: center !important; } + +/* + Transformation + ========================================================================== */ + +.text-lowercase { text-transform: lowercase !important; } +.text-uppercase { text-transform: uppercase !important; } +.text-capitalize { text-transform: capitalize !important; } +.text-truncate { @include text-truncate; } + +/* + Sizing + ========================================================================== */ + +.small { font-size: 80%; } diff --git a/docs/_sass/basically-basic/vendor/_breakpoint.scss b/docs/_sass/basically-basic/vendor/_breakpoint.scss new file mode 100644 index 0000000..2ede6b7 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/_breakpoint.scss @@ -0,0 +1,114 @@ +////////////////////////////// +// Default Variables +////////////////////////////// +$Breakpoint-Settings: ( + 'default media': all, + 'default feature': min-width, + 'default pair': width, + + 'force all media type': false, + 'to ems': false, + 'transform resolutions': true, + + 'no queries': false, + 'no query fallbacks': false, + + 'base font size': 16px, + + 'legacy syntax': false +); + +$breakpoint: () !default; + +////////////////////////////// +// Imports +////////////////////////////// +@import "breakpoint/settings"; +@import 'breakpoint/context'; +@import 'breakpoint/helpers'; +@import 'breakpoint/parsers'; +@import 'breakpoint/no-query'; + +@import 'breakpoint/respond-to'; + +@import "breakpoint/legacy-settings"; + +////////////////////////////// +// Breakpoint Mixin +////////////////////////////// + +@mixin breakpoint($query, $no-query: false) { + @include legacy-settings-warning; + + // Reset contexts + @include private-breakpoint-reset-contexts(); + + $breakpoint: breakpoint($query, false); + + $query-string: map-get($breakpoint, 'query'); + $query-fallback: map-get($breakpoint, 'fallback'); + + $private-breakpoint-context-holder: map-get($breakpoint, 'context holder') !global; + $private-breakpoint-query-count: map-get($breakpoint, 'query count') !global; + + // Allow for an as-needed override or usage of no query fallback. + @if $no-query != false { + $query-fallback: $no-query; + } + + @if $query-fallback != false { + $context-setter: private-breakpoint-set-context('no-query', $query-fallback); + } + + // Print Out Query String + @if not breakpoint-get('no queries') { + @media #{$query-string} { + @content; + } + } + + @if breakpoint-get('no query fallbacks') != false or breakpoint-get('no queries') == true { + + $type: type-of(breakpoint-get('no query fallbacks')); + $print: false; + + @if ($type == 'bool') { + $print: true; + } + @else if ($type == 'string') { + @if $query-fallback == breakpoint-get('no query fallbacks') { + $print: true; + } + } + @else if ($type == 'list') { + @each $wrapper in breakpoint-get('no query fallbacks') { + @if $query-fallback == $wrapper { + $print: true; + } + } + } + + // Write Fallback + @if ($query-fallback != false) and ($print == true) { + $type-fallback: type-of($query-fallback); + + @if ($type-fallback != 'bool') { + #{$query-fallback} & { + @content; + } + } + @else { + @content; + } + } + } + + @include private-breakpoint-reset-contexts(); +} + + +@mixin mq($query, $no-query: false) { + @include breakpoint($query, $no-query) { + @content; + } +} diff --git a/docs/_sass/basically-basic/vendor/_su.scss b/docs/_sass/basically-basic/vendor/_su.scss new file mode 100644 index 0000000..83386ad --- /dev/null +++ b/docs/_sass/basically-basic/vendor/_su.scss @@ -0,0 +1,4 @@ +// Su +// == + +@import 'susy/su'; diff --git a/docs/_sass/basically-basic/vendor/_susy.scss b/docs/_sass/basically-basic/vendor/_susy.scss new file mode 100644 index 0000000..224e98a --- /dev/null +++ b/docs/_sass/basically-basic/vendor/_susy.scss @@ -0,0 +1,4 @@ +// Susy +// ==== + +@import 'susy/language/susy'; diff --git a/docs/_sass/basically-basic/vendor/_susyone.scss b/docs/_sass/basically-basic/vendor/_susyone.scss new file mode 100644 index 0000000..5b934c6 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/_susyone.scss @@ -0,0 +1,4 @@ +// Susy +// ==== + +@import 'susy/language/susyone'; diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_context.scss b/docs/_sass/basically-basic/vendor/breakpoint/_context.scss new file mode 100644 index 0000000..57947f5 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_context.scss @@ -0,0 +1,95 @@ +////////////////////////////// +// Private Breakpoint Variables +////////////////////////////// +$private-breakpoint-context-holder: (); +$private-breakpoint-query-count: 0 !default; + +////////////////////////////// +// Breakpoint Has Context +// Returns whether or not you are inside a Breakpoint query +////////////////////////////// +@function breakpoint-has-context() { + @if length($private-breakpoint-query-count) { + @return true; + } + @else { + @return false; + } +} + +////////////////////////////// +// Breakpoint Get Context +// $feature: Input feature to get it's current MQ context. Returns false if no context +////////////////////////////// +@function breakpoint-get-context($feature) { + @if map-has-key($private-breakpoint-context-holder, $feature) { + $get: map-get($private-breakpoint-context-holder, $feature); + // Special handling of no-query from get side so /false/ prepends aren't returned + @if $feature == 'no-query' { + @if type-of($get) == 'list' and length($get) > 1 and nth($get, 1) == false { + $get: nth($get, length($get)); + } + } + @return $get; + } + @else { + @if breakpoint-has-context() and $feature == 'media' { + @return breakpoint-get('default media'); + } + @else { + @return false; + } + } +} + +////////////////////////////// +// Private function to set context +////////////////////////////// +@function private-breakpoint-set-context($feature, $value) { + @if $value == 'monochrome' { + $feature: 'monochrome'; + } + + $current: map-get($private-breakpoint-context-holder, $feature); + @if $current and length($current) == $private-breakpoint-query-count { + @warn "You have already queried against `#{$feature}`. Unexpected things may happen if you query against the same feature more than once in the same `and` query. Breakpoint is overwriting the current context with `#{$value}`"; + } + + @if not map-has-key($private-breakpoint-context-holder, $feature) { + $v-holder: (); + @for $i from 1 to $private-breakpoint-query-count { + @if $feature == 'media' { + $v-holder: append($v-holder, breakpoint-get('default media')); + } + @else { + $v-holder: append($v-holder, false); + } + } + $v-holder: append($v-holder, $value); + $private-breakpoint-context-holder: map-merge($private-breakpoint-context-holder, ($feature: $v-holder)) !global; + } + @else { + $v-holder: map-get($private-breakpoint-context-holder, $feature); + $length: length($v-holder); + @for $i from $length to $private-breakpoint-query-count - 1 { + @if $feature == 'media' { + $v-holder: append($v-holder, breakpoint-get('default media')); + } + @else { + $v-holder: append($v-holder, false); + } + } + $v-holder: append($v-holder, $value); + $private-breakpoint-context-holder: map-merge($private-breakpoint-context-holder, ($feature: $v-holder)) !global; + } + + @return true; +} + +////////////////////////////// +// Private function to reset context +////////////////////////////// +@mixin private-breakpoint-reset-contexts { + $private-breakpoint-context-holder: () !global; + $private-breakpoint-query-count: 0 !global; +} \ No newline at end of file diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_helpers.scss b/docs/_sass/basically-basic/vendor/breakpoint/_helpers.scss new file mode 100644 index 0000000..97e522d --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_helpers.scss @@ -0,0 +1,151 @@ +////////////////////////////// +// Converts the input value to Base EMs +////////////////////////////// +@function breakpoint-to-base-em($value) { + $value-unit: unit($value); + + // Will convert relative EMs into root EMs. + @if breakpoint-get('base font size') and type-of(breakpoint-get('base font size')) == 'number' and $value-unit == 'em' { + $base-unit: unit(breakpoint-get('base font size')); + + @if $base-unit == 'px' or $base-unit == '%' or $base-unit == 'em' or $base-unit == 'pt' { + @return base-conversion($value) / base-conversion(breakpoint-get('base font size')) * 1em; + } + @else { + @warn '#{breakpoint-get(\'base font size\')} is not set in valid units for font size!'; + @return false; + } + } + @else { + @return base-conversion($value); + } +} + +@function base-conversion($value) { + $unit: unit($value); + + @if $unit == 'px' { + @return $value / 16px * 1em; + } + @else if $unit == '%' { + @return $value / 100% * 1em; + } + @else if $unit == 'em' { + @return $value; + } + @else if $unit == 'pt' { + @return $value / 12pt * 1em; + } + @else { + @return $value; +// @warn 'Everything is terrible! What have you done?!'; + } +} + +////////////////////////////// +// Returns whether the feature can have a min/max pair +////////////////////////////// +$breakpoint-min-max-features: 'color', + 'color-index', + 'aspect-ratio', + 'device-aspect-ratio', + 'device-height', + 'device-width', + 'height', + 'monochrome', + 'resolution', + 'width'; + +@function breakpoint-min-max($feature) { + @each $item in $breakpoint-min-max-features { + @if $feature == $item { + @return true; + } + } + @return false; +} + +////////////////////////////// +// Returns whether the feature can have a string value +////////////////////////////// +$breakpoint-string-features: 'orientation', + 'scan', + 'color', + 'aspect-ratio', + 'device-aspect-ratio', + 'pointer', + 'luminosity'; + +@function breakpoint-string-value($feature) { + @each $item in $breakpoint-string-features { + @if breakpoint-min-max($item) { + @if $feature == 'min-#{$item}' or $feature == 'max-#{$item}' { + @return true; + } + } + @else if $feature == $item { + @return true; + } + } + @return false; +} + +////////////////////////////// +// Returns whether the feature is a media type +////////////////////////////// +$breakpoint-media-types: 'all', + 'braille', + 'embossed', + 'handheld', + 'print', + 'projection', + 'screen', + 'speech', + 'tty', + 'tv'; + +@function breakpoint-is-media($feature) { + @each $media in $breakpoint-media-types { + @if ($feature == $media) or ($feature == 'not #{$media}') or ($feature == 'only #{$media}') { + @return true; + } + } + + @return false; +} + +////////////////////////////// +// Returns whether the feature can stand alone +////////////////////////////// +$breakpoint-single-string-features: 'color', + 'color-index', + 'grid', + 'monochrome'; + +@function breakpoint-single-string($feature) { + @each $item in $breakpoint-single-string-features { + @if $feature == $item { + @return true; + } + } + @return false; +} + +////////////////////////////// +// Returns whether the feature +////////////////////////////// +@function breakpoint-is-resolution($feature) { + $resolutions: 'device-pixel-ratio', 'dpr'; + + @if breakpoint-get('transform resolutions') { + $resolutions: append($resolutions, 'resolution'); + } + + @each $reso in $resolutions { + @if index($feature, $reso) or index($feature, 'min-#{$reso}') or index($feature, 'max-#{$reso}') { + @return true; + } + } + + @return false; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_legacy-settings.scss b/docs/_sass/basically-basic/vendor/breakpoint/_legacy-settings.scss new file mode 100644 index 0000000..e060ebe --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_legacy-settings.scss @@ -0,0 +1,50 @@ +@mixin legacy-settings-warning { + $legacyVars: ( + 'default-media': 'default media', + 'default-feature': 'default feature', + 'force-media-all': 'force all media type', + 'to-ems': 'to ems', + 'resolutions': 'transform resolutions', + 'no-queries': 'no queries', + 'no-query-fallbacks': 'no query fallbacks', + 'base-font-size': 'base font size', + 'legacy-syntax': 'legacy syntax' + ); + + @each $legacy, $new in $legacyVars { + @if global-variable-exists('breakpoint-' + $legacy) { + @warn "In order to avoid variable namspace collisions, we have updated the way to change settings for Breakpoint. Please change all instances of `$breakpoint-#{$legacy}: {{setting}}` to `@include breakpoint-set('#{$new}', {{setting}})`. Variable settings, as well as this warning will be deprecated in a future release." + } + }; + + ////////////////////////////// + // Hand correct each setting + ////////////////////////////// + @if global-variable-exists('breakpoint-default-media') and $breakpoint-default-media != breakpoint-get('default media') { + @include breakpoint-set('default media', $breakpoint-default-media); + } + @if global-variable-exists('breakpoint-default-feature') and $breakpoint-default-feature != breakpoint-get('default feature') { + @include breakpoint-set('default feature', $breakpoint-default-feature); + } + @if global-variable-exists('breakpoint-force-media-all') and $breakpoint-force-media-all != breakpoint-get('force all media type') { + @include breakpoint-set('force all media type', $breakpoint-force-media-all); + } + @if global-variable-exists('breakpoint-to-ems') and $breakpoint-to-ems != breakpoint-get('to ems') { + @include breakpoint-set('to ems', $breakpoint-to-ems); + } + @if global-variable-exists('breakpoint-resolutions') and $breakpoint-resolutions != breakpoint-get('transform resolutions') { + @include breakpoint-set('transform resolutions', $breakpoint-resolutions); + } + @if global-variable-exists('breakpoint-no-queries') and $breakpoint-no-queries != breakpoint-get('no queries') { + @include breakpoint-set('no queries', $breakpoint-no-queries); + } + @if global-variable-exists('breakpoint-no-query-fallbacks') and $breakpoint-no-query-fallbacks != breakpoint-get('no query fallbacks') { + @include breakpoint-set('no query fallbacks', $breakpoint-no-query-fallbacks); + } + @if global-variable-exists('breakpoint-base-font-size') and $breakpoint-base-font-size != breakpoint-get('base font size') { + @include breakpoint-set('base font size', $breakpoint-base-font-size); + } + @if global-variable-exists('breakpoint-legacy-syntax') and $breakpoint-legacy-syntax != breakpoint-get('legacy syntax') { + @include breakpoint-set('legacy syntax', $breakpoint-legacy-syntax); + } +} \ No newline at end of file diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_no-query.scss b/docs/_sass/basically-basic/vendor/breakpoint/_no-query.scss new file mode 100644 index 0000000..0b5a81f --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_no-query.scss @@ -0,0 +1,15 @@ +@function breakpoint-no-query($query) { + @if type-of($query) == 'list' { + $keyword: nth($query, 1); + + @if type-of($keyword) == 'string' and ($keyword == 'no-query' or $keyword == 'no query' or $keyword == 'fallback') { + @return nth($query, 2); + } + @else { + @return false; + } + } + @else { + @return false; + } +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_parsers.scss b/docs/_sass/basically-basic/vendor/breakpoint/_parsers.scss new file mode 100644 index 0000000..f0b053f --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_parsers.scss @@ -0,0 +1,215 @@ +////////////////////////////// +// Import Parser Pieces +////////////////////////////// +@import "parsers/query"; +@import "parsers/single"; +@import "parsers/double"; +@import "parsers/triple"; +@import "parsers/resolution"; + +$Memo-Exists: function-exists(memo-get) and function-exists(memo-set); + +////////////////////////////// +// Breakpoint Function +////////////////////////////// +@function breakpoint($query, $contexts...) { + $run: true; + $return: (); + + // Grab the Memo Output if Memoization can be a thing + @if $Memo-Exists { + $return: memo-get(breakpoint, breakpoint $query $contexts); + + @if $return != null { + $run: false; + } + } + + @if not $Memo-Exists or $run { + // Internal Variables + $query-string: ''; + $query-fallback: false; + $return: (); + + // Reserve Global Private Breakpoint Context + $holder-context: $private-breakpoint-context-holder; + $holder-query-count: $private-breakpoint-query-count; + + // Reset Global Private Breakpoint Context + $private-breakpoint-context-holder: () !global; + $private-breakpoint-query-count: 0 !global; + + + // Test to see if it's a comma-separated list + $or-list: if(list-separator($query) == 'comma', true, false); + + + @if ($or-list == false and breakpoint-get('legacy syntax') == false) { + $query-string: breakpoint-parse($query); + } + @else { + $length: length($query); + + $last: nth($query, $length); + $query-fallback: breakpoint-no-query($last); + + @if ($query-fallback != false) { + $length: $length - 1; + } + + @if (breakpoint-get('legacy syntax') == true) { + $mq: (); + + @for $i from 1 through $length { + $mq: append($mq, nth($query, $i), comma); + } + + $query-string: breakpoint-parse($mq); + } + @else { + $query-string: ''; + @for $i from 1 through $length { + $query-string: $query-string + if($i == 1, '', ', ') + breakpoint-parse(nth($query, $i)); + } + } + } + + $return: ('query': $query-string, + 'fallback': $query-fallback, + 'context holder': $private-breakpoint-context-holder, + 'query count': $private-breakpoint-query-count + ); + @if length($contexts) > 0 and nth($contexts, 1) != false { + @if $query-fallback != false { + $context-setter: private-breakpoint-set-context('no-query', $query-fallback); + } + $context-map: (); + @each $context in $contexts { + $context-map: map-merge($context-map, ($context: breakpoint-get-context($context))); + } + $return: map-merge($return, (context: $context-map)); + } + + // Reset Global Private Breakpoint Context + $private-breakpoint-context-holder: () !global; + $private-breakpoint-query-count: 0 !global; + + @if $Memo-Exists { + $holder: memo-set(breakpoint, breakpoint $query $contexts, $return); + } + } + + @return $return; +} + +////////////////////////////// +// General Breakpoint Parser +////////////////////////////// +@function breakpoint-parse($query) { + // Increase number of 'and' queries + $private-breakpoint-query-count: $private-breakpoint-query-count + 1 !global; + + // Set up Media Type + $query-print: ''; + + $force-all: ((breakpoint-get('force all media type') == true) and (breakpoint-get('default media') == 'all')); + $empty-media: true; + @if ($force-all == true) or (breakpoint-get('default media') != 'all') { + // Force the print of the default media type if (force all is true and default media type is all) or (default media type is not all) + $query-print: breakpoint-get('default media'); + $empty-media: false; + } + + + $query-resolution: false; + + $query-holder: breakpoint-parse-query($query); + + + + // Loop over each parsed out query and write it to $query-print + $first: true; + + @each $feature in $query-holder { + $length: length($feature); + + // Parse a single feature + @if ($length == 1) { + // Feature is currently a list, grab the actual value + $feature: nth($feature, 1); + + // Media Type must by convention be the first item, so it's safe to flat override $query-print, which right now should only be the default media type + @if (breakpoint-is-media($feature)) { + @if ($force-all == true) or ($feature != 'all') { + // Force the print of the default media type if (force all is true and default media type is all) or (default media type is not all) + $query-print: $feature; + $empty-media: false; + + // Set Context + $context-setter: private-breakpoint-set-context(media, $query-print); + } + } + @else { + $parsed: breakpoint-parse-single($feature, $empty-media, $first); + $query-print: '#{$query-print} #{$parsed}'; + $first: false; + } + } + // Parse a double feature + @else if ($length == 2) { + @if (breakpoint-is-resolution($feature) != false) { + $query-resolution: $feature; + } + @else { + $parsed: null; + // If it's a string/number pair, + // we check to see if one is a single-string value, + // then we parse it as a normal double + $alpha: nth($feature, 1); + $beta: nth($feature, 2); + @if breakpoint-single-string($alpha) or breakpoint-single-string($beta) { + $parsed: breakpoint-parse-single($alpha, $empty-media, $first); + $query-print: '#{$query-print} #{$parsed}'; + $first: false; + $parsed: breakpoint-parse-single($beta, $empty-media, $first); + $query-print: '#{$query-print} #{$parsed}'; + } + @else { + $parsed: breakpoint-parse-double($feature, $empty-media, $first); + $query-print: '#{$query-print} #{$parsed}'; + $first: false; + } + } + } + // Parse a triple feature + @else if ($length == 3) { + $parsed: breakpoint-parse-triple($feature, $empty-media, $first); + $query-print: '#{$query-print} #{$parsed}'; + $first: false; + } + + } + + @if ($query-resolution != false) { + $query-print: breakpoint-build-resolution($query-print, $query-resolution, $empty-media, $first); + } + + // Loop through each feature that's been detected so far and append 'false' to the the value list to increment their counters + @each $f, $v in $private-breakpoint-context-holder { + $v-holder: $v; + $length: length($v-holder); + @if length($v-holder) < $private-breakpoint-query-count { + @for $i from $length to $private-breakpoint-query-count { + @if $f == 'media' { + $v-holder: append($v-holder, breakpoint-get('default media')); + } + @else { + $v-holder: append($v-holder, false); + } + } + } + $private-breakpoint-context-holder: map-merge($private-breakpoint-context-holder, ($f: $v-holder)) !global; + } + + @return $query-print; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_respond-to.scss b/docs/_sass/basically-basic/vendor/breakpoint/_respond-to.scss new file mode 100644 index 0000000..e2462c5 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_respond-to.scss @@ -0,0 +1,82 @@ +//////////////////////// +// Default the Breakpoints variable +//////////////////////// +$breakpoints: () !default; +$BREAKPOINTS: () !default; + +//////////////////////// +// Respond-to API Mixin +//////////////////////// +@mixin respond-to($context, $no-query: false) { + @if length($breakpoints) > 0 and length($BREAKPOINTS) == 0 { + @warn "In order to avoid variable namespace collisions, we have updated the way to add breakpoints for respond-to. Please change all instances of `$breakpoints: add-breakpoint()` to `@include add-breakpoint()`. The `add-breakpoint()` function will be deprecated in a future release."; + $BREAKPOINTS: $breakpoints !global; + $breakpoints: () !global; + } + + @if type-of($BREAKPOINTS) != 'map' { + // Just in case someone writes gibberish to the $breakpoints variable. + @warn "Your breakpoints aren't a map! `respond-to` expects a map. Please check the value of $BREAKPOINTS variable."; + @content; + } + @else if map-has-key($BREAKPOINTS, $context) { + @include breakpoint(map-get($BREAKPOINTS, $context), $no-query) { + @content; + } + } + @else if not map-has-key($BREAKPOINTS, $context) { + @warn "`#{$context}` isn't a defined breakpoint! Please add it using `$breakpoints: add-breakpoint(`#{$context}`, $value);`"; + @content; + } + @else { + @warn "You haven't created any breakpoints yet! Make some already! `@include add-breakpoint($name, $bkpt)`"; + @content; + } +} + +////////////////////////////// +// Add Breakpoint to Breakpoints +// TODO: Remove function in next release +////////////////////////////// +@function add-breakpoint($name, $bkpt, $overwrite: false) { + $output: ($name: $bkpt); + + @if length($breakpoints) == 0 { + @return $output; + } + @else { + @if map-has-key($breakpoints, $name) and $overwrite != true { + @warn "You already have a breakpoint named `#{$name}`, please choose another breakpoint name, or pass in `$overwrite: true` to overwrite the previous breakpoint."; + @return $breakpoints; + } + @else if not map-has-key($breakpoints, $name) or $overwrite == true { + @return map-merge($breakpoints, $output); + } + } +} + +@mixin add-breakpoint($name, $bkpt, $overwrite: false) { + $output: ($name: $bkpt); + + @if length($BREAKPOINTS) == 0 { + $BREAKPOINTS: $output !global; + } + @else { + @if map-has-key($BREAKPOINTS, $name) and $overwrite != true { + @warn "You already have a breakpoint named `#{$name}`, please choose another breakpoint name, or pass in `$overwrite: true` to overwrite the previous breakpoint."; + $BREAKPOINTS: $BREAKPOINTS !global; + } + @else if not map-has-key($BREAKPOINTS, $name) or $overwrite == true { + $BREAKPOINTS: map-merge($BREAKPOINTS, $output) !global; + } + } +} + +@function get-breakpoint($name: false) { + @if $name == false { + @return $BREAKPOINTS; + } + @else { + @return map-get($BREAKPOINTS, $name); + } +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/_settings.scss b/docs/_sass/basically-basic/vendor/breakpoint/_settings.scss new file mode 100644 index 0000000..05ee689 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/_settings.scss @@ -0,0 +1,71 @@ +////////////////////////////// +// Has Setting +////////////////////////////// +@function breakpoint-has($setting) { + @if map-has-key($breakpoint, $setting) { + @return true; + } + @else { + @return false; + } +} + +////////////////////////////// +// Get Settings +////////////////////////////// +@function breakpoint-get($setting) { + @if breakpoint-has($setting) { + @return map-get($breakpoint, $setting); + } + @else { + @return map-get($Breakpoint-Settings, $setting); + } +} + +////////////////////////////// +// Set Settings +////////////////////////////// +@function breakpoint-set($setting, $value) { + @if (str-index($setting, '-') or str-index($setting, '_')) and str-index($setting, ' ') == null { + @warn "Words in Breakpoint settings should be separated by spaces, not dashes or underscores. Please replace dashes and underscores between words with spaces. Settings will not work as expected until changed."; + } + $breakpoint: map-merge($breakpoint, ($setting: $value)) !global; + @return true; +} + +@mixin breakpoint-change($setting, $value) { + $breakpoint-change: breakpoint-set($setting, $value); +} + +@mixin breakpoint-set($setting, $value) { + @include breakpoint-change($setting, $value); +} + +@mixin bkpt-change($setting, $value) { + @include breakpoint-change($setting, $value); +} +@mixin bkpt-set($setting, $value) { + @include breakpoint-change($setting, $value); +} + +////////////////////////////// +// Remove Setting +////////////////////////////// +@function breakpoint-reset($settings...) { + @if length($settings) == 1 { + $settings: nth($settings, 1); + } + + @each $setting in $settings { + $breakpoint: map-remove($breakpoint, $setting) !global; + } + @return true; +} + +@mixin breakpoint-reset($settings...) { + $breakpoint-reset: breakpoint-reset($settings); +} + +@mixin bkpt-reset($settings...) { + $breakpoint-reset: breakpoint-reset($settings); +} \ No newline at end of file diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/_double.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_double.scss new file mode 100644 index 0000000..24580c1 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_double.scss @@ -0,0 +1,33 @@ +////////////////////////////// +// Import Pieces +////////////////////////////// +@import "double/default-pair"; +@import "double/double-string"; +@import "double/default"; + +@function breakpoint-parse-double($feature, $empty-media, $first) { + $parsed: ''; + $leader: ''; + // If we're forcing + @if not ($empty-media) or not ($first) { + $leader: 'and '; + } + + $first: nth($feature, 1); + $second: nth($feature, 2); + + // If we've got two numbers, we know we need to use the default pair because there are no media queries that has a media feature that is a number + @if type-of($first) == 'number' and type-of($second) == 'number' { + $parsed: breakpoint-parse-default-pair($first, $second); + } + // If they are both strings, we send it through the string parser + @else if type-of($first) == 'string' and type-of($second) == 'string' { + $parsed: breakpoint-parse-double-string($first, $second); + } + // If it's a string/number pair, we parse it as a normal double + @else { + $parsed: breakpoint-parse-double-default($first, $second); + } + + @return $leader + $parsed; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/_query.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_query.scss new file mode 100644 index 0000000..b138b39 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_query.scss @@ -0,0 +1,82 @@ +@function breakpoint-parse-query($query) { + // Parse features out of an individual query + $feature-holder: (); + $query-holder: (); + $length: length($query); + + @if $length == 2 { + // If we've got a string/number, number/string, check to see if it's a valid string/number pair or two singles + @if (type-of(nth($query, 1)) == 'string' and type-of(nth($query, 2)) == 'number') or (type-of(nth($query, 1)) == 'number' and type-of(nth($query, 2)) == 'string') { + + $number: ''; + $value: ''; + + @if type-of(nth($query, 1)) == 'string' { + $number: nth($query, 2); + $value: nth($query, 1); + } + @else { + $number: nth($query, 1); + $value: nth($query, 2); + } + + // If the string value can be a single value, check to see if the number passed in is a valid input for said single value. Fortunately, all current single-value options only accept unitless numbers, so this check is easy. + @if breakpoint-single-string($value) { + @if unitless($number) { + $feature-holder: append($value, $number, space); + $query-holder: append($query-holder, $feature-holder, comma); + @return $query-holder; + } + } + // If the string is a media type, split the query + @if breakpoint-is-media($value) { + $query-holder: append($query-holder, nth($query, 1)); + $query-holder: append($query-holder, nth($query, 2)); + @return $query-holder; + } + // If it's not a single feature, we're just going to assume it's a proper string/value pair, and roll with it. + @else { + $feature-holder: append($value, $number, space); + $query-holder: append($query-holder, $feature-holder, comma); + @return $query-holder; + } + + } + // If they're both numbers, we assume it's a double and roll with that + @else if (type-of(nth($query, 1)) == 'number' and type-of(nth($query, 2)) == 'number') { + $feature-holder: append(nth($query, 1), nth($query, 2), space); + $query-holder: append($query-holder, $feature-holder, comma); + @return $query-holder; + } + // If they're both strings and neither are singles, we roll with that. + @else if (type-of(nth($query, 1)) == 'string' and type-of(nth($query, 2)) == 'string') { + @if not breakpoint-single-string(nth($query, 1)) and not breakpoint-single-string(nth($query, 2)) { + $feature-holder: append(nth($query, 1), nth($query, 2), space); + $query-holder: append($query-holder, $feature-holder, comma); + @return $query-holder; + } + } + } + @else if $length == 3 { + // If we've got three items and none is a list, we check to see + @if type-of(nth($query, 1)) != 'list' and type-of(nth($query, 2)) != 'list' and type-of(nth($query, 3)) != 'list' { + // If none of the items are single string values and none of the values are media values, we're good. + @if (not breakpoint-single-string(nth($query, 1)) and not breakpoint-single-string(nth($query, 2)) and not breakpoint-single-string(nth($query, 3))) and ((not breakpoint-is-media(nth($query, 1)) and not breakpoint-is-media(nth($query, 2)) and not breakpoint-is-media(nth($query, 3)))) { + $feature-holder: append(nth($query, 1), nth($query, 2), space); + $feature-holder: append($feature-holder, nth($query, 3), space); + $query-holder: append($query-holder, $feature-holder, comma); + @return $query-holder; + } + // let's check to see if the first item is a media type + @else if breakpoint-is-media(nth($query, 1)) { + $query-holder: append($query-holder, nth($query, 1)); + $feature-holder: append(nth($query, 2), nth($query, 3), space); + $query-holder: append($query-holder, $feature-holder); + @return $query-holder; + } + } + } + + // If it's a single item, or if it's not a special case double or triple, we can simply return the query. + @return $query; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/_resolution.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_resolution.scss new file mode 100644 index 0000000..19769ad --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_resolution.scss @@ -0,0 +1,31 @@ +@import "resolution/resolution"; + +@function breakpoint-build-resolution($query-print, $query-resolution, $empty-media, $first) { + $leader: ''; + // If we're forcing + @if not ($empty-media) or not ($first) { + $leader: 'and '; + } + + @if breakpoint-get('transform resolutions') and $query-resolution { + $resolutions: breakpoint-make-resolutions($query-resolution); + $length: length($resolutions); + $query-holder: ''; + + @for $i from 1 through $length { + $query: '#{$query-print} #{$leader}#{nth($resolutions, $i)}'; + @if $i == 1 { + $query-holder: $query; + } + @else { + $query-holder: '#{$query-holder}, #{$query}'; + } + } + + @return $query-holder; + } + @else { + // Return with attached resolution + @return $query-print; + } +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/_single.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_single.scss new file mode 100644 index 0000000..d9fd764 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_single.scss @@ -0,0 +1,26 @@ +////////////////////////////// +// Import Pieces +////////////////////////////// +@import "single/default"; + +@function breakpoint-parse-single($feature, $empty-media, $first) { + $parsed: ''; + $leader: ''; + // If we're forcing + @if not ($empty-media) or not ($first) { + $leader: 'and '; + } + + // If it's a single feature that can stand alone, we let it + @if (breakpoint-single-string($feature)) { + $parsed: $feature; + // Set Context + $context-setter: private-breakpoint-set-context($feature, $feature); + } + // If it's not a stand alone feature, we pass it off to the default handler. + @else { + $parsed: breakpoint-parse-default($feature); + } + + @return $leader + '(' + $parsed + ')'; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/_triple.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_triple.scss new file mode 100644 index 0000000..e273206 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/_triple.scss @@ -0,0 +1,36 @@ +////////////////////////////// +// Import Pieces +////////////////////////////// +@import "triple/default"; + +@function breakpoint-parse-triple($feature, $empty-media, $first) { + $parsed: ''; + $leader: ''; + + // If we're forcing + @if not ($empty-media) or not ($first) { + $leader: 'and '; + } + + // separate the string features from the value numbers + $string: null; + $numbers: null; + @each $val in $feature { + @if type-of($val) == string { + $string: $val; + } + @else { + @if type-of($numbers) == 'null' { + $numbers: $val; + } + @else { + $numbers: append($numbers, $val); + } + } + } + + $parsed: breakpoint-parse-triple-default($string, nth($numbers, 1), nth($numbers, 2)); + + @return $leader + $parsed; + +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_default-pair.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_default-pair.scss new file mode 100644 index 0000000..f88432c --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_default-pair.scss @@ -0,0 +1,21 @@ +@function breakpoint-parse-default-pair($first, $second) { + $default: breakpoint-get('default pair'); + $min: ''; + $max: ''; + + // Sort into min and max + $min: min($first, $second); + $max: max($first, $second); + + // Set Context + $context-setter: private-breakpoint-set-context(min-#{$default}, $min); + $context-setter: private-breakpoint-set-context(max-#{$default}, $max); + + // Make them EMs if need be + @if (breakpoint-get('to ems') == true) { + $min: breakpoint-to-base-em($min); + $max: breakpoint-to-base-em($max); + } + + @return '(min-#{$default}: #{$min}) and (max-#{$default}: #{$max})'; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_default.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_default.scss new file mode 100644 index 0000000..73190ed --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_default.scss @@ -0,0 +1,22 @@ +@function breakpoint-parse-double-default($first, $second) { + $feature: ''; + $value: ''; + + @if type-of($first) == 'string' { + $feature: $first; + $value: $second; + } + @else { + $feature: $second; + $value: $first; + } + + // Set Context + $context-setter: private-breakpoint-set-context($feature, $value); + + @if (breakpoint-get('to ems') == true) { + $value: breakpoint-to-base-em($value); + } + + @return '(#{$feature}: #{$value})' +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_double-string.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_double-string.scss new file mode 100644 index 0000000..c6fd0cb --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/double/_double-string.scss @@ -0,0 +1,22 @@ +@function breakpoint-parse-double-string($first, $second) { + $feature: ''; + $value: ''; + + // Test to see which is the feature and which is the value + @if (breakpoint-string-value($first) == true) { + $feature: $first; + $value: $second; + } + @else if (breakpoint-string-value($second) == true) { + $feature: $second; + $value: $first; + } + @else { + @warn "Neither #{$first} nor #{$second} is a valid media query name."; + } + + // Set Context + $context-setter: private-breakpoint-set-context($feature, $value); + + @return '(#{$feature}: #{$value})'; +} \ No newline at end of file diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/resolution/_resolution.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/resolution/_resolution.scss new file mode 100644 index 0000000..3680421 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/resolution/_resolution.scss @@ -0,0 +1,60 @@ +@function breakpoint-make-resolutions($resolution) { + $length: length($resolution); + + $output: (); + + @if $length == 2 { + $feature: ''; + $value: ''; + + // Find which is number + @if type-of(nth($resolution, 1)) == 'number' { + $value: nth($resolution, 1); + } + @else { + $value: nth($resolution, 2); + } + + // Determine min/max/standard + @if index($resolution, 'min-resolution') { + $feature: 'min-'; + } + @else if index($resolution, 'max-resolution') { + $feature: 'max-'; + } + + $standard: '(#{$feature}resolution: #{$value})'; + + // If we're not dealing with dppx, + @if unit($value) != 'dppx' { + $base: 96dpi; + @if unit($value) == 'dpcm' { + $base: 243.84dpcm; + } + // Write out feature tests + $webkit: ''; + $moz: ''; + $webkit: '(-webkit-#{$feature}device-pixel-ratio: #{$value / $base})'; + $moz: '(#{$feature}-moz-device-pixel-ratio: #{$value / $base})'; + // Append to output + $output: append($output, $standard, space); + $output: append($output, $webkit, space); + $output: append($output, $moz, space); + } + @else { + $webkit: ''; + $moz: ''; + $webkit: '(-webkit-#{$feature}device-pixel-ratio: #{$value / 1dppx})'; + $moz: '(#{$feature}-moz-device-pixel-ratio: #{$value / 1dppx})'; + $fallback: '(#{$feature}resolution: #{$value / 1dppx * 96dpi})'; + // Append to output + $output: append($output, $standard, space); + $output: append($output, $webkit, space); + $output: append($output, $moz, space); + $output: append($output, $fallback, space); + } + + } + + @return $output; +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/single/_default.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/single/_default.scss new file mode 100644 index 0000000..503ef42 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/single/_default.scss @@ -0,0 +1,13 @@ +@function breakpoint-parse-default($feature) { + $default: breakpoint-get('default feature'); + + // Set Context + $context-setter: private-breakpoint-set-context($default, $feature); + + @if (breakpoint-get('to ems') == true) and (type-of($feature) == 'number') { + @return '#{$default}: #{breakpoint-to-base-em($feature)}'; + } + @else { + @return '#{$default}: #{$feature}'; + } +} diff --git a/docs/_sass/basically-basic/vendor/breakpoint/parsers/triple/_default.scss b/docs/_sass/basically-basic/vendor/breakpoint/parsers/triple/_default.scss new file mode 100644 index 0000000..7fa418d --- /dev/null +++ b/docs/_sass/basically-basic/vendor/breakpoint/parsers/triple/_default.scss @@ -0,0 +1,18 @@ +@function breakpoint-parse-triple-default($feature, $first, $second) { + + // Sort into min and max + $min: min($first, $second); + $max: max($first, $second); + + // Set Context + $context-setter: private-breakpoint-set-context(min-#{$feature}, $min); + $context-setter: private-breakpoint-set-context(max-#{$feature}, $max); + + // Make them EMs if need be + @if (breakpoint-get('to ems') == true) { + $min: breakpoint-to-base-em($min); + $max: breakpoint-to-base-em($max); + } + + @return '(min-#{$feature}: #{$min}) and (max-#{$feature}: #{$max})'; +} diff --git a/docs/_sass/basically-basic/vendor/susy/_su.scss b/docs/_sass/basically-basic/vendor/susy/_su.scss new file mode 100644 index 0000000..a145415 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/_su.scss @@ -0,0 +1,7 @@ +// Su +// == + +@import "su/utilities"; +@import "su/settings"; +@import "su/validation"; +@import "su/grid"; diff --git a/docs/_sass/basically-basic/vendor/susy/language/_susy.scss b/docs/_sass/basically-basic/vendor/susy/language/_susy.scss new file mode 100644 index 0000000..0ee9cae --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/_susy.scss @@ -0,0 +1,24 @@ +// Susy Next Syntax +// ================ + +$susy-version: 2.1; + +@import "../su"; +@import "../output/float"; + +@import "susy/settings"; +@import "susy/validation"; +@import "susy/grids"; +@import "susy/box-sizing"; +@import "susy/context"; +@import "susy/background"; +@import "susy/container"; +@import "susy/span"; +@import "susy/gutters"; +@import "susy/isolate"; +@import "susy/gallery"; +@import "susy/rows"; +@import "susy/margins"; +@import "susy/padding"; +@import "susy/bleed"; +@import "susy/breakpoint-plugin"; diff --git a/docs/_sass/basically-basic/vendor/susy/language/_susyone.scss b/docs/_sass/basically-basic/vendor/susy/language/_susyone.scss new file mode 100644 index 0000000..a783d3a --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/_susyone.scss @@ -0,0 +1,13 @@ +// --------------------------------------------------------------------------- +// Partials + +$susy-version: 1.5; + +@import "susyone/settings"; +@import "susyone/functions"; +@import "susyone/grid"; +@import "susyone/isolation"; +@import "susyone/padding"; +@import "susyone/margin"; +@import "susyone/media"; +@import "susyone/background"; diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_background.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_background.scss new file mode 100644 index 0000000..d39dc72 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_background.scss @@ -0,0 +1,385 @@ +// Background Grid Syntax +// ====================== + +$susy-overlay-grid-head-exists: false; + + +// Show Grid/s +// ----------- +// Show grid on any element using either background or overlay. +// - [$grid] : +@mixin show-grid( + $grid: $susy +) { + $inspect: $grid; + $_output: debug-get(output, $grid); + + @include susy-inspect(show-grid, $inspect); + @if $_output == overlay and susy-get(debug image, $grid) != hide { + @include overlay-grid($grid); + } @else { + @include background-grid($grid); + } +} + +@mixin show-grids( + $grid: $susy +) { + @include show-grid($grid); +} + +// Background Grid +// --------------- +// Show a grid background on any element. +// - [$grid] : +@mixin background-grid( + $grid: $susy +) { + $inspect : $grid; + $_output : get-background($grid); + + @if length($_output) > 0 { + $_flow: susy-get(flow, $grid); + + $_image: (); + @each $name, $layer in map-get($_output, image) { + $_direction: if($name == baseline, to bottom, to to($_flow)); + $_image: append($_image, linear-gradient($_direction, $layer), comma); + } + $_output: map-merge($_output, (image: $_image)); + + @include background-grid-output($_output...); + @include susy-inspect(background-grid, $inspect); + } +} + + +// Overlay Grid +// ------------ +// Generate an icon to trigger grid-overlays on any given elements. +// $grids... : [] [, ]* +@mixin overlay-grid ( + $grid: $susy +) { + @if not($susy-overlay-grid-head-exists) { + @at-root head { @include overlay-head($grid); } + @at-root head:before { @include overlay-trigger; } + @at-root head:hover { @include overlay-trigger-hover; } + $susy-overlay-grid-head-exists: true !global; + } + + head:hover ~ &, + head:hover ~ body & { + position: relative; + &:before { + @include grid-overlay-base; + @include background-grid($grid); + } + } +} + + +// [Private] Overlay Trigger +// ------------------------- +@mixin overlay-trigger { + content: "|||"; + display: block; + padding: 5px 10px; + font: { + family: sans-serif; + size: 16px; + weight: bold; + } +} + + +// [Private] Overlay Trigger Hover +// ------------------------------- +@mixin overlay-trigger-hover { + background: rgba(white, .5); + color: red; +} + + +// [Private] Overlay Head +// ---------------------- +// styles to create grid overlay toggle +@mixin overlay-head ( + $grid: $susy +) { + $_toggle: debug-get(toggle, $grid); + $_horz: null; + $_vert: null; + + @each $side in $_toggle { + $_horz: if($side == left or $side == right, $side, $_horz); + $_vert: if($side == top or $side == bottom, $side, $_vert); + } + + display: block; + position: fixed; + #{$_horz}: 10px; + #{$_vert}: 10px; + z-index: 999; + color: #333; + background: rgba(white, .25); +} + + +// [Private] Grid Overlay Base +// --------------------------- +// Base styles for generating a grid overlay +@mixin grid-overlay-base() { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + content: " "; + z-index: 998; +} + + +// Get Symmetrical Background +// -------------------------- +// - $grid: +@function get-background-sym( + $grid +) { + $grid : parse-grid($grid); + $_gutters : susy-get(gutters, $grid); + $_column-width : susy-get(column-width, $grid); + $_math : susy-get(math, $grid); + + $_color : debug-get(color); + $_trans : transparent; + $_light : lighten($_color, 15%); + + $_end : 1 + $_gutters; + $_after : percentage(1/$_end); + $_stops : (); + $_size : span(1 $grid wide); + + @if is-inside($grid) { + $_stops: $_color, $_light; + } @else if is-split($grid) { + $_split: $_gutters/2; + $_before: percentage($_split/$_end); + $_after: percentage((1 + $_split)/$_end); + $_stops: $_trans $_before, $_color $_before, $_light $_after, $_trans $_after; + } @else { + $_stops: $_color, $_light $_after, $_trans $_after; + } + + @if $_math == static { + $_size: valid-column-math($_math, $_column-width) * $_end; + } + + $_output: ( + image: (columns: $_stops), + size: $_size, + ); + + @return $_output; +} + + +// Get Asymmetrical Inside +// ----------------------- +// - $grid: +@function get-asym-inside( + $grid +) { + $grid : parse-grid($grid); + $_columns : susy-get(columns, $grid); + + $_color : debug-get(color); + $_light : lighten($_color, 15%); + $_stops : (); + + @for $location from 1 through susy-count($_columns) { + $this-stop: (); + + @if $location == 1 { + $this-stop: append($this-stop, $_color, comma); + } @else { + $start: parse-span(1 at $location $grid); + $start: get-isolation($start); + $this-stop: append($this-stop, $_color $start, comma); + } + + @if $location == susy-count($_columns) { + $this-stop: append($this-stop, $_light, comma); + } @else { + $_end: parse-span(1 at ($location + 1) $grid); + $_end: get-isolation($_end); + $this-stop: append($this-stop, $_light $_end, comma); + } + + $_stops: join($_stops, $this-stop, comma); + } + + @return $_stops; +} + + +// Get Asymmetrical Split +// ---------------------- +// - $grid: +@function get-asym-split( + $grid +) { + $grid : parse-grid($grid); + $_columns : susy-get(columns, $grid); + + $_color : debug-get(color); + $_light : lighten($_color, 15%); + $_stops : (); + + @for $location from 1 through susy-count($_columns) { + $this-stop: (); + + $start: parse-span(1 at $location $grid); + $start: get-isolation($start); + $this-stop: append($this-stop, transparent $start, comma); + $this-stop: append($this-stop, $_color $start, comma); + + $_end: $start + span(1 at $location $grid); + $this-stop: append($this-stop, $_light $_end, comma); + $this-stop: append($this-stop, transparent $_end, comma); + + $_stops: join($_stops, $this-stop, comma); + } + + @return $_stops; +} + + +// Get Asymmetrical Outside +// ------------------------ +// - $grid: +@function get-asym-outside( + $grid +) { + $grid : parse-grid($grid); + $_columns : susy-get(columns, $grid); + + $_color : debug-get(color); + $_light : lighten($_color, 15%); + $_trans : transparent; + $_stops : (); + + @for $location from 1 through susy-count($_columns) { + $this-stop: (); + + @if $location == 1 { + $this-stop: append($this-stop, $_color, comma); + } @else { + $start: parse-span(1 at $location $grid); + $start: get-isolation($start); + $this-stop: append($this-stop, $_color $start, comma); + } + + @if $location == susy-count($_columns) { + $this-stop: append($this-stop, $_light, comma); + } @else { + $gutter: get-span-width(first $location $grid); + + $_end: parse-span(1 at ($location + 1) $grid); + $_end: get-isolation($_end); + + $gutter: $_light $gutter, $_trans $gutter, $_trans $_end; + $this-stop: join($this-stop, $gutter, comma); + } + + $_stops: join($_stops, $this-stop, comma); + } + + @return $_stops; +} + + +// Get Asymmetrical Background +// --------------------------- +// - $grid: +@function get-background-asym( + $grid +) { + $_stops: (); + + @if is-inside($grid) { + $_stops: get-asym-inside($grid); + } @else if is-split($grid) { + $_stops: get-asym-split($grid); + } @else { + $_stops: get-asym-outside($grid); + } + + @return (image: (columns: $_stops)); +} + + +// Get Background +// -------------- +// - $grid: +@function get-background( + $grid +) { + $grid : parse-grid($grid); + $_show : susy-get(debug image, $grid); + $_return : (); + + @if $_show and $_show != 'hide' { + $_columns: susy-get(columns, $grid); + + @if $_show != 'show-baseline' { + $_sym: is-symmetrical($_columns); + $_return: if($_sym, get-background-sym($grid), get-background-asym($grid)); + $_return: map-merge($_return, (clip: content-box)); + } + + @if $_show != 'show-columns' + and global-variable-exists(base-line-height) + and type-of($base-line-height) == 'number' + and not unitless($base-line-height) { + $_color: variable-exists('grid-background-baseline-color'); + $_color: if($_color, $grid-background-baseline-color, #000); + + $_image: map-get($_return, image); + $_size: map-get($_return, size); + $_baseline: (baseline: ($_color 1px, transparent 1px)); + $_baseline-size: 100% $base-line-height; + + $_return: map-merge($_return, ( + image: if($_image, map-merge($_image, $_baseline), $_baseline), + size: if($_size, ($_size, $_baseline-size), $_baseline-size), + )); + + @if $_show == 'show' { + $_clip: map-get($_return, clip); + $_return: map-merge($_return, (clip: join($_clip, border-box, comma))); + } + } @else if $_show == 'show-baseline' { + @warn 'Please provide a $base-line-height with the desired height and units'; + } + } + + @if map-get($_return, image) { + $_return: map-merge($_return, (flow: susy-get(flow, $grid))); + } + + @return $_return; +} + + +// Get Debug +// --------- +// Return the value of a debug setting +// - $key: +@function debug-get( + $key, + $grid: $susy +) { + $key: join(debug, $key, space); + @return susy-get($key, $grid); +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_bleed.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_bleed.scss new file mode 100644 index 0000000..8ef5974 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_bleed.scss @@ -0,0 +1,200 @@ +// Bleed Syntax +// ============ + +// Bleed +// ----- +// Add negative margins, and equal positive padding to create bleed. +// - $bleed : +@mixin bleed( + $bleed: 0 gutter() +) { + $inspect : $bleed; + $output : get-bleed($bleed); + + @if susy-get(global-box-sizing) != content-box { + $output: map-merge((box-sizing: content-box), $output); + } + + @include susy-inspect(bleed, $inspect); + @include output($output); +} + + +// Bleed-x +// ------- +// Shortcut for horizontal bleed. +// - $bleed : +@mixin bleed-x( + $bleed: gutter() +) { + $bleed : parse-span($bleed); + $trbl : susy-get(span, $bleed); + + @if length($trbl) == 1 { + $bleed: map-merge($bleed, (span: 0 nth($trbl, 1))); + } @else if length($trbl) == 2 { + $bleed: map-merge($bleed, (span: 0 nth($trbl, 2) 0 nth($trbl, 1))); + } @else { + @warn 'bleed-x only takes 2 lengths, but #{length($trbl)} were passed.'; + } + + @include bleed($bleed); +} + + +// Bleed-y +// ------- +// Shortcut for vertical bleed. +// - $bleed : +@mixin bleed-y( + $bleed: if(function-exists(rhythm), rhythm(1), 1em) +) { + $bleed : parse-span($bleed); + $trbl : susy-get(span, $bleed); + + @if length($trbl) == 1 { + $bleed: map-merge($bleed, (span: nth($trbl, 1) 0)); + } @else if length($trbl) == 2 { + $bleed: map-merge($bleed, (span: nth($trbl, 1) 0 nth($trbl, 2) 0)); + } @else { + @warn 'bleed-y only takes 2 lengths, but #{length($trbl)} were passed.'; + } + + @include bleed($bleed); +} + + +// Get Bleed +// --------- +// Return bleed output values +// - $bleed: +@function get-bleed( + $bleed +) { + $bleed : map-merge((spread: wide), parse-span($bleed)); + $trbl : susy-get(span, $bleed); + $short : null; + $output : (); + + @for $i from 1 through length($trbl) { + $this: nth($trbl, $i); + $new: (); + $margin: null; + $padding: null; + $padding-x: null; + + @if $this > 0 { + $this: map-merge($bleed, (span: $this)); + $margin: span($this); + $padding: $margin; + $padding-x: $padding; + } + + @if $margin and $margin > 0 { + $margin: - $margin; + + @if is-inside($this) { + $gutter: gutter($this); + $join: if($gutter and comparable($padding, $gutter), true, false); + $padding-x: if($join and $padding > 0, $padding + $gutter, $padding); + } + } + + @if $i == 1 { + $new: ( + margin-top: $margin, + padding-top: $padding, + margin-right: $margin, + padding-right: $padding-x, + margin-bottom: $margin, + padding-bottom: $padding, + margin-left: $margin, + padding-left: $padding-x, + ); + } @else if $i == 2 { + $new: ( + margin-right: $margin, + padding-right: $padding-x, + margin-left: $margin, + padding-left: $padding-x, + ); + } @else if $i == 3 { + $new: ( + margin-bottom: $margin, + padding-bottom: $padding, + ); + } @else if $i == 4 { + $new: ( + margin-left: $margin, + padding-left: $padding-x, + ); + } + + $output: map-merge($output, $new); + } + + @each $prop, $value in $output { + $output: if($value == 0, map-merge($output, ($prop: null)), $output); + } + + @return bleed-shorthand($output); +} + +// Bleed Shorthand +// --------------- +// Convert bleed output into shorthand when possible. +// - $bleed: +@function bleed-shorthand( + $bleed +) { + $margin: (); + $padding: (); + $return: (); + + @each $key, $value in $bleed { + @if str-index($key, margin) { + $margin: map-merge($margin, ($key: $value)); + } @else if str-index($key, padding) > 0 { + $padding: map-merge($padding, ($key: $value)); + } + } + + $props: ( + margin: $margin, + padding: $padding, + ); + + @each $name, $map in $props { + $four: if(length(map-keys($map)) == 4, true, false); + $null: if(index(map-values($map), null), true, false); + + @if $four and not($null) { + $top: map-get($map, '#{$name}-top'); + $right: map-get($map, '#{$name}-right'); + $bottom: map-get($map, '#{$name}-bottom'); + $left: map-get($map, '#{$name}-left'); + + $tb: if($top == $bottom, $top, null); + $rl: if($right == $left, $right, null); + $all: if($tb == $rl, $tb, null); + + $new: if($all, $all, null); + + @if not($new) { + @if $tb and $rl { + $new: $tb $rl; + } @else if $rl { + $new: $top $rl $bottom; + } @else { + $new: $top $right $bottom $left; + } + } + + $return: map-merge($return, ($name: $new)); + } @else { + $return: map-merge($return, $map); + } + } + + @return $return; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_box-sizing.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_box-sizing.scss new file mode 100644 index 0000000..f551241 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_box-sizing.scss @@ -0,0 +1,47 @@ +// Susy Box Sizing +// ================= + +// Global Box Sizing +// ----------------- +// Set a box model globally on all elements. +// - [$box]: border-box | content-box +// - [$inherit]: true | false +@mixin global-box-sizing( + $box: susy-get(global-box-sizing), + $inherit: false +) { + $inspect: $box; + + @if $inherit { + @at-root { + html { @include output((box-sizing: $box)); } + *, *:before, *:after { box-sizing: inherit; } + } + } @else { + *, *:before, *:after { @include output((box-sizing: $box)); } + } + + @include susy-inspect(global-box-sizing, $inspect); + @include update-box-model($box); +} + +// Border Box Sizing +// ----------------- +// A legacy shortcut... +// - [$inherit]: true | false +@mixin border-box-sizing( + $inherit: false +) { + @include global-box-sizing(border-box, $inherit); +} + +// Update Box Model +// ---------------- +// PRIVATE: Updates global box model setting +@mixin update-box-model( + $box +) { + @if $box != susy-get(global-box-sizing) { + @include susy-set(global-box-sizing, $box); + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_breakpoint-plugin.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_breakpoint-plugin.scss new file mode 100644 index 0000000..30de288 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_breakpoint-plugin.scss @@ -0,0 +1,185 @@ +// Breakpoint Integration +// ====================== + +$susy-media: () !default; +$susy-media-fallback: false !default; + +$_susy-media-context: (); + + +// Susy Breakpoint +// --------------- +// Change grids at different media query breakpoints. +// - $query : [] | | +// - $layout : +// - $no-query : | +@mixin susy-breakpoint( + $query, + $layout: false, + $no-query: $susy-media-fallback +) { + @include susy-media-router($query, $no-query) { + @if $layout { + @include with-layout($layout) { + @content; + } + } @else { + @content; + } + } +} + + +// Susy Media +// ---------- +// - $query: [] | +// - $no-query: | +@mixin susy-media( + $query, + $no-query: $susy-media-fallback +) { + $old-context: $_susy-media-context; + $name: if(map-has-key($susy-media, $query), $query, null); + $query: susy-get-media($query); + $query: susy-parse-media($query); + + @include susy-media-context($query, $name); + + @if $no-query and type-of($no-query) != string { + @content; + } @else { + @media #{susy-render-media($query)} { + @content; + } + + @if type-of($no-query) == string { + #{$no-query} & { + @content; + } + } + } + + @include susy-media-context($old-context, $clean: true); +} + + +// Media Router +// ------------ +// Rout media arguments to the correct mixin. +@mixin susy-media-router( + $query, + $no-query: $susy-media-fallback +) { + @if susy-support(breakpoint, (mixin: breakpoint), $warn: false) { + @include breakpoint($query, $no-query) { + @content; + } + } @else { + @include susy-media($query, $no-query) { + @content; + } + } +} + + +// Update Context +// ------------- +// Set the new media context +@mixin susy-media-context( + $query, + $name: null, + $clean: false +) { + $query: map-merge((name: $name), $query); + + @if $clean { + $_susy-media-context: $query !global; + } @else { + $_susy-media-context: map-merge($_susy-media-context, $query) !global; + } +} + + +// Media Context +// ------------- +// Return the full media context, or a single media property (e.g. min-width) +@function susy-media-context( + $property: false +) { + @if $property { + @return map-get($_susy-media-context, $property); + } @else { + @return $_susy-media-context; + } +} + + +// Get Media +// --------- +// Return a named media-query from $susy-media. +// - $name: +@function susy-get-media( + $name +) { + @if map-has-key($susy-media, $name) { + $map-value: map-get($susy-media, $name); + @if ($name == $map-value) { + $name: $map-value; + } @else { + $name: susy-get-media($map-value); + } + } + + @return $name; +} + + +// Render Media +// ------------ +// Build a media-query string from various media settings +@function susy-render-media( + $query +) { + $output: null; + @each $property, $value in $query { + $string: null; + + @if $property == media { + $string: $value; + } @else { + $string: '(#{$property}: #{$value})'; + } + + $output: if($output, '#{$output} and #{$string}', $string); + } + + @return $output; +} + + +// Parse Media +// ----------- +// Return parsed media-query settings based on shorthand +@function susy-parse-media( + $query +) { + $mq: null; + @if type-of($query) == map { + $mq: $query; + } @else if type-of($query) == number { + $mq: (min-width: $query); + } @else if type-of($query) == list and length($query) == 2 { + @if type-of(nth($query, 1)) == number { + $mq: ( + min-width: min($query...), + max-width: max($query...), + ); + } @else { + $mq: (nth($query, 1): nth($query, 2)); + } + } @else { + $mq: (media: '#{$query}'); + } + + @return $mq; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_container.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_container.scss new file mode 100644 index 0000000..e5f4a85 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_container.scss @@ -0,0 +1,81 @@ +// Container Syntax +// ================ + +// Container [mixin] +// ----------------- +// Set a container element +// - [$layout] : +@mixin container( + $layout: $susy +) { + $inspect : $layout; + $layout : parse-grid($layout); + + $_width : get-container-width($layout); + $_justify : parse-container-position(susy-get(container-position, $layout)); + $_property : if(susy-get(math, $layout) == static, width, max-width); + + $_box : susy-get(box-sizing, $layout); + + @if $_box { + @include output((box-sizing: $_box)); + } + + @include susy-inspect(container, $inspect); + @include float-container($_width, $_justify, $_property); + @include show-grid($layout); +} + +// Container [function] +// -------------------- +// Return container width +// - [$layout] : +@function container( + $layout: $susy +) { + $layout: parse-grid($layout); + @return get-container-width($layout); +} + +// Get Container Width +// ------------------- +// Calculate the container width +// - [$layout]: +@function get-container-width( + $layout: $susy +) { + $layout : parse-grid($layout); + $_width : susy-get(container, $layout); + $_column-width : susy-get(column-width, $layout); + $_math : susy-get(math, $layout); + + @if not($_width) or $_width == auto { + @if valid-column-math($_math, $_column-width) { + $_columns : susy-get(columns, $layout); + $_gutters : susy-get(gutters, $layout); + $_spread : if(is-split($layout), wide, narrow); + $_width : susy-sum($_columns, $_gutters, $_spread) * $_column-width; + } @else { + $_width: 100%; + } + } + + @return $_width; +} + +// Parse Container Position +// ------------------------ +// Parse the $container-position into margin values. +// - [$justify] : left | center | right | [] +@function parse-container-position( + $justify: map-get($susy-defaults, container-position) +) { + $_return: if($justify == left, 0, auto) if($justify == right, 0, auto); + + @if not(index(left right center, $justify)) { + $_return: nth($justify, 1); + $_return: $_return if(length($justify) > 1, nth($justify, 2), $_return); + } + + @return $_return; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_context.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_context.scss new file mode 100644 index 0000000..52e12a6 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_context.scss @@ -0,0 +1,36 @@ +// Context Syntax +// ============== + +// Nested [function] +// ----------------- +// Return a subset grid for nested context. +// - $context : +@function nested( + $context +) { + $context : parse-span($context); + $span : susy-get(span, $context); + $location : get-location($context); + $columns : susy-get(columns, $context); + + @return susy-slice($span, $location, $columns); +} + +// Nested [mixin] +// -------------- +// Use a subset grid for a nested context +// - $context : +// - @content : +@mixin nested( + $context +) { + $inspect : $context; + $context : parse-span($context); + $old : susy-get(columns); + $susy : map-merge($susy, (columns: nested($context))) !global; + + @include susy-inspect(nested, $inspect); + @content; + + $susy : map-merge($susy, (columns: $old)) !global; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_gallery.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_gallery.scss new file mode 100644 index 0000000..e59b9a0 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_gallery.scss @@ -0,0 +1,94 @@ +// Gallery Syntax +// ============== + +// Gallery +// ------- +// Create an isolated gallery +// - $span : +// - [$selector] : child | of-type +@mixin gallery( + $span, + $selector: child +) { + $inspect : $span; + $span : parse-span($span); + $span : map-merge($span, (location: 1)); + + $n : susy-get(span, $span); + $columns : susy-get(columns, $span); + $context : susy-count($columns); + $flow : susy-get(flow, $span); + + $inside : is-inside($span); + $from : from($flow); + $line : floor($context / $n); + $symmetrical : is-symmetrical($columns); + + $output: ( + width : null, + float : from, + margin-before : null, + margin-after : null, + padding-before : null, + padding-after : null, + flow : $flow, + ); + + @if $inside { + $gutters: get-gutters($span); + $output: map-merge($output, ( + padding-before: map-get($gutters, before), + padding-after: map-get($gutters, after), + )); + } + + @if $symmetrical { + $output: map-merge($output, (width: get-span-width($span))); + } + + $box : susy-get(box-sizing, $span); + $global-box : if(susy-get(global-box-sizing) == 'border-box', true, false); + + @include susy-inspect(gallery, $inspect); + + // Collective Output + @if $box == border-box or ($inside and not($box) and not($global-box)) { + @include output((box-sizing: border-box)); + } @else if $box == content-box { + @include output((box-sizing: content-box)); + } + + @include float-span-output($output...); + + // Individual Loop + @for $item from 1 through $line { + $nth: '#{$line}n + #{$item}'; + &:nth-#{$selector}(#{$nth}) { + // Individual Prep + $output: ( + width : if($symmetrical, null, get-span-width($span)), + float : null, + margin-before : get-isolation($span), + margin-after : -100%, + padding-before : null, + padding-after : null, + flow : $flow, + ); + + // Individual Output + @include float-span-output($output...); + + @if get-edge($span) == first { + @include break; + @include first($span); + } @else { + @include nobreak; + } + + // Individual Location Increment + $location: get-location($span) + $n; + $location: if($location > $context, 1, $location); + $span: map-merge($span, (location: $location)); + } + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_grids.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_grids.scss new file mode 100644 index 0000000..4fa72ed --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_grids.scss @@ -0,0 +1,64 @@ +// Grid Syntax +// =========== + + +// Layout +// ------ +// Set a new layout using a shorthand +// - $layout: +// - $clean: boolean +@mixin layout( + $layout, + $clean: false +) { + $inspect : $layout; + $susy : _get-layout($layout, $clean) !global; + + @include susy-inspect(layout, $inspect); +} + + +// Use Grid +// -------- +// Use an arbitrary layout for a section of code +// - $layout: +// - $clean: boolean +@mixin with-layout( + $layout, + $clean: false +) { + $inspect : $layout; + $old : $susy; + $susy : _get-layout($layout, $clean) !global; + + @include susy-inspect(with-layout, $inspect); + + @content; + + $susy: $old !global; +} + + +// Layout +// ------ +// Return a parsed layout map based on shorthand syntax +// - $layout: +@function layout( + $layout: $susy +) { + @return parse-grid($layout); +} + + +// Get Layout +// ---------- +// Return a new layout based on current and given settings +// - $layout: +// - $clean: boolean +@function _get-layout( + $layout, + $clean: false +) { + $layout: layout($layout); + @return if($clean, $layout, _susy-deep-merge($susy, $layout)); +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_gutters.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_gutters.scss new file mode 100644 index 0000000..efe7ac2 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_gutters.scss @@ -0,0 +1,154 @@ +// Gutter Syntax +// ============= + + +// Gutters +// ------- +// Set gutters on an element. +// - [$span] : +@mixin gutters( + $span: $susy +) { + $inspect : $span; + $span : parse-gutters($span); + $_gutters : get-gutters($span); + + $_output: ( + before: map-get($_gutters, before), + after: map-get($_gutters, after), + flow: susy-get(flow, $span), + ); + + @include susy-inspect(gutters, $inspect); + + @if is-inside($span) { + @include padding-output($_output...); + } @else { + @include margin-output($_output...); + } +} + +@mixin gutter( + $span: $susy +) { + @include gutters($span); +} + + +// Gutter +// ------ +// Return the width of a gutter. +// - [$span] : +@function gutter( + $span: $susy +) { + $span: parse-gutters($span); + + $_gutters: get-gutters($span); + $_gutters: map-get($_gutters, before) or map-get($_gutters, after); + + @return $_gutters; +} + +@function gutters( + $span: $susy +) { + @return gutter($span); +} + + +// Get Gutter Width +// ---------------- +// Return gutter width. +// - [$context]: +@function get-gutter-width( + $context: $susy +) { + $context : parse-gutters($context); + + $_gutters : susy-get(gutters, $context); + $_gutter : susy-get(gutter-override, $context); + + @if $_gutters and ($_gutters > 0) and not($_gutter) { + $_column-width: susy-get(column-width, $context); + $_math: gutter-math($context); + @if $_math == static { + $_gutter: $_gutters * valid-column-math($_math, $_column-width); + } @else { + $_columns : susy-get(columns, $context); + $_spread : if(is-split($context), wide, susy-get(spread, $context)); + $_gutter : percentage($_gutters / susy-sum($_columns, $_gutters, $_spread)); + } + } + + $_gutter: if($_gutter == 'no-gutters' or $_gutter == 'no-gutter', null, $_gutter); + + @return $_gutter; +} + + +// Get Gutters +// ----------- +// Return before and after gutter values. +// - [$context]: +@function get-gutters( + $context: $susy +) { + $context : parse-gutters($context); + + $_gutter-position : susy-get(gutter-position, $context); + $_gutter : get-gutter-width($context); + + $_return : (before: null, after: null); + + @if is-split($context) and $_gutter { + $_gutter: $_gutter / 2; + $_return: map-merge($_return, (before: $_gutter, after: $_gutter)); + } @else { + $_return: map-merge($_return, ($_gutter-position: $_gutter)); + } + + @return $_return; +} + + +// Is Inside +// --------- +// Returns true if gutters are inside. +// $context: +@function is-inside( + $context +) { + $_inside: inside inside-static; + $_gutter-position: susy-get(gutter-position, $context); + + @return if(index($_inside, $_gutter-position), true, false); +} + + +// Is Split +// -------- +// Returns true if gutters are split. +// $context: +@function is-split( + $context +) { + $_split: split inside inside-static; + $_gutter-position: susy-get(gutter-position, $context); + + @return if(index($_split, $_gutter-position), true, false); +} + + +// Gutter Math +// ----------- +// Return the math to use for gutter calculations +// $context: +@function gutter-math( + $context: $susy +) { + $_return : susy-get(math, $context); + $_return : if(susy-get(gutter-position, $context) == inside-static, static, $_return); + + @return $_return; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_isolate.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_isolate.scss new file mode 100644 index 0000000..7ddfd7f --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_isolate.scss @@ -0,0 +1,77 @@ +// Isolation Syntax +// ================ + + +// Isolate [Mixin] +// --------------- +// Set isolation as an override. +// - $location: +@mixin isolate( + $isolate: 1 +) { + $inspect: $isolate; + + $output: ( + push: isolate($isolate), + flow: susy-get(flow, $isolate), + ); + + @include susy-inspect(isolate, $inspect); + @include isolate-output($output...); +} + + +// Isolate [function] +// ------------------ +// Return an isolation offset width. +// - $location: +@function isolate( + $isolate: 1 +) { + $isolate: parse-span($isolate); + $isolation: susy-get(span, $isolate); + + @if $isolation and not(get-location($isolate)) { + $new: ( + span: null, + location: $isolation, + ); + $isolate: map-merge($isolate, $new); + } + + @return get-isolation($isolate); +} + + +// Get Isolation +// ------------- +// Return the isolation offset width +// - $input: +@function get-isolation( + $input +) { + $location : get-location($input); + $columns : susy-get(columns, $input); + $width : null; + + @if type-of($location) == number and not(unitless($location)) { + $width: $location; + } @else if $location { + $push: $location - 1; + @if $push > 0 { + $push: map-merge($input, ( + span: $push, + location: 1, + spread: wide, + )); + $width: get-span-width($push); + } + } + + @if susy-get(gutter-position, $input) == split + and susy-get(gutters, $input) > 0 { + $width: if($width == null, gutters($input), $width + gutters($input)); + } + + @return $width or 0; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_margins.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_margins.scss new file mode 100644 index 0000000..cb36839 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_margins.scss @@ -0,0 +1,94 @@ +// Margin Syntax +// ============= + +// Pre +// --- +// Add spanning-margins before an element. +// - $span : +@mixin pre( + $span +) { + $inspect: $span; + $span : map-merge((spread: wide), parse-span($span)); + $flow : susy-get(flow, $span); + $split : if(susy-get(gutter-position, $span) == split, true, false); + $gutter : gutter($span); + $span : span($span); + $width : if($split and $gutter, $span + $gutter, $span); + + @include susy-inspect(pre, $inspect); + @include margin-output($width, null, $flow); +} + +// Post +// ---- +// Add spanning-margins after an element. +// - $span : +@mixin post( + $span +) { + $inspect : $span; + $span : map-merge((spread: wide), parse-span($span)); + $flow : susy-get(flow, $span); + $split : if(susy-get(gutter-position, $span) == split, true, false); + $width : if($split, span($span) + gutter($span), span($span)); + + @include susy-inspect(post, $inspect); + @include margin-output(null, $width, $flow); +} + +// Push +// ---- +// Simple synonymn for pre. +// - $span : +@mixin push( + $span +) { + @include pre($span); +} + +// Pull +// ---- +// Add negative spanning-margins before an element. +// - $span : +@mixin pull( + $span +) { + $inspect : $span; + $span : map-merge((spread: wide), parse-span($span)); + $flow : susy-get(flow, $span); + $split : if(susy-get(gutter-position, $span) == split, true, false); + $width : if($split, 0 - span($span) + gutter($span), 0 - span($span)); + + @include susy-inspect(pull, $inspect); + @include margin-output($width, null, $flow); +} + +// Squish +// ------ +// Add spanning-margins before and after an element. +// - $pre : +// - [$post] : +@mixin squish( + $pre, + $post: false +) { + $inspect : ($pre, $post); + $pre : map-merge((spread: wide), parse-span($pre)); + + @if $post { + $post: map-merge((spread: wide), parse-span($post)); + } @else { + $span: susy-get(span, $pre); + @if length($span) > 1 { + $pre: map-merge($pre, (span: nth($span, 1))); + $post: map-merge($pre, (span: nth($span, 2))); + } @else { + $post: $pre; + } + } + + @include susy-inspect(squish, $inspect); + @include pre($pre); + @include post($post); +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_padding.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_padding.scss new file mode 100644 index 0000000..cdf75c8 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_padding.scss @@ -0,0 +1,74 @@ +// Padding Syntax +// ============== + +// Prefix +// ------ +// Add spanning-padding before an element. +// - $span : +@mixin prefix( + $span +) { + $inspect : $span; + $span : map-merge((spread: wide), parse-span($span)); + $flow : susy-get(flow, $span); + $width : span($span); + + @if is-inside($span) { + $gutter: gutter($span); + $width: if($gutter and comparable($width, $gutter), $width + $gutter, $width); + } + + @include susy-inspect(prefix, $inspect); + @include padding-output($width, null, $flow); +} + +// Suffix +// ------ +// Add spanning-padding after an element. +// - $span : +@mixin suffix( + $span +) { + $inspect : $span; + $span : map-merge((spread: wide), parse-span($span)); + $flow : susy-get(flow, $span); + $width : span($span); + + @if is-inside($span) { + $gutter: gutter($span); + $width: if($gutter and comparable($width, $gutter), $width + $gutter, $width); + } + + @include susy-inspect(suffix, $inspect); + @include padding-output(null, $width, $flow); +} + +// Pad +// --- +// Add spanning-padding before and after an element. +// - $pre : +// - [$post] : +@mixin pad( + $pre, + $post: false +) { + $inspect : ($pre, $post); + $pre : map-merge((spread: wide), parse-span($pre)); + + @if $post { + $post: map-merge((spread: wide), parse-span($post)); + } @else { + $span: susy-get(span, $pre); + @if length($span) > 1 { + $pre: map-merge($pre, (span: nth($span, 1))); + $post: map-merge($pre, (span: nth($span, 2))); + } @else { + $post: $pre; + } + } + + @include susy-inspect(pad, $inspect); + @include prefix($pre); + @include suffix($post); + +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_rows.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_rows.scss new file mode 100644 index 0000000..d726431 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_rows.scss @@ -0,0 +1,138 @@ +// Row Start & End +// =============== + +// Break +// ----- +// Apply to any element that should force a line break. +@mixin break { + @include output((clear: both)); +} + + +// NoBreak +// ------- +// Cancel the break() effect, e.g. when using media queries. +@mixin nobreak { + @include output((clear: none)); +} + + +// Full +// ---- +// - [$context]: +@mixin full( + $context: $susy +) { + $inspect : $context; + @include susy-inspect(full, $inspect); + @include span(full of parse-grid($context) break); +} + + +// First +// ----- +// - [$context]: +@mixin first( + $context: $susy +) { + $inspect : $context; + $context : parse-grid($context); + $flow : susy-get(flow, $context); + + @include susy-inspect(first, $inspect); + @if not(is-split($context)) { + @include float-first($flow); + } +} + +@mixin alpha( + $context: $susy +) { + @include first($context); +} + + +// Last +// ---- +// - [$context]: +@mixin last( + $context: $susy +) { + $inspect : $context; + $context : parse-grid($context); + + @include susy-inspect(last, $inspect); + + $output: ( + flow: susy-get(flow, $context), + last-flow: susy-get(last-flow, $context), + margin: if(is-split($context), null, 0), + ); + + @include float-last($output...); +} + +@mixin omega( + $context: $susy +) { + @include last($context); +} + + +// Get Edge +// -------- +// Calculate edge value based on location, if possible +@function get-edge( + $span +) { + $span : parse-span($span); + $edge : susy-get(edge, $span); + + @if not($edge) { + $count: susy-count(susy-get(columns, $span)); + $location: susy-get(location, $span); + $n: susy-get(span, $span); + + $number: if(type-of($location) == number, true, false); + $index: if($number and unitless($location), true, false); + + @if $n == $count { + $edge: full; + } @else if $location and $n and $index { + @if $location == 1 { + $edge: if($n == $count, full, first); + } @else if $location + $n - 1 == $count { + $edge: last; + } + } + } + + @if $edge == alpha or $edge == omega { + $edge: if($edge == alpha, first, last); + } + + @return $edge; +} + + +// Get Location +// ------------ +// Calculate location value based on edge, if possible +@function get-location( + $span +) { + $span : parse-span($span); + $location : susy-get(location, $span); + $edge : get-edge($span); + $n : susy-get(span, $span); + + @if $edge and not($location) and type-of($n) == number and unitless($n) { + @if $edge == first { + $location: 1; + } @else if $edge == last { + $location: susy-count(susy-get(columns, $span)) - $n + 1; + } + } + + @return $location +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_settings.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_settings.scss new file mode 100644 index 0000000..9b5d897 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_settings.scss @@ -0,0 +1,216 @@ +// Susy Settings +// ============= + +// Susy Language Defaults +// ---------------------- +// - PRIVATE +@include susy-defaults(( + container: auto, + math: fluid, + output: float, + container-position: center, + gutter-position: after, + global-box-sizing: content-box, + debug: ( + image: hide, + color: rgba(#66f, .25), + output: background, + toggle: top right, + ), +)); + + +// Valid Keyword Values +// -------------------- +// - PRIVATE: DONT'T TOUCH +$susy-keywords: ( + container: auto, + math: static fluid, + output: isolate float, + container-position: left center right, + flow: ltr rtl, + gutter-position: before after split inside inside-static, + box-sizing: border-box content-box, + span: full, + edge: first alpha last omega full, + spread: narrow wide wider, + gutter-override: no-gutters no-gutter, + role: nest, + clear: break nobreak, + debug image: show hide show-columns show-baseline, + debug output: background overlay, +); + + +// Parse Susy Keywords and Maps +// ---------------------------- +@function parse-settings( + $short: $susy +) { + $_return: (); + + @if type-of($short) == map { + $_return: $short; + } @else { + @each $item in $short { + // strings + @if type-of($item) == string { + @each $key, $value in $susy-keywords { + @if index($value, $item) { + $_key-value: append($key, $item); + $_return: _susy-deep-set($_return, $_key-value...); + } + } + // maps + } @else if type-of($item) == map { + $_return: map-merge($_return, $item); + } + } + } + + @return $_return; +} + + +// Parse Columns & Gutters +// ----------------------- +@function parse-layout( + $short +) { + $_return: (); + $_columns: (); + $_gutters: null; + + @if not(unitless(nth(nth($short, 1), 1))) { + $_gutters: nth($short, 1); + } @else { + $_columns: (columns: nth($short, 1)); + $_gutters: if(length($short) > 1, nth($short, 2), $_gutters); + } + + @if type-of($_gutters) == list and length($_gutters) > 0 { + $_gutters: ( + gutters: nth($_gutters, 2) / nth($_gutters, 1), + column-width: nth($_gutters, 1), + ); + } @else { + $_gutters: if($_gutters, (gutters: $_gutters), ()); + } + + $_return: map-merge($_return, $_columns); + $_return: map-merge($_return, $_gutters); + + @return $_return; +} + + +// Parse Grid/Context +// ------------------ +@function parse-grid( + $short: $susy +) { + $_return: parse-settings($short); + $_layout: (); + + @if type-of($short) == map { + $_return: $short; + } @else { + @each $item in $short { + // number or list + @if type-of($item) == number or type-of($item) == list { + @if type-of($item) == list or unitless($item) { + $_layout: append($_layout, $item); + } @else { + $_return: map-merge($_return, (container: $item)); + } + } + } + + $_layout: if(length($_layout) > 0, parse-layout($_layout), $_layout); + } + + @return map-merge($_return, $_layout); +} + + +// Parse Span +// ---------- +@function parse-span( + $short, + $key: span +) { + $_return: (); + + @if type-of($short) == map { + $_return: $short; + } @else { + $_at: index($short, at); + + @if $_at { + $_loci: $_at + 1; + $_location: nth($short, $_loci); + $_return: map-merge($_return, (location: $_location)); + $short: set-nth($short, $_at, null); + $short: set-nth($short, $_loci, null); + } + + $_i: 1; + $_span: (); + + @while $_i <= length($short) { + $_this: nth($short, $_i); + + @if type-of($_this) == number { + $_span: append($_span, $_this); + $short: set-nth($short, $_i, null); + } @else if $_this == of { + $short: set-nth($short, $_i, null); + $_i: length($short) + 1; + } + + $_i: $_i + 1; + } + + @if length($_span) > 0 { + $_span: if(length($_span) == 1, nth($_span, 1), $_span); + $_return: map-merge($_return, ($key: $_span)); + } + + $_return: map-merge($_return, parse-grid($short)); + } + + @return $_return; +} + + +// Parse Gutters +// ------------- +@function parse-gutters( + $short: $susy +) { + $_gutters: parse-span($short, gutter-override); + $_span: susy-get(gutter-override, $_gutters); + + @if $_span and not(map-get($_gutters, columns)) { + $_context: (); + $_new: (); + + @each $item in $_span { + @if type-of($item) == number and unitless($item) { + $_context: append($_context, $item); + } @else { + $_new: append($_new, $item); + } + } + + $_context: parse-grid($_context); + $_new: if(length($_new) == 0, null, $_new); + $_new: if(length($_new) == 1, nth($_new, 1), $_new); + $_new: (gutter-override: if($_new != $_span, $_new, $_span)); + + $_gutters: map-merge($_gutters, $_new); + $_gutters: map-merge($_gutters, $_context); + } + + @return $_gutters; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_span.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_span.scss new file mode 100644 index 0000000..86ccda9 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_span.scss @@ -0,0 +1,163 @@ +// Span Syntax +// =========== + +// Span [mixin] +// ------------ +// Set a spanning element using shorthand syntax. +// - $span : +@mixin span( + $span +) { + $inspect: $span; + $span: parse-span($span); + $output: span-math($span); + $nesting: susy-get(span, $span); + $clear: susy-get(clear, $span); + + $box: susy-get(box-sizing, $span); + $content-box: if(susy-get(global-box-sizing) != 'border-box', true, false); + $box: $box or if(is-inside($span) and $content-box, border-box, null); + + @if $clear == break { + @include break; + } @else if $clear == nobreak { + @include nobreak; + } + + @include susy-inspect(span, $inspect); + @include output((box-sizing: $box)); + @include float-span-output($output...); + + @if valid-columns($nesting, silent) { + @include nested($span) { @content; } + } @else { + @content; + } +} + +// Span [function] +// --------------- +// Return the width of a span. +// - $span : +@function span( + $span +) { + @return get-span-width($span); +} + +// Span Math +// --------- +// Get all the span results. +// - $span: +@function span-math( + $span +) { + $nest : if(susy-get(role, $span) == nest, true, false); + $split-nest : if(is-split($span) and $nest, true, false); + $edge : get-edge($span); + $location : get-location($span); + + $float : from; + $padding-before : null; + $padding-after : null; + $margin-before : null; + $margin-after : null; + + // calculate widths + $spread: index(map-values($span), spread); + $span: if($split-nest and not($spread), map-merge($span, (spread: wide)), $span); + $width: get-span-width($span); + $gutters: get-gutters($span); + + // apply gutters + @if is-inside($span) { + @if not(susy-get(role, $span)) { + $padding-before: map-get($gutters, before); + $padding-after: map-get($gutters, after); + } + } @else { + @if not($split-nest) { + $margin-before: map-get($gutters, before); + $margin-after: map-get($gutters, after); + } + } + + // special margin handling + @if susy-get(output, $span) == isolate and $location { + $margin-before: get-isolation($span); + $margin-after: -100%; + } @else if $edge { + $is-split: is-split($span); + $pos: susy-get(gutter-position, $span); + + @if $edge == last { + $float: susy-get(last-flow, $span); + } + + @if not($is-split) { + @if $edge == full or ($edge == first and $pos == before) { + $margin-before: 0; + } + @if $edge == full or ($edge == last and $pos == after) { + $margin-after: 0; + } + } + + } + + @return ( + width : $width, + float : $float, + margin-before : $margin-before, + margin-after : $margin-after, + padding-before : $padding-before, + padding-after : $padding-after, + flow : susy-get(flow, $span), + ); +} + +// Get Span Width +// -------------- +// Return span width. +// - $span: +@function get-span-width( + $span +) { + $span : parse-span($span); + + $n : susy-get(span, $span); + $location : get-location($span); + $columns : susy-get(columns, $span); + $gutters : susy-get(gutters, $span); + $spread : susy-get(spread, $span); + + $context : null; + $span-sum : null; + $width : null; + + @if $n == 'full' { + $pos: susy-get(gutter-position, $span); + $role: susy-get(role, $span); + $n: if($pos == split and $role != nest, susy-count($columns), 100%); + } + + @if type-of($n) != number { + @warn "(#{type-of($n)}) #{$n} is not a valid span."; + } @else if unitless($n) { + $context: susy-sum($columns, $gutters, if(is-split($span), wide, narrow)); + $spread: if(is-inside($span), $spread or wide, $spread); + $span-sum: susy($n, $location, $columns, $gutters, $spread); + + $_math: susy-get(math, $span); + $_column-width: susy-get(column-width, $span); + @if $_math == static { + $width: $span-sum * valid-column-math($_math, $_column-width); + } @else { + $width: percentage($span-sum / $context); + } + } @else { + $width: $n; + } + + @return $width; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susy/_validation.scss b/docs/_sass/basically-basic/vendor/susy/language/susy/_validation.scss new file mode 100644 index 0000000..a235b17 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susy/_validation.scss @@ -0,0 +1,16 @@ +// Validation +// ========== + + +// Validate Column Math +// -------------------- +@function valid-column-math( + $math, + $column-width +) { + @if $math == static and not($column-width) { + @error 'Static math requires a valid column-width setting.'; + } + + @return $column-width; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_background.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_background.scss new file mode 100644 index 0000000..38c6726 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_background.scss @@ -0,0 +1,18 @@ +// --------------------------------------------------------------------------- +// Imports + +@import "compass/layout/grid-background"; +@import "compass/css3/background-origin"; +@import "compass/css3/background-clip"; + +// --------------------------------------------------------------------------- +// Susy Grid Background +// +// A wrapper for the compass "column-grid-background" mixin +// Uses all your settings to create a grid background for a container element. +// Note: Sub-pixel rounding can lead to several pixels of variation between browsers. +@mixin susy-grid-background(){ + @include column-grid-background($total-columns, column(), gutter(), 0); + @include background-origin(content-box); + @include background-clip(content-box); +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_functions.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_functions.scss new file mode 100644 index 0000000..6818458 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_functions.scss @@ -0,0 +1,377 @@ +// --------------------------------------------------------------------------- +// Imports + +// We need access to some basic font settings for handling media-queries. +@import "compass/typography/vertical_rhythm"; + +// For now, we also need this... +$browser-default-font-size-px : 16px; +$browser-default-font-size-percent : 100%; +$browser-default-font-size-pt : 12pt; + +$rem-with-px-fallback : true !default; + +// --------------------------------------------------------------------------- +// Sass list Functions + +// Return a list with specific items removed +// +// filter($list, $target) +// - $list : The list to filter. +// - $target : An item to be removed from the list. +@function filter($list, $target) { + $clean: compact(); + @if index($list, $target) { + @each $item in $list { + $clean: if($item == $target, $clean, append($clean, $item)); + } + } @else { $clean: $list; } + @return $clean; +} + +// --------------------------------------------------------------------------- +// Don't use static output when it will break things + +// Switch element-level output to fluid, when container-width is wrong for static +// +// fix-static-misalignment([$style, $width]) +// - $style: $container-style. +// - $width: $container-width. +@function fix-static-misalignment( + $style: $container-style, + $width: $container-width +) { + @if $container-width and $container-width != container-outer-width($width: false) { + $style: fluid; + } + @return $style; +} + +// --------------------------------------------------------------------------- +// Grid Functions + +// Returns the full width of a grid based on your grid settings. +// +// $columns : The number of columns to get width for. +@function columns-width( + $columns : $total-columns +) { + @if round($columns) != $columns { + @warn "Susy works best with integer column-spans." + + "For partial-columns, you may need to finesse the math by hand using functions directly."; + } + @return ($columns * $column-width) + (if($columns >= 1, ceil($columns - 1), 0) * $gutter-width); +} + +// Return the grid width after adding or subtracting grid padding +// +// $width : the width of the grid without padding; +// $operation : ( add | subtract ) if padding should be added or subtracted; +@function handle-grid-padding( + $width, + $operation : subtract +) { + $pad: $grid-padding*2; + + @if comparable($width, $grid-padding) { + $width: if($operation == subtract, $width - $pad, $width + $pad); + } @else { + @warn "$grid-padding must be set in units comparable to the container width."; + } + + @return $width; +} + +// Return the full outer width of a Container element. +// +// $columns : The number of columns in the Grid Layout. +@function container-outer-width( + $columns : $total-columns, + $width : $container-width +) { + $outerwidth: if($width, $width, columns-width($columns)); + + @if $width { + @if not($border-box-sizing) { $outerwidth: handle-grid-padding($outerwidth, subtract); } + } @else { + @if $border-box-sizing { $outerwidth: handle-grid-padding($outerwidth, add); } + } + + @return $outerwidth; +} + +// Return the percentage width of a single column in a given 'context'. +// +// $context : The grid context in columns, if nested. +// $style : The container style to use. +@function column( + $context : $total-columns, + $style : fix-static-misalignment() +) { + @return if($style == static, $column-width, relative-width($column-width, $context)); +} + +// Return the percentage width of multiple 'columns' in a given 'context'. +// +// $columns : The number of columns to get relative width for. +// $context : The grid context in columns, if nested. +// $style : The container style to use. +@function columns( + $columns, + $context : $total-columns, + $style : fix-static-misalignment() +) { + @return if($style == static, columns-width($columns), relative-width(columns-width($columns), $context)); +} + +// Return the percentage width of a single gutter in a given 'context'. +// +// $context : The grid context in columns, if nested. +// $style : The container style to use. +@function gutter( + $context : $total-columns, + $style : fix-static-misalignment() +) { + @return if($style == static, $gutter-width, relative-width($gutter-width, $context)); +} + +// Return the percentage width of a given value in a given 'context'. +// +// $width : Any given width value. +// $context : The grid context in columns, if nested. +@function relative-width( + $width, + $context : $total-columns +) { + @return percentage($width / columns-width($context)); +} + +// Return the total space occupied by multiple columns and associated gutters. +// Useful for adding padding or margins (prefix, suffix, push, pull, etc.) +// +// $columns : The number of columns to get relative space for. +// $context : The grid context in columns, if nested. +// $style : The container style to use. +@function space( + $columns, + $context : $total-columns, + $style : fix-static-misalignment() +) { + @return columns($columns, $context, $style) + if($columns >= 1, gutter($context, $style), 0); +} + +// Accept a list including column-count and (optional) position. +// Return either the column count or the position alone. +// +// $columns : the list to split and interprate. +// $request : The value to return, either 'columns' or 'position'. +@function split-columns-value( + $columns, + $request : columns +) { + $pos : false; + $cols : false; + + @each $var in $columns { + @if (type-of($var) == 'string') { + $pos: $var; + } @else { + @if (type-of($var) == 'number') and (unitless($var)) { + $cols: $var; + } @else { + @warn '"#{$var}" is not a valid part of "$columns: #{$columns}" in the columns() mixin.'; + } + } + } + + @if $request == 'columns' { + @return $cols; + } @else { + @if $request == 'position' { + @return $pos; + } @else { + @warn '"#{$request}" is not a valid value for $request'; + } + } +} + +// Accept nth-selector variables, and format them as a valid CSS3 selector. +// +// $n : [first | only | last | ] +// $selector : [child | last-child | of-type | last-of-type ] +@function format-nth( + $n : last, + $selector : child +) { + @if ($n == 'last') or ($n =='first') or ($n =='only') { + $selector: '#{$n}-#{$selector}'; + } @else { + $selector: 'nth-#{$selector}(#{$n})'; + } + @return $selector; +} + +// --------------------------------------------------------------------------- +// Media Functions + +// Return an em value adjusted to match the browser default font size. +// Note: This only works if actual sizes are set relative to browser defaults. +// +// $ems : The initial value to be converted. +// $font-size : The current font-size in. +@function base-ems( + $ems, + $font-size: $base-font-size +){ + $font-size : if(unit($ems) == 'rem', $base-font-size, $font-size); + $unit : unit($font-size); + $mult : $ems / ($ems * 0 + 1); + + @if $unit == 'px' { + @return $font-size / $browser-default-font-size-px * $mult * 1em; + } + @else if $unit == '%' { + @return $font-size / $browser-default-font-size-percent * $mult * 1em; + } + @else if $unit == 'em' { + @return $font-size / 1em * $mult * 1em; + } + @else if $unit == 'pt' { + @return $font-size / $browser-default-font-size-pt * $mult * 1em; + } + @else { + @warn 'Variable $base-font-size does not have a valid font unit. Valid units for fonts in CSS are px, pt, em, and %.'; + } +} + +// This name will be deprecated... +@function absolute-ems( + $ems, + $font-size: $base-font-size +){ + @return base-ems( $ems, $font-size); + } + +// Return a length, after any em-values have been sent through absolute-ems(). +// +// $length : The length value to be checked and adjusted if necessary. +// $font-size : The current font-size in px. +@function fix-ems( + $length, + $font-size: $base-font-size +){ + @if $length { + @if (unit($length) == 'em') or (unit($length) == 'rem') { + $length: absolute-ems($length,$font-size); + } + } + @return $length; +} + +// Sort a list of arguments into "$min $layout $max $ie" order, and return the list. +// +// $media-layout : a list of values [$min $layout $max $ie] including... +// : - one unitless number (columns in a layout) +// : - two optional lengths (min and max-width media-query breakpoints). +// : - one optional boolean or string to trigger fallback support for IE. +// $font-size : [optional] The base font-size of your layout, if you are using ems. +// : - defaults to $base-font-size +@function medialayout( + $media-layout, + $font-size: $base-font-size +) { + $media : false; + $min : false; + $layout : false; + $max : false; + $ie : false; + $has-layout : false; + + @each $val in $media-layout { + @if (type-of($val) == "number") { + @if unitless($val) { + $layout : $val; + $has-layout : true; + } @else { + @if ($has-layout) and not($media) { + $max: $val; + } @else { + @if $media { + $media: join($media,$val); + } @else { + $media: $val; + } + } + } + } @else { + $ie: $val; + } + } + @if (length($media) > 0) { + @if (length($media) == 1) { + $min: nth($media,1); + } @else { + $min: nth($media,1); + $max: nth($media,2); + @if comparable($min, $max) { + @if ($min > $max) { + $max: nth($media,1); + $min: nth($media,2); + } + } @else { + @warn "Can't compare incompatible units." + + "Using #{$min} for min-width, and #{$max} for max-width"; + } + @if (length($media) > 2) { + @warn "You can only send two lengths: a min-width and an (optional) max-width." + + "You sent #{length($media)}: #{$media}"; + } + } + } + + // media-queries must be set in ems relative to the browser default + // rather than the font-size set in CSS. + $min: fix-ems($min,$font-size); + $max: fix-ems($max,$font-size); + + @return $min $layout $max $ie; +} + +// Return the nearest layout (column-count) above a given breakpoint. +// +// $min : The min-width media-query breakpoint above which to establish a new layout. +@function get-layout( + $min +) { + $min : fix-ems($min); + $return : false; + + @if comparable($min, $column-width) { + $return : ceil(($min + $gutter-width) / ($column-width + $gutter-width)); + } @else { + @warn "Can't determine a layout, becuse #{$min} and #{$column-width} are not comparable."; + } + + @return $return; +} + +// Check to see if a given $media-layout list is simply the default. +// +// $media-layout : a list of values including - +// : One unitless number (columns in a layout) +// : Two optional lengths (min and max-width media-query breakpoints). +// : One optional boolean or string to trigger fallback support for IE. +@function is-default-layout( + $media-layout +) { + $media-layout : medialayout($media-layout); + $min : nth($media-layout,1); + $layout-cols : nth($media-layout,2); + $max : nth($media-layout,3); + + @if $min or $max { + @return false; + } @else { + @return if($layout-cols == $total-columns,true,false); + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_grid.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_grid.scss new file mode 100644 index 0000000..491c622 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_grid.scss @@ -0,0 +1,312 @@ +// --------------------------------------------------------------------------- +// Imports + +@import "compass/utilities/general/clearfix"; +@import "compass/css3/box-sizing"; + +// --------------------------------------------------------------------------- +// Border-Box Sizing + +// Apply the border-box sizing model to all elements +// and adjust the grid math appropriately. +@mixin border-box-sizing { + $border-box-sizing: true !global; + * { @include box-sizing(border-box); } +} + +// --------------------------------------------------------------------------- +// Container + +// Set the width of a container +// +// $columns : The number of columns in the Grid Layout. +@mixin set-container-width( + $columns : $total-columns, + $style : $container-style, + $px-vals : $pixel-values-only +){ + $width: container-outer-width($columns); + + @if $style == 'static' { + @if $px-vals == true { + width: round(convert-length($width, px)); + } @else { + @include rem(width, $width); + } + } @else { + @if $style == 'fluid' { + @if unit($width) == '%' { + @if $px-vals == true { + width: round(convert-length($width, px)); + } @else { + @include rem(width, $width); + } + } + } @else { + @if $px-vals == true { + max-width: round(convert-length($width, px)); + } @else { + @include rem(max-width, $width); + } + + @include for-legacy-browser(ie,"6") { + @if unit($width) == 'rem' { + _width: round(convert-length($width, px)); + } @else { + _width: $width; + } + } + } + } +} + +// Set the outer grid-containing element(s). +// +// $columns : The number of columns in the container. +@mixin apply-container( + $columns : $total-columns, + $px-vals : $pixel-values-only +){ + @include pie-clearfix; + @include set-container-width($columns); + @if $px-vals == true { + padding-left: round(convert-length($grid-padding, px)); + padding-right: round(convert-length($grid-padding, px)); + } @else { + @include rem(padding-left, $grid-padding); + @include rem(padding-right, $grid-padding); + } + margin: { left: auto; right: auto; } +} + +// Set one or more layouts on a grid-containing element at any number of media-query breakpoints. +// +// $media-layout-1 : [default:$total-columns] A list of values including - +// : One unitless number (representing columns in a layout) +// : Two optional lengths (representing min and max-width media-query breakpoints). +// $media-layout-2 ...-10 : [optional] Same as $media-layout-1 +@mixin container( + $media-layouts... +){ + $media-layouts: if(length($media-layouts) > 0, $media-layouts, $total-columns); + + @each $ml in $media-layouts { + @if is-default-layout($ml) { + @include apply-container; + } @else { + @include at-breakpoint($ml) { + @include apply-container; + } + } + } +} + +// --------------------------------------------------------------------------- +// Columns + +// Create a grid element spanning any number of 'columns' in a grid 'context'. +// $columns : The number of columns to span. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $padding : [optional] Padding applied to the inside of individual grid columns. +// : Padding is only output if one or two values are specified (e.g. 1em or 10px 20px) +// : Padding values are applied only on the horizontal axis in from-to order +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin span-columns( + $columns, + $context : $total-columns, + $padding : false, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + $to : opposite-position($from); + $pos : split-columns-value($columns,position); + $cols : split-columns-value($columns,columns); + $pad-from : if($style == static, 0 * $gutter-width, relative-width(0 * $gutter-width, $context)); + $pad-to : if($style == static, 0 * $gutter-width, relative-width(0 * $gutter-width, $context)); + + @if $padding != false { + $pad-from : nth($padding, 1); + + @if length($padding) > 1 { + $pad-to: nth($padding, 2); + } @else { + $pad-to: $pad-from; + } + + $pad-from : if($style == static, $pad-from, relative-width($pad-from, $context)); + $pad-to : if($style == static, $pad-to, relative-width($pad-to, $context)); + + padding-#{$from}: $pad-from; + padding-#{$to}: $pad-to; + } + + width: columns($cols, $context, $style) - if($border-box-sizing, 0, $pad-to + $pad-from); + + @if ($pos == 'omega') { + @include omega($from); + } @else { + float: $from; + margin-#{$to}: gutter($context, $style); + @include for-legacy-browser(ie, "6") { + display: inline; + } + } +} + +// Apply to elements spanning the last column, to account for the page edge. +// Only needed as an override. Normally 'omega' can just be called by `columns`. +// +// $from : The start-direction for your document. +@mixin omega( + $from : $from-direction +) { + $from : unquote($from); + $to : opposite-position($from); + $hack : opposite-position($omega-float); + + float: $omega-float; + margin-#{$to}: 0; + + @include for-legacy-browser(ie, "6", "7") { + *margin-#{$hack}: - $gutter-width; + @include for-legacy-browser(ie, "6") { + display: inline; + } + } +} + +// Shortcut to apply omega to a specific subset of elements. +// +// $n : [first | only | last | ] +// $selector : [child | last-child | of-type | last-of-type ] +// $from : The start-direction for your document. +@mixin nth-omega( + $n : last, + $selector : child, + $from : $from-direction +) { + $from : unquote($from); + + &:#{format-nth($n,$selector)} { + @if $n == "first" { + @include omega($from); + } @else { + @include with-browser-ranges(css-sel3) { + @include omega($from); + } + } + } +} + + + +// --------------------------------------------------------------------------- +// Resets + +// Reset a '+columns' grid element to default block behavior +// +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +@mixin reset-columns( + $from: $from-direction +) { + $from : unquote($from); + $to : opposite-position($from); + $hack : opposite-position($omega-float); + + float: none; + width: auto; + margin-#{$to}: auto; + + @include for-legacy-browser(ie, "6", "7") { + *margin-#{$hack}: auto; + @include for-legacy-browser(ie, "6") { + display: block; + } + } +} + +// Apply to elements previously set as omega. +// This will return floats and margins back to non-omega settigns. +// +// $context : [optional] The context (columns spanned by parent). +// $from : The start-direction for your document. +// $style : The container style to use. +@mixin remove-omega( + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + $to : opposite-position($from); + $hack : opposite-position($omega-float); + + float: $from; + margin-#{$to}: gutter($context, $style); + + @include for-legacy-browser(ie, "6", "7") { + *margin-#{$hack}: auto; + } +} + +// Shortcut to apply remove-omega to a specific subset of elements. +// +// $n : [first | only | last | ] +// $selector : [child | last-child | of-type | last-of-type ] +// $context : [optional] The context (columns spanned by parent). +// $from : The start-direction for your document. +// $style : The container style to use. +@mixin remove-nth-omega( + $n : last, + $selector : child, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + + &:#{format-nth($n,$selector)} { + @if $n == "first" { + @include remove-omega($context, $from, $style); + } @else { + @include with-browser-ranges(css-sel3) { + @include remove-omega($context, $from, $style); + } + } + } +} + + +// --------------------------------------------------------------------------- +// Change Settings + +@mixin with-grid-settings( + $columns: $total-columns, + $width: $column-width, + $gutter: $gutter-width, + $padding: $grid-padding +) { + // keep the defaults around + $default-columns: $total-columns; + $default-width: $column-width; + $default-gutter: $gutter-width; + $default-padding: $grid-padding; + + // use the new settings + $total-columns: $columns !global; + $column-width: $width !global; + $gutter-width: $gutter !global; + $grid-padding: $padding !global; + + // apply to contents + @content; + + // re-instate the defaults + $total-columns: $default-columns !global; + $column-width: $default-width !global; + $gutter-width: $default-gutter !global; + $grid-padding: $default-padding !global; +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_isolation.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_isolation.scss new file mode 100644 index 0000000..2b70038 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_isolation.scss @@ -0,0 +1,51 @@ +// --------------------------------------------------------------------------- +// Isolation + +// Isolate the position of a grid element (use in addition to span-columns) +// +// $location : The grid column to isolate in, relative to the container; +// $context : [optional] The context (columns spanned by parent). +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +@mixin isolate( + $location, + $context: $total-columns, + $from: $from-direction, + $style: fix-static-misalignment() +) { + $to: opposite-position($from); + margin-#{$to}: -100%; + margin-#{$from}: space($location - 1, $context, $style); +} + +// Isolate a group of elements in a grid, using nth-child selectors +// +// $columns : The column-width of each item on the grid; +// $context : [optional] The context (columns spanned by parent). +// $selector : [child | of-type | last-of-type ] (default is 'child') +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +@mixin isolate-grid( + $columns, + $context: $total-columns, + $selector: 'child', + $from: $from-direction, + $style: fix-static-misalignment() +) { + $to: opposite-position($from); + $location: 1; + $line: floor($context / $columns); + + @include span-columns($columns, $context, $from: $from, $style: $style); + margin-#{$to}: -100%; + + @for $item from 1 through $line { + $nth: '#{$line}n + #{$item}'; + &:#{format-nth($nth,$selector)} { + margin-#{$from}: space($location - 1, $context, $style); + @if $location == 1 { clear: $from; } + @else { clear: none; } + + $location: $location + $columns; + @if $location > $context { $location: 1; } + } + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_margin.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_margin.scss new file mode 100644 index 0000000..accbbe6 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_margin.scss @@ -0,0 +1,93 @@ +// --------------------------------------------------------------------------- +// Margin Mixins + +// Apply 'columns' margin before an element to push it along the grid. +// +// $columns : The number of columns to span. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin pre( + $columns, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + margin-#{$from}: space($columns, $context, $style); +} + +// 'push' is a synonymn for 'pre' +@mixin push( + $columns, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + @include pre($columns, $context, $from, $style); +} + +// Apply negative 'columns' margin before an element to pull it along the grid. +// +// $columns : The number of columns to span. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin pull( + $columns, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + margin-#{$from}: 0 - space($columns, $context, $style); +} + +// Apply 'columns' margin after an element to contain it in a grid. +// +// $columns : The number of columns to span. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin post( + $columns, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + $to : opposite-position($from); + margin-#{$to}: space($columns, $context, $style); +} + +// Apply 'columns' before and/or after an element to contain it on a grid. +// +// $pre : The number of columns to add as margin before. +// $post : The number of columns to add as margin after. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin squish( + $pre : false, + $post : false, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + @if $pre { + @include pre($pre, $context, $from, $style) + } + @if $post { + @include post($post, $context, $from, $style) + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_media.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_media.scss new file mode 100644 index 0000000..ca860fc --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_media.scss @@ -0,0 +1,105 @@ +// --------------------------------------------------------------------------- +// Media Mixins + +// Create a new layout context for (@content) descendants. +// +// $layout-cols : a (unitless) number of columns to use for this layout. +@mixin layout( + $layout-cols +) { + // store default $total-columns setting for later, then change it. + $default-layout : $total-columns; + $total-columns : $layout-cols !global; + + // apply children in this new layout context. + @content; + + // return to default $total-columns setting. + $total-columns : $default-layout !global; +} + +// Nest a block of code inside a new media-query and layout context. +// +// $media-layout : a list of values [$min $layout $max $ie] including... +// : - one unitless number (columns in a layout) +// : - two optional lengths (min and max-width media-query breakpoints). +// : - one optional boolean or string to trigger fallback support for IE. +// $font-size : [optional] The base font-size of your layout, if you are using ems. +// : - defaults to $base-font-size +@mixin at-breakpoint( + $media-layout, + $font-size: $base-font-size +) { + $media-layout : medialayout($media-layout,$font-size); + $min : nth($media-layout,1); + $layout : nth($media-layout,2); + $max : nth($media-layout,3); + $ie : nth($media-layout,4); + + @if not($breakpoint-media-output) and not($breakpoint-ie-output) and not($breakpoint-raw-output) { + @warn "Either $breakpoint-media-output, $breakpoint-ie-output, or $breakpoint-raw-output must be true for at-breakpoint to work."; + } + + // We need to have either a min-width breakpoint or a layout in order to proceed. + @if $min or $layout or $max { + + // If we don't have a layout, we create one based on the min-width. + @if not($layout) { + $layout: get-layout($min); + } + + // If we still don't have a layout, we have a problem. + @if $layout { + // Set our new layout context. + @include layout($layout) { + @if $breakpoint-media-output { + @include with-browser-ranges(css-mediaqueries) { + @if $min and $max { + // Both $min and $max + @media (min-width: $min) and (max-width: $max) { + @content; + } + } @else { + @if not($min) and not($max) { + // Neither $min nor $max: + // We can create a breakpoint based on the number of columns in the layout. + $min: fix-ems(container-outer-width($width: false)); + } + @if $min { + // Min only: + @media (min-width: $min) { + @content; + } + } @else { + // Max only: + @media (max-width: $max) { + @content; + } + } + } + } + } + // Set an IE fallback + @if $ie and $breakpoint-ie-output { + @if (type-of($ie) == 'bool') { + $ie: 'lt-ie9'; + } + .#{$ie} & { + @content; + } + } + + @if $breakpoint-raw-output { + @content; + } + } + } @else { + @warn "We were unable to determine a layout for your breakpoint."; + } + + } @else { + @warn "You need to provide either a valid layout (number of columns)" + + "or a valid media-query min-width breakpoint (length)."; + } + +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_padding.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_padding.scss new file mode 100644 index 0000000..8e6394a --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_padding.scss @@ -0,0 +1,92 @@ +// --------------------------------------------------------------------------- +// Padding Mixins + +// add empty colums as padding before an element. +// $columns : The number of columns to prefix. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin prefix( + $columns, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + padding-#{$from}: space($columns, $context, $style); +} + +// add empty colums as padding after an element. +// $columns : The number of columns to suffix. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin suffix( + $columns, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + $to : opposite-position($from); + padding-#{$to}: space($columns, $context, $style); +} + +// add empty colums as padding before and after an element. +// $columns : The number of columns to pad. +// $context : [optional] The context (columns spanned by parent). +// : Context is required on any nested elements. +// : Context MUST NOT be declared on a root element. +// $from : The start direction of your layout (e.g. 'left' for ltr languages) +// $style : The container style to use. +@mixin pad( + $prefix : false, + $suffix : false, + $context : $total-columns, + $from : $from-direction, + $style : fix-static-misalignment() +) { + $from : unquote($from); + @if $prefix { + @include prefix($prefix, $context, $from, $style); + } + @if $suffix { + @include suffix($suffix, $context, $from, $style); + } +} + +// Bleed into colums with margin/padding on any side of an element. +// $width : The side of the bleed. +// : Any unit-length will be used directly. +// : Any unitless number will be used as a column-count. +// : Use "2 of 6" format to represent 2 cals in a 6-col nested context. +// $sides : One or more sides to bleed [ top | right | bottom | left | all ]. +// $style : The container style to use. +@mixin bleed( + $width: $grid-padding, + $sides: left right, + $style: fix-static-misalignment() +) { + @if $border-box-sizing { @include box-sizing(content-box) } + + @if type-of($width) == 'list' { + $width: filter($width, of); + $width: space(nth($width,1), nth($width,2), $style); + } @else if unitless($width) { + $width: space($width, $style: $style); + } + + @if $sides == 'all' { + margin: - $width; + padding: $width; + } @else { + @each $side in $sides { + margin-#{$side}: - $width; + padding-#{$side}: $width; + } + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/language/susyone/_settings.scss b/docs/_sass/basically-basic/vendor/susy/language/susyone/_settings.scss new file mode 100644 index 0000000..e8ff9c8 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/language/susyone/_settings.scss @@ -0,0 +1,60 @@ +// --------------------------------------------------------------------------- +// Susy Settings + +// The total number of columns in the grid +$total-columns : 12 !default; + +// The width of columns and gutters. +// These must all be set with the comparable units. +$column-width : 4em !default; +$gutter-width : 1em !default; + +// Padding on the left and right of a Grid Container. +$grid-padding : $gutter-width !default; + +// --------------------------------------------------------------------------- +// Advanced Settings + +// From Direction: +// Controls for right-to-left or bi-directional sites. +$from-direction : left !default; + +// Omega Float Direction: +// The direction that +omega elements are floated by deafult. +$omega-float : opposite-position($from-direction) !default; + +// Container Width: +// Override the total width of your grid, using any length (50em, 75%, etc.) +$container-width : false !default; + +// Container Style: +// 'magic' - Static (fixed or elastic) when there's enough space, +// fluid when there isn't. This is the SUSY MAGIC SAUCE(TM). +// 'static' - Forces the grid container to remain static at all times. +// 'fluid' - Forces the grid to remain fluid at all times. +// (this will overrule any static $container-width settings) +$container-style : magic !default; + +// Border-Box Sizing +// Adjust the grid math appropriately for box-sizing: border-box; +// Warning: This does not actually apply the new box model! +// In most cases you can ignore this setting, +// and simply apply the border-box-sizing mixin. +$border-box-sizing : false !default; + +// Pixel Values only: +// Make sure only pixel values are set for the container width. +$pixel-values-only : false !default; + +// --------------------------------------------------------------------------- +// IE Settings + +// When you are using a seperate IE stylesheet, +// you can use these settings to control the output of at-breakpoint. +// By default, at-breakpoint will output media-queries as well as +// any defined ie-fallback classes. +$breakpoint-media-output : true !default; +$breakpoint-ie-output : true !default; + +// Danger Zone! Only set as 'true' in IE-specific style sheets. +$breakpoint-raw-output : false !default; diff --git a/docs/_sass/basically-basic/vendor/susy/output/_float.scss b/docs/_sass/basically-basic/vendor/susy/output/_float.scss new file mode 100644 index 0000000..9c24051 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/_float.scss @@ -0,0 +1,9 @@ +// Float API +// ========= + +@import "shared"; + +@import "float/container"; +@import "float/span"; +@import "float/end"; +@import "float/isolate"; diff --git a/docs/_sass/basically-basic/vendor/susy/output/_shared.scss b/docs/_sass/basically-basic/vendor/susy/output/_shared.scss new file mode 100644 index 0000000..dd9df4e --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/_shared.scss @@ -0,0 +1,15 @@ +// Shared API +// ========== + +@import "support"; + +@import "shared/inspect"; +@import "shared/output"; +@import "shared/direction"; +@import "shared/background"; +@import "shared/container"; +@import "shared/margins"; +@import "shared/padding"; + + + diff --git a/docs/_sass/basically-basic/vendor/susy/output/_support.scss b/docs/_sass/basically-basic/vendor/susy/output/_support.scss new file mode 100644 index 0000000..53dbc9c --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/_support.scss @@ -0,0 +1,9 @@ +// Susy Browser Support +// ==================== + +@import "support/support"; +@import "support/prefix"; +@import "support/background"; +@import "support/box-sizing"; +@import "support/rem"; +@import "support/clearfix"; diff --git a/docs/_sass/basically-basic/vendor/susy/output/float/_container.scss b/docs/_sass/basically-basic/vendor/susy/output/float/_container.scss new file mode 100644 index 0000000..121eb11 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/float/_container.scss @@ -0,0 +1,16 @@ +// Float Container API +// =================== + +// Float Container +// --------------- +// - [$width] : +// - [$justify] : left | center | right +// - [$math] : fluid | static +@mixin float-container( + $width, + $justify: auto auto, + $property: max-width +) { + @include susy-clearfix; + @include container-output($width, $justify, $property); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/float/_end.scss b/docs/_sass/basically-basic/vendor/susy/output/float/_end.scss new file mode 100644 index 0000000..3369997 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/float/_end.scss @@ -0,0 +1,40 @@ +// Float Ends API +// ============== + +// Susy End Defaults +// ----------------- +// - PRIVATE +@include susy-defaults(( + last-flow: to, +)); + +// Float Last +// ---------- +// - [$flow] : ltr | rtl +@mixin float-last( + $flow: map-get($susy-defaults, flow), + $last-flow: map-get($susy-defaults, last-flow), + $margin: 0 +) { + $to: to($flow); + + $output: ( + float: if($last-flow == to, $to, null), + margin-#{$to}: $margin, + ); + + @include output($output); +} + +// Float First +// ----------- +// - [$flow] : ltr | rtl +@mixin float-first( + $flow: map-get($susy-defaults, flow) +) { + $output: ( + margin-#{from($flow)}: 0, + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/float/_isolate.scss b/docs/_sass/basically-basic/vendor/susy/output/float/_isolate.scss new file mode 100644 index 0000000..4dd3c23 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/float/_isolate.scss @@ -0,0 +1,22 @@ +// Float Isolation API +// =================== + +// Isolate Output +// -------------- +// - $push : +// - [$flow] : ltr | rtl +@mixin isolate-output( + $push, + $flow: map-get($susy-defaults, flow) +) { + $to: to($flow); + $from: from($flow); + + $output: ( + float: $from, + margin-#{$from}: $push, + margin-#{$to}: -100%, + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/float/_span.scss b/docs/_sass/basically-basic/vendor/susy/output/float/_span.scss new file mode 100644 index 0000000..5b732cc --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/float/_span.scss @@ -0,0 +1,35 @@ +// Float Span API +// ============== + +// Float Span Output +// ----------------- +// - $width : +// - [$float] : from | to +// - [$margin-before] : +// - [$margin-after] : +// - [$padding-before] : +// - [$padding-after] : +// - [$flow] : ltr | rtl +@mixin float-span-output( + $width, + $float : from, + $margin-before : null, + $margin-after : null, + $padding-before : null, + $padding-after : null, + $flow : map-get($susy-defaults, flow) +) { + $to : to($flow); + $from : from($flow); + + $output: ( + width: $width, + float: if($float == to, $to, null) or if($float == from, $from, null), + margin-#{$from}: $margin-before, + margin-#{$to}: $margin-after, + padding-#{$from}: $padding-before, + padding-#{$to}: $padding-after, + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_background.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_background.scss new file mode 100644 index 0000000..c230f61 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_background.scss @@ -0,0 +1,26 @@ +// Grid Background API +// =================== +// - Sub-pixel rounding can lead to several pixels variation between browsers. + +// Grid Background Output +// ---------------------- +// - $image: background-image +// - $size: background-size +// - $clip: background-clip +// - [$flow]: ltr | rtl +@mixin background-grid-output ( + $image, + $size: null, + $clip: null, + $flow: map-get($susy-defaults, flow) +) { + $output: ( + background-image: $image, + background-size: $size, + background-origin: $clip, + background-clip: $clip, + background-position: from($flow) top, + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_container.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_container.scss new file mode 100644 index 0000000..7c7d4f1 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_container.scss @@ -0,0 +1,21 @@ +// Shared Container API +// ==================== + +// Container Output +// ---------------- +// - [$width] : +// - [$justify] : left | center | right +// - [$math] : fluid | static +@mixin container-output( + $width, + $justify: auto auto, + $property: max-width +) { + $output: ( + #{$property}: $width or 100%, + margin-left: nth($justify, 1), + margin-right: nth($justify, 2), + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_direction.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_direction.scss new file mode 100644 index 0000000..abb9c36 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_direction.scss @@ -0,0 +1,42 @@ +// Direction Helpers +// ================= + +// Susy Flow Defaults +// ------------------ +// - PRIVATE +@include susy-defaults(( + flow: ltr, +)); + +// Get Direction +// ------------- +// Return the 'from' or 'to' direction of a ltr or rtl flow. +// - [$flow] : ltr | rtl +// - [$key] : from | to +@function get-direction( + $flow: map-get($susy-defaults, flow), + $key: from +) { + $return: if($flow == rtl, (from: right, to: left), (from: left, to: right)); + @return map-get($return, $key); +} + +// To +// -- +// Return the 'to' direction of a flow +// - [$flow] : ltr | rtl +@function to( + $flow: map-get($susy-defaults, flow) +) { + @return get-direction($flow, to); +} + +// From +// ---- +// Return the 'from' direction of a flow +// - [$flow] : ltr | rtl +@function from( + $flow: map-get($susy-defaults, flow) +) { + @return get-direction($flow, from); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_inspect.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_inspect.scss new file mode 100644 index 0000000..b0af9b6 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_inspect.scss @@ -0,0 +1,25 @@ +// Debugging +// ========= + +// Susy Inspect +// ------------ +// Output arguments passed to a inspect. +// - $mixin : +// - $inspec : + +@mixin susy-inspect( + $mixin, + $inspect +) { + $show: false; + + @each $item in $inspect { + @if index($item, inspect) { + $show: true; + } + } + + @if $show or susy-get(debug inspect) { + -susy-#{$mixin}: inspect($inspect); + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_margins.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_margins.scss new file mode 100644 index 0000000..cd73e8c --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_margins.scss @@ -0,0 +1,23 @@ +// Margins API +// =========== + +// Margin Output +// ------------- +// - $before : +// - $after : +// - [$flow] : ltr | rtl +@mixin margin-output( + $before, + $after, + $flow: map-get($susy-defaults, flow) +) { + $to: to($flow); + $from: from($flow); + + $output: ( + margin-#{$from}: $before, + margin-#{$to}: $after, + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_output.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_output.scss new file mode 100644 index 0000000..20fc2d6 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_output.scss @@ -0,0 +1,14 @@ +// Output +// ====== + +// Output +// ------ +// Output CSS with proper browser support. +// - $styles : +@mixin output( + $styles +) { + @each $prop, $val in $styles { + @include susy-support($prop, $val); + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/shared/_padding.scss b/docs/_sass/basically-basic/vendor/susy/output/shared/_padding.scss new file mode 100644 index 0000000..5069d0c --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/shared/_padding.scss @@ -0,0 +1,23 @@ +// Padding API +// =========== + +// Padding Output +// -------------- +// - $before : +// - $after : +// - [$flow] : ltr | rtl +@mixin padding-output( + $before, + $after, + $flow: map-get($susy-defaults, flow) +) { + $to: to($flow); + $from: from($flow); + + $output: ( + padding-#{$from}: $before, + padding-#{$to}: $after, + ); + + @include output($output); +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/support/_background.scss b/docs/_sass/basically-basic/vendor/susy/output/support/_background.scss new file mode 100644 index 0000000..b141502 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/support/_background.scss @@ -0,0 +1,58 @@ +// Background Properties +// ===================== + +// Susy Background Image +// --------------------- +// Check for an existing support mixin, or provide a simple fallback. +// - $image: +@mixin susy-background-image( + $image +) { + @if susy-support(background-image, (mixin: background-image), $warn: false) { + @include background-image($image...); + } @else { + background-image: $image; + } +} + +// Susy Background Size +// --------------------- +// Check for an existing support mixin, or provide a simple fallback. +// - $image: +@mixin susy-background-size( + $size +) { + @if susy-support(background-options, (mixin: background-size)) { + @include background-size($size); + } @else { + background-size: $size; + } +} + +// Susy Background Origin +// ---------------------- +// Check for an existing support mixin, or provide a simple fallback. +// - $image: +@mixin susy-background-origin( + $origin +) { + @if susy-support(background-options, (mixin: background-origin)) { + @include background-origin($origin); + } @else { + background-origin: $origin; + } +} + +// Susy Background Clip +// -------------------- +// Check for an existing support mixin, or provide a simple fallback. +// - $image: +@mixin susy-background-clip( + $clip +) { + @if susy-support(background-options, (mixin: background-clip)) { + @include background-clip($clip); + } @else { + background-clip: $clip; + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/support/_box-sizing.scss b/docs/_sass/basically-basic/vendor/susy/output/support/_box-sizing.scss new file mode 100644 index 0000000..bf50bbc --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/support/_box-sizing.scss @@ -0,0 +1,19 @@ +// Box Sizing +// ========== + +// Box Sizing +// ---------- +// Check for an existing support mixin, or provide a simple fallback. +// - $model: +@mixin susy-box-sizing( + $model: content-box +) { + @if $model { + @if susy-support(box-sizing, (mixin: box-sizing), $warn: false) { + @include box-sizing($model); + } @else { + $prefix: (moz, webkit, official); + @include susy-prefix(box-sizing, $model, $prefix); + } + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/support/_clearfix.scss b/docs/_sass/basically-basic/vendor/susy/output/support/_clearfix.scss new file mode 100644 index 0000000..48c6e7b --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/support/_clearfix.scss @@ -0,0 +1,18 @@ +// Susy Fallback Clearfix +// ====================== + + +// Clearfix +// -------- +// Check for an existing support mixin, or provide a simple fallback. +@mixin susy-clearfix { + @if susy-support(clearfix, (mixin: clearfix)) { + @include clearfix; + } @else { + &:after { + content: " "; + display: block; + clear: both; + } + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/support/_prefix.scss b/docs/_sass/basically-basic/vendor/susy/output/support/_prefix.scss new file mode 100644 index 0000000..f4e26ec --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/support/_prefix.scss @@ -0,0 +1,19 @@ +// Susy Prefix +// =========== + +// Prefix +// ------ +// Output simple prefixed properties. +// - $prop : +// - $val : +// - [$prefix] : +@mixin susy-prefix( + $prop, + $val, + $prefix: official +) { + @each $fix in $prefix { + $fix: if($fix == official or not($fix), $prop, '-#{$fix}-#{$prop}'); + @include susy-rem($fix, $val); + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/support/_rem.scss b/docs/_sass/basically-basic/vendor/susy/output/support/_rem.scss new file mode 100644 index 0000000..0a807f7 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/support/_rem.scss @@ -0,0 +1,22 @@ +// rem Support +// =========== + +// rem +// --- +// Check for an existing support mixin, or output directly. +// - $prop : +// - $val : +@mixin susy-rem( + $prop, + $val +) { + $_reqs: ( + variable: rhythm-unit rem-with-px-fallback, + mixin: rem, + ); + @if susy-support(rem, $_reqs, $warn: false) and $rhythm-unit == rem { + @include rem($prop, $val); + } @else { + #{$prop}: $val; + } +} diff --git a/docs/_sass/basically-basic/vendor/susy/output/support/_support.scss b/docs/_sass/basically-basic/vendor/susy/output/support/_support.scss new file mode 100644 index 0000000..9699113 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/output/support/_support.scss @@ -0,0 +1,85 @@ +// Browser Support +// =============== + +// Susy Support Defaults +// --------------------- +@include susy-defaults(( + use-custom: ( + clearfix: false, + background-image: true, + background-options: false, + breakpoint: true, + box-sizing: true, + rem: true, + ), +)); + + +// Susy Support [mixin] +// -------------------- +// Send property-value pairs to the proper support modules. +// - $prop : +// - $val : +@mixin susy-support( + $prop, + $val +) { + // Background Support + @if $prop == background-image { + @include susy-background-image($val); + } @else if $prop == background-size { + @include susy-background-size($val); + } @else if $prop == background-origin { + @include susy-background-origin($val); + } @else if $prop == background-clip { + @include susy-background-clip($val); + } + + // Box-Sizing Support + @else if $prop == box-sizing { + @include susy-box-sizing($val); + } + + // Rem Support + @else { + @include susy-rem($prop, $val); + } +} + + +// Susy Support [function] +// ----------------------- +// Check for support of a feature. +// - $feature : +// - e.g "rem" or "box-sizing" +// - $requirements : +// - e.g (variable: rem-with-px-fallback, mixin: rem) +// - $warn : +@function susy-support( + $feature, + $requirements: (), + $warn: true +) { + $_support: susy-get(use-custom $feature); + + @if $_support { + $_fail: false; + + @each $_type, $_req in $requirements { + @each $_i in $_req { + $_pass: call(unquote("#{$_type}-exists"), $_i); + + @if not($_pass) { + $_fail: true; + @if $warn { + @warn "You requested custom support of #{$feature}, but the #{$_i} #{$_type} is not available."; + } + } + } + } + + $_support: if($_fail, false, $_support); + } + + @return $_support; +} diff --git a/docs/_sass/basically-basic/vendor/susy/su/_grid.scss b/docs/_sass/basically-basic/vendor/susy/su/_grid.scss new file mode 100644 index 0000000..7fe2a02 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/su/_grid.scss @@ -0,0 +1,103 @@ +// Column math +// =========== + + +// Is Symmetrical +// -------------- +// Returns true if a grid is symmetrical. +// - [$columns] : | +@function is-symmetrical( + $columns: susy-get(columns) +) { + $columns: valid-columns($columns); + @return if(type-of($columns) == number, $columns, null); +} + + +// Susy Count +// ---------- +// Find the number of columns in a given layout +// - [$columns] : | +@function susy-count( + $columns: susy-get(columns) +) { + $columns: valid-columns($columns); + @return is-symmetrical($columns) or length($columns); +} + + +// Susy Sum +// -------- +// Find the total sum of column-units in a layout +// - [$columns] : | +// - [$gutters] : +// - [$spread] : false/narrow | wide | wider +@function susy-sum( + $columns : susy-get(columns), + $gutters : susy-get(gutters), + $spread : false +) { + $columns: valid-columns($columns); + $gutters: valid-gutters($gutters); + + $spread: if($spread == wide, 0, if($spread == wider, 1, -1)); + $gutter-sum: (susy-count($columns) + $spread) * $gutters; + $column-sum: is-symmetrical($columns); + + @if not($column-sum) { + @each $column in $columns { + $column-sum: ($column-sum or 0) + $column; + } + } + + @return $column-sum + $gutter-sum; +} + + +// Susy Slice +// ---------- +// Return a subset of columns at a given location. +// - $span : +// - $location : +// - [$columns] : | +@function susy-slice( + $span, + $location, + $columns: susy-get(columns) +) { + $columns: valid-columns($columns); + $sub-columns: $span; + + @if not(is-symmetrical($columns)) { + $location: $location or 1; + $sub-columns: (); + @for $i from $location to ($location + $span) { + $sub-columns: append($sub-columns, nth($columns, $i)); + } + } + + @return $sub-columns; +} + + +// Susy +// ---- +// Find the sum of a column-span. +// - $span : +// - $location : +// - [$columns] : | +// - [$gutters] : +// - [$spread] : false/narrow | wide | wider +@function susy( + $span, + $location : false, + $columns : susy-get(columns), + $gutters : susy-get(gutters), + $spread : false +) { + $columns: valid-columns($columns); + $gutters: valid-gutters($gutters); + $span: susy-slice($span, $location, $columns); + + @return susy-sum($span, $gutters, $spread); +} diff --git a/docs/_sass/basically-basic/vendor/susy/su/_settings.scss b/docs/_sass/basically-basic/vendor/susy/su/_settings.scss new file mode 100644 index 0000000..8b439aa --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/su/_settings.scss @@ -0,0 +1,73 @@ +// Settings +// ======== + +// Version +// ------- +$su-version: 1.1; + + +// Default Settings +// ---------------- +// PRIVATE: The basic settings +$susy-defaults: ( + columns: 4, + gutters: .25, +); + + +// User Settings +// ------------- +// - Define the $susy variable with a map of your own settings. +// - Set EITHER $column-width OR $container +// - Use $column-width for static layouts +$susy: () !default; + + +// Susy Defaults +// ------------- +// PRIVATE: Add defaults to Susy +@mixin susy-defaults( + $defaults +) { + $susy-defaults: map-merge($susy-defaults, $defaults) !global; +} + + +// Susy Set +// -------- +// Change one setting +// - $key : setting name +// - $value : setting value +@mixin susy-set( + $key-value... +) { + $susy: _susy-deep-set($susy, $key-value...) !global; +} + + +// Susy Get +// -------- +// Return one setting from a grid +// - $key : +// - $layout : +@function susy-get( + $key, + $layout: map-merge($susy-defaults, $susy) +) { + $layout: parse-grid($layout); + $_options: $layout $susy $susy-defaults; + $_break: false; + $_return: null; + + @each $opt in $_options { + @if type-of($opt) == map and not($_break) { + $_keyset: _susy-deep-has-key($opt, $key...); + @if $_keyset { + $_return: _susy-deep-get($opt, $key...); + $_break: true; + } + } + } + + @return $_return; +} diff --git a/docs/_sass/basically-basic/vendor/susy/su/_utilities.scss b/docs/_sass/basically-basic/vendor/susy/su/_utilities.scss new file mode 100644 index 0000000..b737f21 --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/su/_utilities.scss @@ -0,0 +1,111 @@ +// Map Functions +// ============= + + +// Truncate List +// ------------- +// - Return a list, truncated to a given length +@function _susy-truncate-list( + $list, + $length +) { + $_return: (); + + @for $i from 1 through length($list) { + $_return: if($i <= $length, append($_return, nth($list, $i)), $_return); + } + + @return $_return; +} + + +// Deep Get +// -------- +// - Return a value deep in nested maps +@function _susy-deep-get( + $map, + $keys... +) { + $_return: $map; + + @each $key in $keys { + @if type-of($_return) == map { + $_return: map-get($_return, $key); + } + } + + @return $_return; +} + + +// Deep Set +// -------- +// - Set a value deep in nested maps +@function _susy-deep-set( + $map, + $keys-value... +) { + $_value: nth($keys-value, -1); + $_keys: _susy-truncate-list($keys-value, length($keys-value) - 1); + $_length: length($_keys); + $_return: (); + + @for $i from 1 through $_length { + $_n: 0 - $i; + $_level: _susy-truncate-list($_keys, $_length + $_n); + $_level: _susy-deep-get($map, $_level...); + $_merge: nth($_keys, $_n); + $_merge: ($_merge: $_value); + $_return: if($_level, map-merge($_level, $_merge), $_merge); + $_value: $_return; + } + + @return $_return; +} + + +// Deep Merge +// ---------- +// Return 2 objects of any depth, merged +@function _susy-deep-merge( + $map1, + $map2 +) { + + @if type-of($map1) != map or type-of($map2) != map { + $map1: $map2; + } @else { + @each $key, $value in $map2 { + $_new: ($key: _susy_deep-merge(map-get($map1, $key), $value)); + $map1: map-merge($map1, $_new); + } + } + + @return $map1; +} + + +// Deep Has-Key +// ------------ +// - Return true if a deep key exists +@function _susy-deep-has-key( + $map, + $keys... +) { + $_return: null; + $_stop: false; + + @each $key in $keys { + @if not($_stop) { + $_return: map-has-key($map, $key); + } + + @if $_return { + $map: map-get($map, $key); + } @else { + $_stop: true; + } + } + + @return $_return; +} diff --git a/docs/_sass/basically-basic/vendor/susy/su/_validation.scss b/docs/_sass/basically-basic/vendor/susy/su/_validation.scss new file mode 100644 index 0000000..4c6ab8d --- /dev/null +++ b/docs/_sass/basically-basic/vendor/susy/su/_validation.scss @@ -0,0 +1,57 @@ +// Math Validation +// =============== + + +// Valid Columns +// ------------- +// Check that a column setting is valid. +@function valid-columns( + $columns, + $silent: false +) { + $type: type-of($columns); + $return: null; + + @if $type == number and unitless($columns) { + $return: $columns; + } @else if $type == list { + $fail: null; + @each $col in $columns { + @if type-of($col) == number { + $fail: $fail or if(unitless($col), null, true); + } @else { + $fail: true; + } + } + $return: if($fail, $return, $columns); + } + + @if $return != $columns and not($silent) { + $return: null; + $warn: '$columns must be a unitless number or list of unitless numbers.'; + @warn $warn + ' Current value [#{$type}]: #{$columns}'; + } + + @return $return; +} + + +// Valid Gutters +// ------------- +// Check that a gutter setting is valid. +@function valid-gutters( + $gutters, + $silent: false +) { + $type: type-of($gutters); + $return: null; + + @if $type == number and unitless($gutters) { + $return: $gutters; + } @else if not($silent) { + $warn: '$gutters must be a unitless number.'; + @warn $warn + ' Current value [#{$type}]: #{$gutters}'; + } + + @return $return; +} diff --git a/docs/about.md b/docs/about.md new file mode 100644 index 0000000..4383cbd --- /dev/null +++ b/docs/about.md @@ -0,0 +1,15 @@ +--- +title: "About" +layout: about +permalink: /about/ +--- + +Basically Basic is a [Jekyll theme](https://jekyllrb.com/docs/themes/) meant as a substitute for the default --- [Minima](https://github.com/jekyll/minima). Conventions and features found there are fully supported by **Basically Basic**, with a few enhancements thrown in for good measure: + +- Clean responsive design with [six customizable skins](#skin) +- Curriculum Vitæ/Resume layout powered by [JSON data](http://registry.jsonresume.org/) +- About page layout +- Disqus Comments and Google Analytics support +- SEO best practices via [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/) + +You can find the source code for this theme at: {% include icon-github.html username="mmistakes" %}/[jekyll-theme-basically-basic](https://github.com/mmistakes/jekyll-theme-basically-basic) diff --git a/docs/assets/icons/basically-basic-logo-dark.svg b/docs/assets/icons/basically-basic-logo-dark.svg new file mode 100644 index 0000000..69c796b --- /dev/null +++ b/docs/assets/icons/basically-basic-logo-dark.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/docs/assets/icons/basically-basic-logo-light.svg b/docs/assets/icons/basically-basic-logo-light.svg new file mode 100644 index 0000000..9604106 --- /dev/null +++ b/docs/assets/icons/basically-basic-logo-light.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/docs/assets/images/100x100.png b/docs/assets/images/100x100.png new file mode 100644 index 0000000..7b613a9 Binary files /dev/null and b/docs/assets/images/100x100.png differ diff --git a/docs/assets/images/amine-ounnas-180287.jpg b/docs/assets/images/amine-ounnas-180287.jpg new file mode 100644 index 0000000..14b5185 Binary files /dev/null and b/docs/assets/images/amine-ounnas-180287.jpg differ diff --git a/docs/assets/images/eder-oliveira-180877.jpg b/docs/assets/images/eder-oliveira-180877.jpg new file mode 100644 index 0000000..b0d5016 Binary files /dev/null and b/docs/assets/images/eder-oliveira-180877.jpg differ diff --git a/docs/assets/images/image-alignment-1200x4002.jpg b/docs/assets/images/image-alignment-1200x4002.jpg new file mode 100644 index 0000000..8e3137c Binary files /dev/null and b/docs/assets/images/image-alignment-1200x4002.jpg differ diff --git a/docs/assets/images/image-alignment-150x150.jpg b/docs/assets/images/image-alignment-150x150.jpg new file mode 100644 index 0000000..d3b0e48 Binary files /dev/null and b/docs/assets/images/image-alignment-150x150.jpg differ diff --git a/docs/assets/images/image-alignment-300x200.jpg b/docs/assets/images/image-alignment-300x200.jpg new file mode 100644 index 0000000..3921878 Binary files /dev/null and b/docs/assets/images/image-alignment-300x200.jpg differ diff --git a/docs/assets/images/image-alignment-580x300.jpg b/docs/assets/images/image-alignment-580x300.jpg new file mode 100644 index 0000000..75bf08e Binary files /dev/null and b/docs/assets/images/image-alignment-580x300.jpg differ diff --git a/docs/assets/javascripts/main.js b/docs/assets/javascripts/main.js new file mode 100644 index 0000000..51ffe97 --- /dev/null +++ b/docs/assets/javascripts/main.js @@ -0,0 +1,57 @@ +--- +--- + +/*! + * Basically Basic Jekyll Theme 0.0.1 + * Copyright 2017 Michael Rose - mademistakes | @mmistakes + * Free for personal and commercial use under the MIT license + * https://github.com/mmistakes/jekyll-basically-theme/blob/master/LICENSE.md +*/ + +// Animate sidebar menu items +var menuItems = document.querySelectorAll('#sidebar li'); + +// Get vendor transition property +var docElemStyle = document.documentElement.style; +var transitionProp = typeof docElemStyle.transition == 'string' ? + 'transition' : 'WebkitTransition'; + +function animateMenuItems() { + for ( var i=0; i < menuItems.length; i++ ) { + var item = menuItems[i]; + // Stagger transition with transitionDelay + item.style[ transitionProp + 'Delay' ] = ( i * 75 ) + 'ms'; + item.classList.toggle('is--moved'); + } +}; + +// Toggle sidebar visibility +function toggleClassMenu() { + myMenu.classList.add('is--animatable'); + if(!myMenu.classList.contains('is--visible')) { + myMenu.classList.add('is--visible'); + myToggle.classList.add('open'); + myWrapper.classList.add('is--pushed'); + } else { + myMenu.classList.remove('is--visible'); + myToggle.classList.remove('open'); + myWrapper.classList.remove('is--pushed'); + } +} + +function OnTransitionEnd() { + myMenu.classList.remove('is--animatable'); +} + +var myWrapper = document.querySelector('.wrapper'); +var myMenu = document.querySelector('.sidebar'); +var myToggle = document.querySelector('.toggle'); +myMenu.addEventListener('transitionend', OnTransitionEnd, false); +myToggle.addEventListener('click', function() { + toggleClassMenu(); + animateMenuItems(); +}, false); +myMenu.addEventListener('click', function() { + toggleClassMenu(); + animateMenuItems(); +}, false); diff --git a/docs/assets/stylesheets/main.scss b/docs/assets/stylesheets/main.scss new file mode 100644 index 0000000..0d1db51 --- /dev/null +++ b/docs/assets/stylesheets/main.scss @@ -0,0 +1,10 @@ +--- +# Only the main Sass file needs front matter (the dashes are enough) +--- + +@charset "utf-8"; + +// Theme skin +@import "basically-basic/themes/{{ site.data.theme.skin | default: 'default' }}"; + +@import "basically-basic"; \ No newline at end of file diff --git a/docs/cv.md b/docs/cv.md new file mode 100644 index 0000000..2d42f4e --- /dev/null +++ b/docs/cv.md @@ -0,0 +1,8 @@ +--- +title: Curriculum Vitæ +layout: cv +actions: + - label: "Download as PDF" + icon: pdf + url: "#pdf-asset" +--- \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..3a019b1 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,22 @@ +--- +layout: home +paginate: true +alt_title: "Basically Basic" +sub_title: "Your new default Jekyll theme" +image: /assets/images/amine-ounnas-180287.jpg +introduction: | + Basically Basic is a [Jekyll theme](https://jekyllrb.com/docs/themes/) meant as a substitute for the default --- [Minima](https://github.com/jekyll/minima). Conventions and features found there are fully supported by **Basically Basic**, with a few enhancements thrown in for good measure: + + - Clean responsive design with six customizable skins + - Curriculum Vitæ/Resume layout powered by [JSON data](http://registry.jsonresume.org/) + - About page layout + - Disqus Comments and Google Analytics support + - SEO best practices via [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/) +actions: + - label: "Get Started" + icon: github + url: "https://github.com/mmistakes/jekyll-theme-basically-basic" + - label: "Download" + icon: download + url: "https://github.com/mmistakes/jekyll-theme-basically-basic/archive/master.zip" +---