fixing media site

This commit is contained in:
nek0 2015-01-14 20:16:45 +01:00
parent 312e9831e2
commit 312a89e0b7
10 changed files with 37 additions and 21 deletions

View file

@ -48,7 +48,7 @@ var parallelism = (function($) { var _ = {
marginTop: 0, marginTop: 0,
// Nudge the reel by this value (in px) after it's been vertically centered. // Nudge the reel by this value (in px) after it's been vertically centered.
verticalNudge: 60, verticalNudge: 0,
// Maximum number of rows. // Maximum number of rows.
maxRows: 5, maxRows: 5,

View file

@ -1,9 +1,9 @@
$newline always $newline always
<div id="header" class="item" data-width="300"> <div id="header" class="item" data-width="300">
<form class="inner" method="post" enctype=#{enctype}> <form class="inner" method="post" enctype=#{enctype}>
<h1>Album settings <h3>Album settings
^{albumSettingsWidget} ^{albumSettingsWidget}
<div> <div>
<input type=submit value="Change settings"> <input type=submit value="Change settings">
$if ownerPresence == True $if ownerPresence == True
<a href=@{AlbumDeleteR albumId}>Delete this album <a href=@{AlbumDeleteR albumId}>Delete this album

View file

@ -1,6 +1,6 @@
<div id="header" class="item" data-width="400"> <div id="header" class="item" data-width="400">
<form class="inner" method=post enctype=#{enctype}> <form class="inner" method=post enctype=#{enctype}>
<h3>Image upload to album #{albumTitle album} <h1>Image upload to album #{albumTitle album}
<p>Here you can upload your image. <p>Here you can upload your image.
^{dUploadWidget} ^{dUploadWidget}
<div> <div>

View file

@ -16,3 +16,6 @@ nav li
nav nav
padding: 1em 2em !important padding: 1em 2em !important
a:hover
color: black !important

View file

@ -1,3 +1,12 @@
#main, #reel, #header #main, #reel, #header
overflow-y: auto !important overflow-y: auto !important
height: auto !important height: auto !important
#reel
max-height: 670px !important
#header
max-height: 650px !important
.inner
max-height: 550px !important

View file

@ -1,6 +1,8 @@
img img
position: relative !important position: relative !important
width: 100% max-width: 100% !important
height: 28em !important
width: auto !important
.reply .reply
margin-left: 50px margin-left: 50px

View file

@ -57,3 +57,6 @@
get a feed from this: get a feed from this:
<a href=@{CommentFeedAtomR mediumId}>Atom <a href=@{CommentFeedAtomR mediumId}>Atom
<a href=@{CommentFeedRssR mediumId}>RSS <a href=@{CommentFeedRssR mediumId}>RSS
<style type="text/css">
body{background-image: url('/static/css/images/overlay.png'), -webkit-linear-gradient(top, rgba(0,0,0,0) 75%, rgba(0,0,0,0.65)), url('#{mediumPath medium}');}

View file

@ -1,7 +1,7 @@
$newline always $newline always
<div id="header" class="item" data-width="300"> <div id="header" class="item" data-width="300">
<form class="inner" method="post" enctype=#{enctype}> <form class="inner" method="post" enctype=#{enctype}>
<h1>Profile settings <h3>Profile settings
^{profileSettingsWidget} ^{profileSettingsWidget}
<div> <div>
<input type=submit value="Change settings"> <input type=submit value="Change settings">

View file

@ -1,14 +1,13 @@
$newline always $newline always
<div id="header" class="item" data-width="400">
<div class="inner">
<h1>Tag #{tag}
$if null media
There are no media tagged with #{tag}
<h3>Tag #{tag} $forall Just (Entity mId m) <- media
<article class="item" data-width=#{mediumThumbWidth m}>
$if null media <a href=@{MediumR mId}>
There are no media tagged with #{tag} <figure class="thumbnail">
$else <img src=#{mediumThumb m}>
<ul> <figcapion>#{mediumTitle m}
$forall Just (Entity mId m) <- media
<li>
<a href=@{MediumR mId}>
<figure class="thumbnail">
<img src=#{mediumThumb m}>
<figcapion>#{mediumTitle m}

View file

@ -1,6 +1,6 @@
<div id="header" class="item" data-width="400"> <div id="header" class="item" data-width="400">
<form class="inner" method=post enctype=#{enctype}> <form class="inner" method=post enctype=#{enctype}>
<h1>Image upload <h3>Image upload
<p>Here you can upload your image. <p>Here you can upload your image.
^{uploadWidget} ^{uploadWidget}
<div> <div>