Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created November 11, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bangpound/b8937aac61c864d23f488e97a67f1861 to your computer and use it in GitHub Desktop.
Save bangpound/b8937aac61c864d23f488e97a67f1861 to your computer and use it in GitHub Desktop.
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
deleted file mode 100644
index 96cc43e..0000000
--- a/.idea/compiler.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="CompilerConfiguration">
- <resourceExtensions />
- <wildcardResourcePatterns>
- <entry name="!?*.java" />
- <entry name="!?*.form" />
- <entry name="!?*.class" />
- <entry name="!?*.groovy" />
- <entry name="!?*.scala" />
- <entry name="!?*.flex" />
- <entry name="!?*.kt" />
- <entry name="!?*.clj" />
- <entry name="!?*.aj" />
- </wildcardResourcePatterns>
- <annotationProcessing>
- <profile default="true" name="Default" enabled="false">
- <processorPath useClasspath="true" />
- </profile>
- </annotationProcessing>
- </component>
-</project>
\ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
deleted file mode 100644
index e7bedf3..0000000
--- a/.idea/copyright/profiles_settings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<component name="CopyrightManager">
- <settings default="" />
-</component>
\ No newline at end of file
diff --git a/.idea/fieldmuseum-website.iml b/.idea/fieldmuseum-website.iml
deleted file mode 100644
index 8bc485b..0000000
--- a/.idea/fieldmuseum-website.iml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
- <component name="NewModuleRootManager" inherit-compiler-output="true">
- <exclude-output />
- <content url="file://$MODULE_DIR$" />
- <orderEntry type="inheritedJdk" />
- <orderEntry type="sourceFolder" forTests="false" />
- </component>
- <component name="TemplatesService">
- <option name="TEMPLATE_FOLDERS">
- <list>
- <option value="$MODULE_DIR$/patternlab/core/templates" />
- </list>
- </option>
- </component>
-</module>
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index ed42289..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ComposerJsonPluginSettings">
- <unboundedVersionInspectionSettings>
- <excludedPackages />
- </unboundedVersionInspectionSettings>
- <customRepositories />
- </component>
- <component name="EmacsSettings">
- <option name="emacsPath" value="/usr/bin/emacs" />
- </component>
- <component name="JavaScriptSettings">
- <option name="languageLevel" value="ES5" />
- </component>
- <component name="JsBowerSettings">
- <exe-path>/usr/local/bin/bower</exe-path>
- <config-path />
- </component>
- <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
- <component name="ProjectInspectionProfilesVisibleTreeState">
- <entry key="Project Default">
- <profile-state>
- <expanded-state>
- <State>
- <id />
- </State>
- <State>
- <id>Code SmellPHP</id>
- </State>
- <State>
- <id>Code StylePHP</id>
- </State>
- <State>
- <id>Control FlowPHP</id>
- </State>
- <State>
- <id>GeneralPHP</id>
- </State>
- <State>
- <id>PHP</id>
- </State>
- <State>
- <id>PHPDocPHP</id>
- </State>
- <State>
- <id>Probable bugsPHP</id>
- </State>
- <State>
- <id>Type compatibilityPHP</id>
- </State>
- <State>
- <id>UndefinedPHP</id>
- </State>
- <State>
- <id>UnusedPHP</id>
- </State>
- </expanded-state>
- <selected-state>
- <State>
- <id>Android</id>
- </State>
- </selected-state>
- </profile-state>
- </entry>
- </component>
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
- <OptionsSetting value="true" id="Add" />
- <OptionsSetting value="true" id="Remove" />
- <OptionsSetting value="true" id="Checkout" />
- <OptionsSetting value="true" id="Update" />
- <OptionsSetting value="true" id="Status" />
- <OptionsSetting value="true" id="Edit" />
- <ConfirmationsSetting value="0" id="Add" />
- <ConfirmationsSetting value="0" id="Remove" />
- </component>
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" default="true" assert-keyword="false" jdk-15="false" />
- <component name="masterDetails">
- <states>
- <state key="ArquillianSettingsConfigurable.UI">
- <settings>
- <splitter-proportions>
- <option name="proportions">
- <list>
- <option value="0.2" />
- </list>
- </option>
- </splitter-proportions>
- </settings>
- </state>
- <state key="ScopeChooserConfigurable.UI">
- <settings>
- <splitter-proportions>
- <option name="proportions">
- <list>
- <option value="0.2" />
- </list>
- </option>
- </splitter-proportions>
- </settings>
- </state>
- </states>
- </component>
-</project>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index fe7a900..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ProjectModuleManager">
- <modules>
- <module fileurl="file://$PROJECT_DIR$/.idea/fieldmuseum-website.iml" filepath="$PROJECT_DIR$/.idea/fieldmuseum-website.iml" />
- </modules>
- </component>
-</project>
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index c8b2c67..0000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ChangeListManager">
- <option name="TRACKING_ENABLED" value="true" />
- <option name="SHOW_DIALOG" value="false" />
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
- <option name="LAST_RESOLUTION" value="IGNORE" />
- </component>
- <component name="CreatePatchCommitExecutor">
- <option name="PATCH_PATH" value="" />
- </component>
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
- <OptionsSetting value="true" id="Add" />
- <OptionsSetting value="true" id="Remove" />
- <OptionsSetting value="true" id="Checkout" />
- <OptionsSetting value="true" id="Update" />
- <OptionsSetting value="true" id="Status" />
- <OptionsSetting value="true" id="Edit" />
- <ConfirmationsSetting value="0" id="Add" />
- <ConfirmationsSetting value="0" id="Remove" />
- </component>
- <component name="PropertiesComponent">
- <property name="settings.editor.selected.configurable" value="preferences.remoteExternalTools" />
- <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
- <property name="javascript.nodejs.core.library.configured.version" value="6.3.1" />
- <property name="JavaScriptPreferStrict" value="true" />
- <property name="JavaScriptWeakerCompletionTypeGuess" value="true" />
- <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
- <property name="settings.editor.splitter.proportion" value="0.2" />
- </component>
- <component name="RunManager">
- <configuration default="true" type="Applet" factoryName="Applet">
- <option name="HTML_USED" value="false" />
- <option name="WIDTH" value="400" />
- <option name="HEIGHT" value="300" />
- <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
- <module />
- <method />
- </configuration>
- <configuration default="true" type="Application" factoryName="Application">
- <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
- <option name="MAIN_CLASS_NAME" />
- <option name="VM_PARAMETERS" />
- <option name="PROGRAM_PARAMETERS" />
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
- <option name="ALTERNATIVE_JRE_PATH" />
- <option name="ENABLE_SWING_INSPECTOR" value="false" />
- <option name="ENV_VARIABLES" />
- <option name="PASS_PARENT_ENVS" value="true" />
- <module name="" />
- <envs />
- <method />
- </configuration>
- <configuration default="true" type="Remote" factoryName="Remote">
- <option name="USE_SOCKET_TRANSPORT" value="true" />
- <option name="SERVER_MODE" value="false" />
- <option name="SHMEM_ADDRESS" value="javadebug" />
- <option name="HOST" value="localhost" />
- <option name="PORT" value="5005" />
- <method />
- </configuration>
- <configuration name="&lt;template&gt;" type="JUnit" default="true" selected="false">
- <option name="MAIN_CLASS_NAME" />
- <option name="VM_PARAMETERS" value="-ea" />
- <option name="PARAMETERS" />
- <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
- </configuration>
- <configuration name="&lt;template&gt;" type="TestNG" default="true" selected="false">
- <option name="MAIN_CLASS_NAME" />
- <option name="VM_PARAMETERS" value="-ea" />
- <option name="PARAMETERS" />
- <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
- </configuration>
- <configuration name="&lt;template&gt;" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" default="true" selected="false">
- <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
- </configuration>
- </component>
- <component name="ShelveChangesManager" show_recycled="false">
- <option name="remove_strategy" value="false" />
- </component>
- <component name="TaskManager">
- <task active="true" id="Default" summary="Default task">
- <created>1478891215875</created>
- <option name="number" value="Default" />
- <option name="presentableId" value="Default" />
- <updated>1478891215875</updated>
- </task>
- <servers />
- </component>
- <component name="VcsContentAnnotationSettings">
- <option name="myLimit" value="2678400000" />
- </component>
- <component name="XDebuggerManager">
- <breakpoint-manager />
- <watches-manager />
- </component>
-</project>
\ No newline at end of file
diff --git a/patternlab/config.codekit b/patternlab/config.codekit
index 792f85d..062b4a3 100644
--- a/patternlab/config.codekit
+++ b/patternlab/config.codekit
@@ -1,16 +1,7 @@
{
"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
-"creatorBuild": "19127",
+"creatorBuild": "19137",
"files": {
- "\/config.rb": {
- "fileType": 131072,
- "ignore": 0,
- "ignoreWasSetByUser": 0,
- "inputAbbreviatedPath": "\/config.rb",
- "outputAbbreviatedPath": "\/config.rb",
- "outputPathIsOutsideProject": 0,
- "outputPathIsSetByUser": 0
- },
"\/README.md": {
"criticStyle": 0,
"enableFootnotes": 0,
@@ -6808,7 +6799,7 @@
},
"hooks": [
],
-"lastSavedByUser": "Graham Troyer-Joy",
+"lastSavedByUser": "Benjamin Doherty",
"manualImportLinks": {
},
"projectAttributes": {
diff --git a/patternlab/source/sass/01-extends/animations.scss b/patternlab/source/sass/01-extends/animations.scss
index 73db82f..3827fac 100644
--- a/patternlab/source/sass/01-extends/animations.scss
+++ b/patternlab/source/sass/01-extends/animations.scss
@@ -31,7 +31,8 @@
$banner,
animationDuration);
perspective: 1200px;
- a:hover & {
+ a:hover &,
+ a:focus & {
visibility: visible;
opacity: 1;
transition: opacity map-get(
@@ -48,7 +49,8 @@
$banner,
animationDuration);
transform: translateY(-25%) rotateX(35deg);
- a:hover & {
+ a:hover &,
+ a:focus & {
opacity: 1;
transform: rotateX(0deg);
}
diff --git a/patternlab/source/sass/03-atoms/buttons.scss b/patternlab/source/sass/03-atoms/buttons.scss
index 39c609a..d872295 100644
--- a/patternlab/source/sass/03-atoms/buttons.scss
+++ b/patternlab/source/sass/03-atoms/buttons.scss
@@ -100,7 +100,8 @@ button {
@extend %button--special;
border: 0 !important;
background: map-get($button--special, bg--buy); /* Override inherited borders */
- &:hover {
+ &:hover,
+ &:focus {
background: shade(map-get($button--special, bg--buy), map-get($button--special, shade));
}
}
diff --git a/patternlab/source/sass/03-atoms/links.scss b/patternlab/source/sass/03-atoms/links.scss
index d1be48f..323b0aa 100644
--- a/patternlab/source/sass/03-atoms/links.scss
+++ b/patternlab/source/sass/03-atoms/links.scss
@@ -50,7 +50,8 @@ a {
margin-left: 0.5em;
content: '';
}
- &:hover:after {
+ &:hover:after,
+ &:focus:after {
@include sprite($rightArrow, blue);
}
.navFilters & {
@@ -75,7 +76,8 @@ a {
margin-left: 0.5em;
content: '';
}
- &:hover:after {
+ &:hover:after,
+ &:focus:after {
@include sprite($upArrow, blue);
}
}
diff --git a/patternlab/source/sass/03-atoms/toggles.scss b/patternlab/source/sass/03-atoms/toggles.scss
index 5d8874d..d7eea36 100644
--- a/patternlab/source/sass/03-atoms/toggles.scss
+++ b/patternlab/source/sass/03-atoms/toggles.scss
@@ -10,7 +10,8 @@
color: map-get($toggle, color) !important;
padding: map-get($toggle, padding);
display: inline-block;
- &:hover {
+ &:hover,
+ &:focus {
background: shade(map-get($toggle, bg), map-get($toggle, shade));
}
}
@@ -21,7 +22,8 @@
border-radius: 0 $radius $radius 0;
}
.toggle__option--selected,
-.toggle__option--selected:hover, {
+.toggle__option--selected:hover,
+.toggle__option--selected:focus {
background: shade(map-get($toggle, bg), map-get($toggle, shadier));
cursor: pointer;
}
diff --git a/patternlab/source/sass/04-molecules/blocks/person-summary.scss b/patternlab/source/sass/04-molecules/blocks/person-summary.scss
index 02aa85a..132e1a1 100644
--- a/patternlab/source/sass/04-molecules/blocks/person-summary.scss
+++ b/patternlab/source/sass/04-molecules/blocks/person-summary.scss
@@ -52,7 +52,8 @@
font-size: map-get($person__department, fontSize);
a {
color: map-get($person__department, color);
- &:hover {
+ &:hover,
+ &:focus {
color: map-get($links, hover);
}
}
diff --git a/patternlab/source/sass/04-molecules/blocks/promos.scss b/patternlab/source/sass/04-molecules/blocks/promos.scss
index 3832bff..98d5872 100644
--- a/patternlab/source/sass/04-molecules/blocks/promos.scss
+++ b/patternlab/source/sass/04-molecules/blocks/promos.scss
@@ -19,7 +19,8 @@
[data-useragent*="Trident"] & {
display: block;
}
- &:hover {
+ &:hover,
+ &:focus {
background: map-get($promo, bg--hover);
}
figure {
@@ -90,7 +91,8 @@
font-size: map-get($promo__title, fontSize);
line-height: map-get($promo__title, lineHeight);
transition: map-get($transition, standard);
- .promo:hover & {
+ .promo:hover &,
+ .promo:focus & {
background: map-get($promo__title, bg--hover);
}
}
@@ -113,7 +115,8 @@
white-space: nowrap;
font-weight: 700;
font-size: map-get($promo__category, fontSize);
- &:hover {
+ &:hover,
+ &:focus {
color: map-get($promo__category, hover);
}
&:after {
diff --git a/patternlab/source/sass/04-molecules/components.scss b/patternlab/source/sass/04-molecules/components.scss
index fd1fb29..75bacd3 100644
--- a/patternlab/source/sass/04-molecules/components.scss
+++ b/patternlab/source/sass/04-molecules/components.scss
@@ -174,7 +174,8 @@
transition: 0;
.ltie9 & {
text-decoration: none;
- &:hover {
+ &:hover,
+ &:focus {
&:before {
color: $white !important;
}
diff --git a/patternlab/source/sass/04-molecules/lists.scss b/patternlab/source/sass/04-molecules/lists.scss
index 2af9b66..affc454 100644
--- a/patternlab/source/sass/04-molecules/lists.scss
+++ b/patternlab/source/sass/04-molecules/lists.scss
@@ -273,7 +273,8 @@
transition: map-get($transition, standard);
fill: map-get($eventsList__icon, fill);
}
- &:hover {
+ &:hover,
+ &:focus {
.icon {
transition: none;
fill: map-get($links, hover);
diff --git a/patternlab/source/sass/04-molecules/media/gallery.scss b/patternlab/source/sass/04-molecules/media/gallery.scss
index 9b31b23..786459e 100644
--- a/patternlab/source/sass/04-molecules/media/gallery.scss
+++ b/patternlab/source/sass/04-molecules/media/gallery.scss
@@ -30,7 +30,8 @@
font-size: map-get($gallery__button, width);
opacity: .7;
cursor: pointer;
- &:hover {
+ &:hover,
+ &:focus {
opacity: 1;
}
}
@@ -38,7 +39,8 @@
%gallery__button--left {
left: .25em;
border-right: .5em solid $green;
- &:hover {
+ &:hover,
+ &:focus {
border-right-color: $green--tint;
}
}
@@ -46,7 +48,8 @@
%gallery__button--right {
right: .25em;
border-left: .5em solid $green;
- &:hover {
+ &:hover,
+ &:focus {
border-left-color: $green--tint;
}
}
@@ -125,7 +128,8 @@
font-size: .825em;
font-family: map-get($viewer__caption, fontFamily);
transition: map-get($transition, standard);
- .viewer__item:hover & {
+ .viewer__item:hover &,
+ .viewer__item:focus & {
bottom: 0;
transition: none;
}
diff --git a/patternlab/source/sass/04-molecules/navigation/areas.scss b/patternlab/source/sass/04-molecules/navigation/areas.scss
index 7a73777..a2af7f3 100644
--- a/patternlab/source/sass/04-molecules/navigation/areas.scss
+++ b/patternlab/source/sass/04-molecules/navigation/areas.scss
@@ -54,7 +54,8 @@
font-size: map-get($navAreas, fontSize);
font-family: map-get($navList, fontFamily);
color: map-get($navList, color);
- &:hover {
+ &:hover,
+ &:focus {
background: map-get($navList, bg--hover);
color: map-get($navList, hover);
}
diff --git a/patternlab/source/sass/04-molecules/navigation/breadcrumbs.scss b/patternlab/source/sass/04-molecules/navigation/breadcrumbs.scss
index 9c0c264..db1e7a7 100644
--- a/patternlab/source/sass/04-molecules/navigation/breadcrumbs.scss
+++ b/patternlab/source/sass/04-molecules/navigation/breadcrumbs.scss
@@ -76,7 +76,8 @@
display: inline-block;
color: map-get($breadcrumb__link, color);
text-decoration: none;
- &:hover {
+ &:hover,
+ &:focus {
color: map-get($breadcrumb__link, hover);
}
}
diff --git a/patternlab/source/sass/04-molecules/navigation/main.scss b/patternlab/source/sass/04-molecules/navigation/main.scss
index cde47cd..4dc6078 100644
--- a/patternlab/source/sass/04-molecules/navigation/main.scss
+++ b/patternlab/source/sass/04-molecules/navigation/main.scss
@@ -259,7 +259,8 @@
@media #{map-get($bp--down, 2)} and #{$bp--landscape} {
flex-basis: 50%;
}
- a:hover {
+ a:hover,
+ a:focus {
background: map-get($navMain__primary, bg--hover);
@media #{map-get($bp--down, 2)} {
background: transparent;
diff --git a/patternlab/source/sass/04-molecules/navigation/target.scss b/patternlab/source/sass/04-molecules/navigation/target.scss
index 51eab52..533372e 100644
--- a/patternlab/source/sass/04-molecules/navigation/target.scss
+++ b/patternlab/source/sass/04-molecules/navigation/target.scss
@@ -60,7 +60,8 @@
visibility: hidden;
}
}
- &:hover {
+ &:hover,
+ &:focus {
background: map-get($navTarget__link, bg__hover);
color: map-get($navTarget__link, hover);
&:after {
diff --git a/patternlab/source/sass/05-organisms/global.scss b/patternlab/source/sass/05-organisms/global.scss
index 16a4576..8f61de4 100644
--- a/patternlab/source/sass/05-organisms/global.scss
+++ b/patternlab/source/sass/05-organisms/global.scss
@@ -292,7 +292,8 @@
@media #{map-get($bp--down, 2)} {
left: -(map-get($newsletter__icon, padding)*3);
}
- .newsletter:hover & {
+ .newsletter:hover &,
+ .newsletter:focus & {
transform: translate(0, #{map-get($newsletter__icon, padding)/2});
}
.icon {
diff --git a/patternlab/source/sass/style.scss b/patternlab/source/sass/style.scss
index 25115fc..d94af3d 100644
--- a/patternlab/source/sass/style.scss
+++ b/patternlab/source/sass/style.scss
@@ -53,7 +53,7 @@
// !-- Load vendor libraries
// ----------------------------------------------------------------------------
-@import "susy/sass/susy";
+@import "susy";
@import "../bower_components/scut/dist/_scut.scss";
@import "../bower_components/select2/select2";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment