Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBI-Framework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
ebiwd
EBI-Framework
Commits
42afe114
Commit
42afe114
authored
7 years ago
by
khawkins98
Browse files
Options
Downloads
Patches
Plain Diff
Remove further ID based themeing ( #49 )
parent
e0ed13ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/ebi-global.scss
+57
-55
57 additions, 55 deletions
css/ebi-global.scss
js/script.js
+1
-1
1 addition, 1 deletion
js/script.js
with
58 additions
and
56 deletions
css/ebi-global.scss
+
57
−
55
View file @
42afe114
...
...
@@ -136,24 +136,24 @@ a:active {
}
}
@media
screen
and
(
min-width
:
40em
)
{
.masthead
nav
ul
#global-nav
.menu
li
.home-mobile
{
display
:
none
;
}
.masthead
.masthead-black-bar
nav
ul
.menu
li
.home-mobile
{
display
:
none
;
}
}
/* Disable masthead-black-bar search when told */
body
.no-global-search
.masthead-black-bar
ul
#global-nav
li
.search
{
display
:
none
;
}
body
.no-global-search
.masthead-black-bar
ul
.menu
li
.search
{
display
:
none
;
}
.masthead-black-bar
{
ul
#global-nav
li
a
:hover
,
ul
#global-nav
li
a
:active
,
ul
#global-nav
li
a
:focus
,
ul
#global-nav
li
.active
a
,
ul
#global-nav
li
.active-trail
a
{
ul
.menu
li
a
:hover
,
ul
.menu
li
a
:active
,
ul
.menu
li
a
:focus
,
ul
.menu
li
.active
a
,
ul
.menu
li
.active-trail
a
{
color
:
white
;
border-bottom
:
none
;
}
ul
#global-nav
li
.active
a
,
ul
#global-nav
li
.active-trail
a
{
ul
.menu
li
.active
a
,
ul
.menu
li
.active-trail
a
{
background
:
rgb
(
0
,
0
,
0
);
}
...
...
@@ -221,69 +221,71 @@ a:active {
content
:
'1'
;
}
ul
li
.search
.dropdown-pane
{
width
:
100%
;
left
:
0
;
background
:
$ebi-colour-dark
;
border
:
none
;
margin-top
:
-2px
;
color
:
#fff
;
}
/* EMBL Dropdwon styles */
.dropdown-pane.embl-dropdown
{
background-color
:
#007c82
;
background-image
:
url('../images/map.png')
;
background-position
:
100%
100%
;
background-repeat
:
no-repeat
;
color
:
#fff
;
height
:
20rem
;
padding-right
:
17rem
;
min-width
:
39
.9375em
;
left
:
0
;
//fix position of menu, to prevent horizontal scrolling of page
h6
{
color
:
white
;
font-weight
:
700
;
}
.button
{
color
:
#007c82
;
background
:
#fff
;
}
}
@media
screen
and
(
max-width
:
39
.9375em
)
{
.dropdown-pane.embl-dropdown
{
// do not show embl-dropdown on small screens at all
display
:
none
;
width
:
0
!
important
;
overflow
:
hidden
;
}
}
}
header
.masthead-inner
{
padding-top
:
2
.5rem
;
color
:
#fff
;
}
#search-global-dropdown
{
width
:
100%
;
left
:
0
;
background
:
$ebi-colour-dark
;
border
:
none
;
margin-top
:
-2px
;
color
:
#fff
;
}
// END .masthead
/* EMBL Dropdwon styles */
#embl-dropdown
{
background-color
:
#007c82
;
background-image
:
url('../images/map.png')
;
background-position
:
100%
100%
;
background-repeat
:
no-repeat
;
color
:
#fff
;
height
:
20rem
;
padding-right
:
17rem
;
min-width
:
39
.9375em
;
}
@media
screen
and
(
max-width
:
39
.9375em
)
{
#embl-dropdown
{
// do not show embl-dropdown on small screens at all
display
:
none
;
width
:
0
!
important
;
overflow
:
hidden
;
}
}
#embl-dropdown
h6
{
color
:
white
;
font-weight
:
700
;
}
#embl-dropdown
.button
{
color
:
#007c82
;
background
:
#fff
;
}
#embl-dropdown
.dropdown-pane
{
left
:
0
;
}
//fix position of menu, to prevent horizontal scrolling of page
/* Local masthead secondary links on mobile */
@media
screen
and
(
max-width
:
39
.9375em
)
{
.masthead
ul
.menu.dropdown.float-right
>
li
{
margin-bottom
:
-50px
;
margin-bottom
:
-50px
;
}
.masthead
nav
ul
#global-nav
.menu
li
{
float
:
none
;
display
:
inline-block
;
}
.masthead
nav
ul
#global-nav
.menu
li
.home-mobile
{
float
:
left
;
}
.masthead
.masthead-black-bar
nav
ul
.menu
{
text-align
:
right
;
ul
#global-nav
{
text-align
:
right
;
}
/* make icon bar smaller for mobile */
ul
#global-nav
.menu
>
li
>
a
>
img
,
ul
#global-nav
.menu
>
li
>
a
>
i
{
display
:
block
;
margin
:
0
auto
0
.25rem
;
font-size
:
16px
;
}
li
{
float
:
none
;
display
:
inline-block
;
}
li
.home-mobile
{
float
:
left
;
}
ul
#global-nav
.menu
>
li
>
a
{
/* make icon bar smaller for mobile */
>
li
>
a
>
img
,
>
li
>
a
>
i
{
display
:
block
;
margin
:
0
auto
0
.25rem
;
font-size
:
16px
;
}
>
li
>
a
{
text-align
:
center
;
font-size
:
10px
;
padding
:
.6rem
.35rem
;
}
}
}
...
...
@@ -527,7 +529,7 @@ a:active {
@media
screen
and
(
max-width
:
53em
)
{
.embl-selector
.button
{
width
:
0px
;
padding-right
:
0
;
overflow
:
hidden
;}
.embl-selector
.button
:after
{
display
:
none
;
}
.masthead
nav
ul
#global-nav
.menu
li
a
{
padding-right
:
.5rem
;
padding-left
:
.5rem
;}
.masthead
.masthead-black-bar
nav
ul
.menu
li
a
{
padding-right
:
.5rem
;
padding-left
:
.5rem
;}
}
...
...
This diff is collapsed.
Click to expand it.
js/script.js
+
1
−
1
View file @
42afe114
...
...
@@ -215,7 +215,7 @@
}
var
dropdownDiv
=
document
.
createElement
(
"
div
"
);
dropdownDiv
.
innerHTML
=
'
<div id="embl-dropdown" class="dropdown-pane bottom" data-dropdown>
'
+
dropdownDiv
.
innerHTML
=
'
<div id="embl-dropdown" class="
embl-dropdown
dropdown-pane bottom" data-dropdown>
'
+
'
<p>EMBL-EBI in Hinxton is one of five EMBL locations across europe.<br/> <a href="//www.ebi.ac.uk/about" class="small readmore">More about EMBL-EBI</a></p>
'
+
'
<h6>Connect to another EMBL location</h6>
'
+
'
<div class="small-collapse small-up-2 padding-bottom-large clearfix">
'
+
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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