Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roni Choudhury
tangelo-site
Commits
4d425628
Commit
4d425628
authored
Apr 07, 2015
by
Roni Choudhury
Browse files
Changing document structure to allow for better, responsive description placards
parent
7cd46780
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/jade/mixins/thumbnail.jade
View file @
4d425628
...
...
@@ -10,6 +10,6 @@ mixin thumbnail(ex)
img(src="#{ex.path}/thumbnail.png")
.caption
h3.title #{ex.title}
if ex.about
.description
p #{ex.about}
if ex.about
.description
p #{ex.about}
src/js/index.js
View file @
4d425628
...
...
@@ -28,14 +28,14 @@ $(function () {
// Set up a function to fade in the description on mouseover.
fadeIn
=
function
()
{
$
(
this
)
.
find
(
"
.caption
.description
"
)
.
find
(
"
.description
"
)
.
fadeIn
(
250
);
};
// Set up the inverse function to fade the description out on mouseout.
fadeOut
=
function
()
{
$
(
this
)
.
find
(
"
.caption
.description
"
)
.
find
(
"
.description
"
)
.
fadeOut
(
250
);
};
...
...
src/stylus/index.styl
View file @
4d425628
...
...
@@ -11,12 +11,15 @@
.pager li > a.orange:focus
background-color chocolate
.thumbnail .caption .description
.thumbnail
position inherit
.thumbnail .description
position absolute
top 5px
left 20px
top 4px
left 4px
right 4px
background rgba(50, 50, 50, 0.8)
width 252.5px
padding 2%
display none
color white
...
...
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