Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cyborgtranslate
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
cyborgtranslate
Commits
b0a61d0a
Commit
b0a61d0a
authored
1 year ago
by
Benjamin Melançon
Browse files
Options
Downloads
Patches
Plain Diff
Add Sass styles based on contrib Newtowne theme's
Issue
#3413857
parent
098e1566
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
css/switcher.css
+0
-0
0 additions, 0 deletions
css/switcher.css
css/switcher.scss
+28
-0
28 additions, 0 deletions
css/switcher.scss
templates/cyborgtranslate-links.html.twig
+3
-5
3 additions, 5 deletions
templates/cyborgtranslate-links.html.twig
with
31 additions
and
5 deletions
css/switcher.css
0 → 100644
+
0
−
0
View file @
b0a61d0a
This diff is collapsed.
Click to expand it.
css/switcher.scss
0 → 100644
+
28
−
0
View file @
b0a61d0a
/* For language select list dropdown. */
.block-language-blocklanguage-interface
{
z-index
:
99
;
width
:
15rem
;
display
:
inline-block
;
}
.cyborgtranslate-dropdown-select-btn
{
text-align
:
center
;
}
.cyborgtranslate-dropdown
{
position
:
relative
;
ul
{
position
:
absolute
;
background-color
:
white
;
width
:
100%
;
text-align
:
left
;
li
a
{
padding
:
0
.3rem
0
.3rem
0
.3rem
0
.6rem
;
width
:
100%
;
display
:
inline-block
;
&
:hover
{
background-color
:
whitesmoke
;
}
}
}
}
This diff is collapsed.
Click to expand it.
templates/cyborgtranslate-links.html.twig
+
3
−
5
View file @
b0a61d0a
...
...
@@ -31,14 +31,12 @@
* @see template_preprocess_links()
*/
#}
WTF
{%
if
links
-
%}
<div
class=
"dropdown-emulator"
>
<h1>
What are we doing here?
</h1>
<a
href=
"#"
class=
"dropdown-emulator-select-btn navbar-link"
onclick=
"showDropDown(this);return false;"
>
<div
class=
"cyborgtranslate-dropdown"
>
<a
href=
"#"
class=
"cyborgtranslate-dropdown-select-btn navbar-link"
onclick=
"showDropDown(this);return false;"
>
{%
trans
%}
Select language
{%
endtrans
%}
</a>
<ul
{{
attributes.addClass
(
"
dropdown-emulator
-select-list"
)
}}
>
<ul
{{
attributes.addClass
(
"
cyborgtranslate-dropdown
-select-list"
)
}}
>
{%
-
for
item
in
links
-
%}
<li
{{
item.attributes
}}
>
{%
-
if
item.link
-
%}
...
...
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