Extract display of an album into its own template
[Sone.git] / src / main / resources / static / css / sone.css
index 1767090..557ea46 100644 (file)
@@ -353,6 +353,54 @@ textarea {
        cursor: pointer;
 }
 
+#sone .post .linked-album {
+       display: table;
+       margin-top: 1ex;
+       border-collapse: collapse;
+}
+
+#sone .post .linked-album .album-header {
+       display: table-caption;
+       margin-bottom: 1ex;
+}
+
+#sone .post .linked-album .album-header .album-title {
+       font-size: 150%;
+       font-weight: bold;
+}
+
+#sone .post .linked-image {
+       display: table-row;
+}
+
+#sone .post .linked-image .image-left {
+       display: table-cell;
+       padding-bottom: 1ex;
+}
+
+#sone .post .linked-image .image {
+       width: 160px;
+       height: 90px;
+       overflow: hidden;
+       border: solid 1px black;
+       display: inline-block;
+       padding: 0px;
+}
+
+#sone .post .linked-image .about-image {
+       display: table-cell;
+       padding-left: 1ex;
+}
+
+#sone .post .linked-image .about-image .title {
+       font-size: 110%;
+       font-weight: bold;
+}
+
+#sone .post .linked-image .about-image .description {
+       margin-top: 0.5ex;
+}
+
 #sone .post .status-line {
        margin-top: 0.5ex;
        font-size: 85%;
@@ -690,6 +738,9 @@ textarea {
        height: 250px;
        overflow: hidden;
        padding: -1px;
+}
+
+#sone .image-container {
        border: solid 1px #000;
 }
 
@@ -713,6 +764,26 @@ textarea {
        width: 95%;
 }
 
+#sone .album-container .image-container {
+       position: absolute;
+}
+
+#sone .album-container .link-to-album {
+       display: none;
+}
+
+#sone .album-container:hover .link-to-album {
+       display: block;
+       float: right;
+       z-index: 1;
+       padding: 0.5ex;
+       background-color: #eee;
+       position: relative;
+       top: 250px;
+       right: 0.5ex;
+       margin-top: -2em;
+}
+
 #sone .image .album-sone {
        font-size: 80%;
 }