Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MetaGer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
55
Issues
55
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
open-source
MetaGer
Commits
df75ec31
Commit
df75ec31
authored
Feb 25, 2019
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added "less" button when result options are expanded
parent
cfc18d1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
resources/lang/de/result.php
resources/lang/de/result.php
+1
-0
resources/less/metager/pages/resultpage/result.less
resources/less/metager/pages/resultpage/result.less
+20
-6
resources/views/layouts/result.blade.php
resources/views/layouts/result.blade.php
+4
-1
No files found.
resources/lang/de/result.php
View file @
df75ec31
...
...
@@ -11,5 +11,6 @@ return [
'options.6'
=>
'IN NEUEM TAB ÖFFNEN'
,
'options.7'
=>
'ÖFFNEN'
,
'options.more'
=>
'MEHR'
,
'options.less'
=>
'WENIGER'
,
'proxytext'
=>
'Der Link wird anonymisiert geöffnet. Ihre Daten werden nicht zum Zielserver übertragen. Möglicherweise funktionieren manche Webseiten nicht wie gewohnt.'
,
];
resources/less/metager/pages/resultpage/result.less
View file @
df75ec31
...
...
@@ -177,14 +177,33 @@
margin-right: 2px;
}
}
.open-result-options {
.open-result-options
, .close-result-options
{
font-weight: normal;
font-size: @result-font-small;
flex-grow: 1;
text-align: right;
margin-right: 0;
}
.close-result-options {
display: none;
}
}
/* CSS Rules for the result options */
.result-toggle{
&:checked + .result-footer > .open-result-options {
display: none;
}
&:checked + .result-footer > .close-result-options {
display: initial;
}
&:checked + .result-footer + .result-options > .options {
max-height: 150px;
overflow: initial;
opacity: 1;
}
}
.result-footer * {
font-size: 10px !important;
}
...
...
@@ -215,11 +234,6 @@
-webkit-transition: all 1s;
opacity: 0;
}
&>.result-toggle:checked+.options {
max-height: 150px;
overflow: initial;
opacity: 1;
}
ul {
display: flex;
flex-wrap: wrap;
...
...
resources/views/layouts/result.blade.php
View file @
df75ec31
...
...
@@ -47,6 +47,7 @@
</div>
@endif
</div>
<input
type=
"checkbox"
id=
"result-toggle-{{$result->number}}"
class=
"result-toggle"
style=
"display: none"
>
<div
class=
"result-footer"
>
<a
class=
"result-open"
href=
"{{ $result->link }}"
target=
"_self"
rel=
"noopener"
>
{!! trans('result.options.7') !!}
...
...
@@ -60,9 +61,11 @@
<label
class=
"open-result-options navigation-element"
for=
"result-toggle-{{$result->number}}"
>
{{ trans('result.options.more')}}
</label>
<label
class=
"close-result-options navigation-element"
for=
"result-toggle-{{$result->number}}"
>
{{ trans('result.options.less')}}
</label>
</div>
<div
class=
"result-options"
>
<input
type=
"checkbox"
id=
"result-toggle-{{$result->number}}"
class=
"result-toggle"
style=
"display: none"
>
<div
class=
"options"
>
<ul
class=
"option-list list-unstyled small"
>
<li
class=
"js-only"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment