Skip to content

Commit bae2e5a

Browse files
author
Roni Laukkarinen
committed
Improve drop down menu on wide touch devices (Fixes #3), release 2.0.0
1 parent 87c53e1 commit bae2e5a

File tree

5 files changed

+28
-33
lines changed

5 files changed

+28
-33
lines changed

css/global.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* The current version of the theme.
1212
*/
13-
define( 'AIR_VERSION', '1.9.9' );
13+
define( 'AIR_VERSION', '2.0.0' );
1414

1515
/**
1616
* WooCommerce support

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "air",
3-
"version": "1.9.9",
3+
"version": "2.0.0",
44
"description": "A minimalist WordPress starter theme.",
55
"author": "Digitoimisto Dude Oy ([email protected])",
66
"devDependencies": {

sass/layout/_navigation.scss

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,23 @@
4444

4545
> a {
4646
padding-right: 2rem;
47+
}
4748

48-
&:after {
49-
@include vertical-align();
50-
opacity: .8;
51-
background-image: url('../svg/chevron-down.svg');
52-
background-repeat: no-repeat;
53-
background-position: center;
54-
content: ' ';
55-
width: 10px;
56-
height: 10px;
57-
position: absolute;
58-
right: 12px;
59-
margin-top: -.1rem;
60-
padding-right: .2rem;
61-
vertical-align: text-bottom;
62-
}
49+
button.dropdown-toggle {
50+
@include vertical-align();
51+
opacity: .8;
52+
background-image: url('../svg/chevron-down.svg');
53+
background-repeat: no-repeat;
54+
background-position: center;
55+
content: ' ';
56+
width: 10px;
57+
height: 10px;
58+
position: absolute;
59+
right: 0;
60+
margin-top: -.1rem;
61+
padding-right: .2rem;
62+
vertical-align: text-bottom;
63+
background-color: transparent;
6364
}
6465
}
6566

@@ -76,14 +77,14 @@
7677
&.page-item-has-children {
7778
> a {
7879
padding-right: 2rem;
80+
}
7981

80-
&:after {
81-
background-image: url('../svg/chevron-right.svg');
82-
background-repeat: no-repeat;
83-
background-position: center;
84-
top: 22px;
85-
padding-right: .2rem;
86-
}
82+
button.dropdown-toggle {
83+
background-image: url('../svg/chevron-right.svg');
84+
background-repeat: no-repeat;
85+
background-position: center;
86+
top: 22px;
87+
padding-right: .2rem;
8788
}
8889
}
8990
}
@@ -213,12 +214,6 @@
213214
}
214215
}
215216

216-
@media screen and (min-width: $responsivenav) {
217-
.dropdown-toggle {
218-
display: none;
219-
}
220-
}
221-
222217
@media screen and (min-width: $responsivenav) {
223218
position: relative;
224219
max-height: none;

style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/digitoimistodude/air
44
Author: Digitoimisto Dude Oy
55
Author URI: https://www.dude.fi
66
Description: A minimalist WordPress starter theme.
7-
Version: 1.9.9
7+
Version: 2.0.0
88
License: GNU General Public License v2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Text Domain: air
@@ -19,6 +19,6 @@ Tags:
1919
* @link https://github.com/Automattic/_s/commits/master
2020
*
2121
* @author Roni Laukkarinen, Timi Wahalahti
22-
* @version 25.12.2016
22+
* @version 26.12.2016
2323
* @since 28.01.2016
2424
*/

0 commit comments

Comments
 (0)