This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,066 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
.primer-wc-cart-menu { | ||
display: none !important; | ||
|
||
.main-navigation & { | ||
display: list-item !important; | ||
} | ||
|
||
.primer-wc-cart-sub-menu { | ||
float: right; | ||
width: 100%; | ||
box-shadow: none; | ||
|
||
li, | ||
.widget_shopping_cart { | ||
width: 100%; | ||
background: inherit; | ||
} | ||
|
||
.widget_shopping_cart { | ||
float: right; | ||
width: 250px; | ||
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); | ||
|
||
.quantity { | ||
display: block; | ||
float: left; | ||
font-style: italic; | ||
padding-left: 1.25em; | ||
padding-bottom: .5em; | ||
} | ||
|
||
ul.product_list_widget { | ||
position: relative !important; | ||
left: 0; | ||
max-height: 250px; | ||
overflow-y: auto; | ||
} | ||
|
||
p.buttons, | ||
.total, | ||
.product_list_widget { | ||
float: left; | ||
width: 100%; | ||
} | ||
|
||
.total strong { | ||
text-index: 0; | ||
} | ||
|
||
p.buttons { | ||
padding: .5em; | ||
padding-top: 0; | ||
margin: 0; | ||
} | ||
|
||
.cart_list li.mini_cart_item { | ||
padding: 0 !important; | ||
margin: 0; | ||
width: 100%; | ||
padding-bottom: 5px; | ||
border-bottom: none; | ||
padding: .5em 1em; | ||
text-indent: 0; | ||
opacity: 1; | ||
transition: opacity .25s ease-out; | ||
|
||
img { | ||
width: 100%; | ||
max-width: 55px; | ||
} | ||
|
||
a { | ||
border-bottom: none; | ||
} | ||
|
||
a:nth-child(2) { | ||
padding: .5em; | ||
padding-bottom: 0; | ||
margin: 0; | ||
width: 100%; | ||
text-indent: 0 !important; | ||
} | ||
|
||
&:hover { | ||
opacity: .85; | ||
} | ||
} | ||
} | ||
|
||
.primer-wc-cart-sub-menu-item { | ||
.product_list_widget { | ||
border: none; | ||
box-shadow: none; | ||
display: inline-block; | ||
left: 0 !important; | ||
background: inherit; | ||
} | ||
|
||
.widget_shopping_cart { | ||
padding: 0; | ||
margin-bottom: 0; | ||
|
||
.total { | ||
margin: 0; | ||
padding: 10px 0; | ||
text-align: center; | ||
} | ||
|
||
.total strong { | ||
text-indent: 0; | ||
} | ||
|
||
p.buttons a { | ||
text-align: center; | ||
width: 100%; | ||
text-indent: 0; | ||
|
||
&:first-child { | ||
margin-bottom: 5px; | ||
} | ||
} | ||
} | ||
|
||
.cart-preview-count { | ||
margin-left: 8px; | ||
} | ||
|
||
.cart_list li a.remove { | ||
position: relative !important; | ||
float: left; | ||
padding: 0; | ||
margin-top: 10px; | ||
margin-left: 15px; | ||
text-indent: 0; | ||
margin-right: 5px; | ||
z-index: 1001; | ||
line-height: .95; | ||
text-indent: 0 !important; | ||
border: none; | ||
box-shadow: none; | ||
|
||
&:hover { | ||
background: red !important; | ||
} | ||
} | ||
} | ||
} | ||
|
||
&:hover { | ||
cursor: pointer; | ||
|
||
a { | ||
background: transparent; | ||
} | ||
} | ||
} | ||
|
||
body.post-type-archive, | ||
body.single-product { | ||
/* On Sale Badge */ | ||
span.onsale, | ||
ul.products li.product .onsale { | ||
padding: 2px 8px; | ||
border-radius: 0; | ||
margin: 0; | ||
min-height: auto; | ||
min-width: auto; | ||
line-height: inherit; | ||
} | ||
} | ||
|
||
body.single-product { | ||
span.onsale { | ||
padding: 3px 18px; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.quantity .input-text { | ||
padding: 8px; | ||
} | ||
} | ||
|
||
body.woocommerce-cart { | ||
.primer-wc-cart-sub-menu { | ||
display: none; | ||
} | ||
} | ||
|
||
.woocommerce, | ||
.woocommerce-page { | ||
table.cart { | ||
img { | ||
width: 100%; | ||
max-width: 100px; | ||
margin-bottom: 0; | ||
} | ||
|
||
td.actions .input-text { | ||
padding: 7px !important; | ||
} | ||
} | ||
} | ||
|
||
.woocommerce ul.products li.product a.add_to_cart_button { | ||
width: 100%; | ||
font-size: 16px; | ||
text-align: center; | ||
} | ||
|
||
@media #{$small-only} { | ||
|
||
.primer-wc-cart-menu { | ||
.primer-wc-cart-sub-menu { | ||
.widget_shopping_cart { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
.distignore | ||
.git | ||
.gitignore | ||
.travis.yml | ||
.dev | ||
package.json | ||
node_modules | ||
.* | ||
*.yml | ||
composer.* | ||
Gruntfile.js | ||
package.json | ||
phpcs.ruleset.xml | ||
phpunit.xml.dist | ||
readme.md | ||
svn-username | ||
bin/ | ||
build/ | ||
dev-lib/ | ||
languages/*.po | ||
node_modules/ | ||
tests/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
.DS_Store | ||
svn-username | ||
.sass-cache/ | ||
build/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
preset: none | ||
|
||
enabled: | ||
- blank_line_after_namespace | ||
- blank_line_before_return | ||
- cast_spaces | ||
- combine_consecutive_unsets | ||
- concat_with_spaces | ||
- elseif | ||
- encoding | ||
- full_opening_tag | ||
- function_typehint_space | ||
- hash_to_slash_comment | ||
- include | ||
- linebreak_after_opening_tag | ||
- lowercase_cast | ||
- lowercase_constants | ||
- lowercase_keywords | ||
- method_visibility_required | ||
- native_function_casing | ||
- no_closing_tag | ||
- no_extra_consecutive_blank_lines | ||
- no_php4_constructor | ||
- no_short_echo_tag | ||
- no_spaces_after_function_name | ||
- no_trailing_comma_in_list_call | ||
- no_trailing_comma_in_singleline_array | ||
- no_trailing_whitespace | ||
- no_trailing_whitespace_in_comment | ||
- no_useless_else | ||
- no_whitespace_before_comma_in_array | ||
- not_operator_with_space | ||
- phpdoc_no_access | ||
- phpdoc_no_empty_return | ||
- phpdoc_scalar | ||
- property_visibility_required | ||
- short_scalar_cast | ||
- single_blank_line_at_eof | ||
- single_class_element_per_statement | ||
- single_import_per_statement | ||
- single_line_after_imports | ||
- single_quote | ||
- standardize_not_equals | ||
- strict_comparison | ||
- switch_case_semicolon_to_colon | ||
- ternary_operator_spaces | ||
- trailing_comma_in_multiline_array | ||
- unix_line_endings | ||
- whitespace_after_comma_in_array | ||
|
||
finder: | ||
exclude: | ||
- ".dev" | ||
name: | ||
- "*.php" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.