Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fepper
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
fepper
Commits
4f27bd4a
Commit
4f27bd4a
authored
4 years ago
by
e2tha-e
Browse files
Options
Downloads
Patches
Plain Diff
better handling of hover states on mobile devices
parent
ade004ed
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_assets/src/icon-menu.svg
+1
-1
1 addition, 1 deletion
_assets/src/icon-menu.svg
_assets/src/icon-search.svg
+1
-1
1 addition, 1 deletion
_assets/src/icon-search.svg
_styles/bld/style.css
+26
-9
26 additions, 9 deletions
_styles/bld/style.css
with
28 additions
and
11 deletions
_assets/src/icon-menu.svg
+
1
−
1
View file @
4f27bd4a
<?xml version="1.0" encoding="UTF-8"?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
width=
"200"
height=
"200"
viewBox=
"0 0 200 200"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"200"
height=
"200"
viewBox=
"0 0 200 200"
>
<rect
x=
"15"
y=
"32"
width=
"170"
height=
"34"
fill=
"#000000"
/>
<rect
x=
"15"
y=
"83"
width=
"170"
height=
"34"
fill=
"#000000"
/>
<rect
x=
"15"
y=
"134"
width=
"170"
height=
"34"
fill=
"#000000"
/>
...
...
This diff is collapsed.
Click to expand it.
_assets/src/icon-search.svg
+
1
−
1
View file @
4f27bd4a
<?xml version="1.0" encoding="UTF-8"?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
width=
"200"
height=
"200"
viewBox=
"0 0 200 200"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"200"
height=
"200"
viewBox=
"0 0 200 200"
>
<circle
cx=
"75"
cy=
"75"
r=
"60"
stroke-width=
"24"
fill=
"none"
stroke=
"#000000"
/>
<circle
cx=
"131"
cy=
"131"
r=
"9"
fill=
"#000000"
/>
<polygon
points=
"124.5,137.25 170,191.25 191.25,170 137.25,124.5"
fill=
"#000000"
/>
...
...
This diff is collapsed.
Click to expand it.
_styles/bld/style.css
+
26
−
9
View file @
4f27bd4a
...
...
@@ -61,14 +61,18 @@
display
:
block
;
padding
:
1.1rem
;
}
.mobile-nav-icon
:hover::before
,
.region-header
#block-search-form
>
h2
>
a
:hover::before
,
#main-menu
>
h2
>
a
:hover::before
,
.mobile-nav-icon
:focus::before
,
.region-header
#block-search-form
>
h2
>
a
:focus::before
,
#main-menu
>
h2
>
a
:focus::before
{
filter
:
invert
(
50%
);
}
@media
(
hover
:
hover
)
{
.mobile-nav-icon
:hover::before
,
.region-header
#block-search-form
>
h2
>
a
:hover::before
,
#main-menu
>
h2
>
a
:hover::before
{
filter
:
invert
(
50%
);
}
}
html
{
box-sizing
:
border-box
;
}
...
...
@@ -194,12 +198,16 @@ li a.active {
text-decoration
:
none
;
outline
:
0
;
}
a
:hover
,
li
a
.active
:hover
,
a
:focus
,
li
a
.active
:focus
{
color
:
#808080
;
}
@media
(
hover
:
hover
)
{
a
:
hover
,
li
a
.
active
:
hover
{
color
:
#808080
;
}
}
.text
a
,
a
.text
,
p
a
{
...
...
@@ -387,10 +395,14 @@ ul li.expanded,
ul
li
.leaf
{
padding
:
0
;
}
li
a
:hover
,
li
a
:focus
{
color
:
#808080
;
}
@media
(
hover
:
hover
)
{
li
a
:hover
{
color
:
#808080
;
}
}
.text
ul
,
.text
ol
,
ul
.text
,
...
...
@@ -734,11 +746,9 @@ input[type="search"]::-webkit-search-decoration {
}
nav
[
role
=
"navigation"
]
>
ul
.menu
.expanded
>
a
::after
{
content
:
"▼"
;
filter
:
invert
(
20%
);
font-size
:
0.75em
;
font-size
:
0.5625em
;
margin-left
:
0.8rem
;
}
nav
[
role
=
"navigation"
]
>
ul
.menu
>
.expanded
:hover
>
a
+
ul
.menu
,
nav
[
role
=
"navigation"
]
>
ul
.menu
>
.expanded
>
a
:focus
+
ul
.menu
{
margin-top
:
0
;
max-height
:
100%
;
...
...
@@ -770,6 +780,13 @@ input[type="search"]::-webkit-search-decoration {
background-color
:
transparent
;
}
}
@media
all
and
(
min-width
:
768px
)
and
(
hover
:
hover
)
{
nav
[
role
=
"navigation"
]
>
ul
.menu
>
.expanded
:hover
>
a
+
ul
.menu
{
margin-top
:
0
;
max-height
:
100%
;
padding-top
:
1.1rem
;
}
}
#block-system-user-menu
>
div
>
ul
.menu
,
nav
[
role
=
"navigation"
]
>
ul
.menu
{
display
:
flex
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment