Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
core-services
jekyll-theme-lcsb-default
Commits
cc74b9e9
Commit
cc74b9e9
authored
Apr 30, 2019
by
Elisabeth Guerard
Browse files
Merge remote-tracking branch 'origin/master' into develop
merge eg
parents
30116fa2
0d8c02bd
Changes
63
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
cc74b9e9
...
...
@@ -132,6 +132,13 @@ For details refer to [the documentation of ruby gems](https://guides.rubygems.or
## Changelog
### 0.2.20
Added
`success`
,
`primary`
and
`danger`
to _alerts. Upgraded _font-awesome_ to 5.8.1.
### 0.2.19
Added
`alert`
and
`alert_header`
blocks.
To use:
`{% alert info %}{% alert_header %}Header{% endalert_header %}Content{% endalert %}`
or
`{% alert warning %}{% alert_header %}Header{% endalert_header %}Content{% endalert %}`
### 0.2.18
*
Corrected placement of R3 logo in the footer on mobile
...
...
_plugins/alert.rb
0 → 100644
View file @
cc74b9e9
module
Jekyll
module
Tags
class
AlertTag
<
Liquid
::
Block
def
initialize
(
tag_name
,
block_options
,
liquid_options
)
super
@class
=
block_options
.
strip
end
def
render
(
context
)
context
.
stack
do
context
[
"class"
]
=
@class
@content
=
super
end
output
=
<<~
EOS
<div class="alert
#{
@class
}
">
#{
@content
}
</div>
EOS
end
end
end
end
Liquid
::
Template
.
register_tag
(
'alert'
,
Jekyll
::
Tags
::
AlertTag
)
\ No newline at end of file
_plugins/alert_header.rb
0 → 100644
View file @
cc74b9e9
module
Jekyll
module
Tags
class
AlertHeaderTag
<
Liquid
::
Block
def
initialize
(
tag_name
,
block_options
,
liquid_options
)
super
end
def
render
(
context
)
context
.
stack
do
@content
=
super
end
output
=
"<h3>
#{
@content
}
</h3>"
end
end
end
end
Liquid
::
Template
.
register_tag
(
'alert_header'
,
Jekyll
::
Tags
::
AlertHeaderTag
)
\ No newline at end of file
_sass/minima/_lcsb.scss
View file @
cc74b9e9
...
...
@@ -10,6 +10,49 @@
height
:
50px
;
}
div
.alert
{
padding
:
.75rem
1
.25rem
;
border
:
1px
solid
transparent
;
border-radius
:
3px
;
margin
:
10px
;
font-weight
:
300
;
}
div
.alert
>
h3
{
font-weight
:
600
;
margin-bottom
:
3px
}
div
.alert.warning
{
border-color
:
#feedbb
;
background-color
:
#fef5cf
;
color
:
#846102
;
}
div
.alert.info
{
border-color
:
#baeeff
;
background-color
:
#c3e5ff
;
color
:
#045689
;
}
div
.alert.success
{
border-color
:
#eeffff
;
background-color
:
#d5eadb
;
color
:
#048956
;
}
div
.alert.danger
{
border-color
:
#f6c6cf
;
background-color
:
#f8ddd3
;
color
:
#721a1c
;
}
div
.alert.primary
{
border-color
:
#b9dbfe
;
background-color
:
#cde6fe
;
color
:
#014184
;
}
// Normal (desktop) ========================================================
.img-uni-lu
{
bottom
:
-2px
;
...
...
assets/fontawesome/css/all.css
0 → 100644
View file @
cc74b9e9
/*!
* Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
.fa
,
.fas
,
.far
,
.fal
,
.fab
{
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
display
:
inline-block
;
font-style
:
normal
;
font-variant
:
normal
;
text-rendering
:
auto
;
line-height
:
1
;
}
.fa-lg
{
font-size
:
1.33333em
;
line-height
:
0.75em
;
vertical-align
:
-.0667em
;
}
.fa-xs
{
font-size
:
.75em
;
}
.fa-sm
{
font-size
:
.875em
;
}
.fa-1x
{
font-size
:
1em
;
}
.fa-2x
{
font-size
:
2em
;
}
.fa-3x
{
font-size
:
3em
;
}
.fa-4x
{
font-size
:
4em
;
}
.fa-5x
{
font-size
:
5em
;
}
.fa-6x
{
font-size
:
6em
;
}
.fa-7x
{
font-size
:
7em
;
}
.fa-8x
{
font-size
:
8em
;
}
.fa-9x
{
font-size
:
9em
;
}
.fa-10x
{
font-size
:
10em
;
}
.fa-fw
{
text-align
:
center
;
width
:
1.25em
;
}
.fa-ul
{
list-style-type
:
none
;
margin-left
:
2.5em
;
padding-left
:
0
;
}
.fa-ul
>
li
{
position
:
relative
;
}
.fa-li
{
left
:
-2em
;
position
:
absolute
;
text-align
:
center
;
width
:
2em
;
line-height
:
inherit
;
}
.fa-border
{
border
:
solid
0.08em
#eee
;
border-radius
:
.1em
;
padding
:
.2em
.25em
.15em
;
}
.fa-pull-left
{
float
:
left
;
}
.fa-pull-right
{
float
:
right
;
}
.fa.fa-pull-left
,
.fas.fa-pull-left
,
.far.fa-pull-left
,
.fal.fa-pull-left
,
.fab.fa-pull-left
{
margin-right
:
.3em
;
}
.fa.fa-pull-right
,
.fas.fa-pull-right
,
.far.fa-pull-right
,
.fal.fa-pull-right
,
.fab.fa-pull-right
{
margin-left
:
.3em
;
}
.fa-spin
{
-webkit-animation
:
fa-spin
2s
infinite
linear
;
animation
:
fa-spin
2s
infinite
linear
;
}
.fa-pulse
{
-webkit-animation
:
fa-spin
1s
infinite
steps
(
8
);
animation
:
fa-spin
1s
infinite
steps
(
8
);
}
@-webkit-keyframes
fa-spin
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
@keyframes
fa-spin
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
.fa-rotate-90
{
-ms-filter
:
"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"
;
-webkit-transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
}
.fa-rotate-180
{
-ms-filter
:
"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"
;
-webkit-transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
);
}
.fa-rotate-270
{
-ms-filter
:
"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"
;
-webkit-transform
:
rotate
(
270deg
);
transform
:
rotate
(
270deg
);
}
.fa-flip-horizontal
{
-ms-filter
:
"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"
;
-webkit-transform
:
scale
(
-1
,
1
);
transform
:
scale
(
-1
,
1
);
}
.fa-flip-vertical
{
-ms-filter
:
"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"
;
-webkit-transform
:
scale
(
1
,
-1
);
transform
:
scale
(
1
,
-1
);
}
.fa-flip-both
,
.fa-flip-horizontal.fa-flip-vertical
{
-ms-filter
:
"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"
;
-webkit-transform
:
scale
(
-1
,
-1
);
transform
:
scale
(
-1
,
-1
);
}
:root
.fa-rotate-90
,
:root
.fa-rotate-180
,
:root
.fa-rotate-270
,
:root
.fa-flip-horizontal
,
:root
.fa-flip-vertical
,
:root
.fa-flip-both
{
-webkit-filter
:
none
;
filter
:
none
;
}
.fa-stack
{
display
:
inline-block
;
height
:
2em
;
line-height
:
2em
;
position
:
relative
;
vertical-align
:
middle
;
width
:
2.5em
;
}
.fa-stack-1x
,
.fa-stack-2x
{
left
:
0
;
position
:
absolute
;
text-align
:
center
;
width
:
100%
;
}
.fa-stack-1x
{
line-height
:
inherit
;
}
.fa-stack-2x
{
font-size
:
2em
;
}
.fa-inverse
{
color
:
#fff
;
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.fa-500px
:before
{
content
:
"\f26e"
;
}
.fa-accessible-icon
:before
{
content
:
"\f368"
;
}
.fa-accusoft
:before
{
content
:
"\f369"
;
}
.fa-acquisitions-incorporated
:before
{
content
:
"\f6af"
;
}
.fa-ad
:before
{
content
:
"\f641"
;
}
.fa-address-book
:before
{
content
:
"\f2b9"
;
}
.fa-address-card
:before
{
content
:
"\f2bb"
;
}
.fa-adjust
:before
{
content
:
"\f042"
;
}
.fa-adn
:before
{
content
:
"\f170"
;
}
.fa-adobe
:before
{
content
:
"\f778"
;
}
.fa-adversal
:before
{
content
:
"\f36a"
;
}
.fa-affiliatetheme
:before
{
content
:
"\f36b"
;
}
.fa-air-freshener
:before
{
content
:
"\f5d0"
;
}
.fa-airbnb
:before
{
content
:
"\f834"
;
}
.fa-algolia
:before
{
content
:
"\f36c"
;
}
.fa-align-center
:before
{
content
:
"\f037"
;
}
.fa-align-justify
:before
{
content
:
"\f039"
;
}
.fa-align-left
:before
{
content
:
"\f036"
;
}
.fa-align-right
:before
{
content
:
"\f038"
;
}
.fa-alipay
:before
{
content
:
"\f642"
;
}
.fa-allergies
:before
{
content
:
"\f461"
;
}
.fa-amazon
:before
{
content
:
"\f270"
;
}
.fa-amazon-pay
:before
{
content
:
"\f42c"
;
}
.fa-ambulance
:before
{
content
:
"\f0f9"
;
}
.fa-american-sign-language-interpreting
:before
{
content
:
"\f2a3"
;
}
.fa-amilia
:before
{
content
:
"\f36d"
;
}
.fa-anchor
:before
{
content
:
"\f13d"
;
}
.fa-android
:before
{
content
:
"\f17b"
;
}
.fa-angellist
:before
{
content
:
"\f209"
;
}
.fa-angle-double-down
:before
{
content
:
"\f103"
;
}
.fa-angle-double-left
:before
{
content
:
"\f100"
;
}
.fa-angle-double-right
:before
{
content
:
"\f101"
;
}
.fa-angle-double-up
:before
{
content
:
"\f102"
;
}
.fa-angle-down
:before
{
content
:
"\f107"
;
}
.fa-angle-left
:before
{
content
:
"\f104"
;
}
.fa-angle-right
:before
{
content
:
"\f105"
;
}
.fa-angle-up
:before
{
content
:
"\f106"
;
}
.fa-angry
:before
{
content
:
"\f556"
;
}
.fa-angrycreative
:before
{
content
:
"\f36e"
;
}
.fa-angular
:before
{
content
:
"\f420"
;
}
.fa-ankh
:before
{
content
:
"\f644"
;
}
.fa-app-store
:before
{
content
:
"\f36f"
;
}
.fa-app-store-ios
:before
{
content
:
"\f370"
;
}
.fa-apper
:before
{
content
:
"\f371"
;
}
.fa-apple
:before
{
content
:
"\f179"
;
}
.fa-apple-alt
:before
{
content
:
"\f5d1"
;
}
.fa-apple-pay
:before
{
content
:
"\f415"
;
}
.fa-archive
:before
{
content
:
"\f187"
;
}
.fa-archway
:before
{
content
:
"\f557"
;
}
.fa-arrow-alt-circle-down
:before
{
content
:
"\f358"
;
}
.fa-arrow-alt-circle-left
:before
{
content
:
"\f359"
;
}
.fa-arrow-alt-circle-right
:before
{
content
:
"\f35a"
;
}
.fa-arrow-alt-circle-up
:before
{
content
:
"\f35b"
;
}
.fa-arrow-circle-down
:before
{
content
:
"\f0ab"
;
}
.fa-arrow-circle-left
:before
{
content
:
"\f0a8"
;
}
.fa-arrow-circle-right
:before
{
content
:
"\f0a9"
;
}
.fa-arrow-circle-up
:before
{
content
:
"\f0aa"
;
}
.fa-arrow-down
:before
{
content
:
"\f063"
;
}
.fa-arrow-left
:before
{
content
:
"\f060"
;
}
.fa-arrow-right
:before
{
content
:
"\f061"
;
}
.fa-arrow-up
:before
{
content
:
"\f062"
;
}
.fa-arrows-alt
:before
{
content
:
"\f0b2"
;
}
.fa-arrows-alt-h
:before
{
content
:
"\f337"
;
}
.fa-arrows-alt-v
:before
{
content
:
"\f338"
;
}
.fa-artstation
:before
{
content
:
"\f77a"
;
}
.fa-assistive-listening-systems
:before
{
content
:
"\f2a2"
;
}
.fa-asterisk
:before
{
content
:
"\f069"
;
}
.fa-asymmetrik
:before
{
content
:
"\f372"
;
}
.fa-at
:before
{
content
:
"\f1fa"
;
}
.fa-atlas
:before
{
content
:
"\f558"
;
}
.fa-atlassian
:before
{
content
:
"\f77b"
;
}
.fa-atom
:before
{
content
:
"\f5d2"
;
}
.fa-audible
:before
{
content
:
"\f373"
;
}
.fa-audio-description
:before
{
content
:
"\f29e"
;
}
.fa-autoprefixer
:before
{
content
:
"\f41c"
;
}
.fa-avianex
:before
{
content
:
"\f374"
;
}
.fa-aviato
:before
{
content
:
"\f421"
;
}
.fa-award
:before
{
content
:
"\f559"
;
}
.fa-aws
:before
{
content
:
"\f375"
;
}
.fa-baby
:before
{
content
:
"\f77c"
;
}
.fa-baby-carriage
:before
{
content
:
"\f77d"
;
}
.fa-backspace
:before
{
content
:
"\f55a"
;
}
.fa-backward
:before
{
content
:
"\f04a"
;
}
.fa-bacon
:before
{
content
:
"\f7e5"
;
}
.fa-balance-scale
:before
{
content
:
"\f24e"
;
}
.fa-ban
:before
{
content
:
"\f05e"
;
}
.fa-band-aid
:before
{
content
:
"\f462"
;
}
.fa-bandcamp
:before
{
content
:
"\f2d5"
;
}
.fa-barcode
:before
{
content
:
"\f02a"
;
}
.fa-bars
:before
{
content
:
"\f0c9"
;
}
.fa-baseball-ball
:before
{
content
:
"\f433"
;
}
.fa-basketball-ball
:before
{
content
:
"\f434"
;
}
.fa-bath
:before
{
content
:
"\f2cd"
;
}
.fa-battery-empty
:before
{
content
:
"\f244"
;
}
.fa-battery-full
:before
{
content
:
"\f240"
;
}
.fa-battery-half
:before
{
content
:
"\f242"
;
}
.fa-battery-quarter
:before
{
content
:
"\f243"
;
}
.fa-battery-three-quarters
:before
{
content
:
"\f241"
;
}
.fa-battle-net
:before
{
content
:
"\f835"
;
}
.fa-bed
:before
{
content
:
"\f236"
;
}
.fa-beer
:before
{
content
:
"\f0fc"
;
}
.fa-behance
:before
{
content
:
"\f1b4"
;
}
.fa-behance-square
:before
{
content
:
"\f1b5"
;
}
.fa-bell
:before
{
content
:
"\f0f3"
;
}
.fa-bell-slash
:before
{
content
:
"\f1f6"
;
}
.fa-bezier-curve
:before
{
content
:
"\f55b"
;
}
.fa-bible
:before
{
content
:
"\f647"
;
}
.fa-bicycle
:before
{
content
:
"\f206"
;
}
.fa-bimobject
:before
{
content
: