forked from Public/pics
626 lines
11 KiB
CSS
626 lines
11 KiB
CSS
/**
|
|
* Styles for the fifth version of Aaronweb.net.
|
|
* (C) Aaron van Geffen 2013, 2014
|
|
* DO NOT COPY OR RE-USE WITHOUT EXPLICIT WRITTEN PERMISSION. THANK YOU.
|
|
*/
|
|
|
|
@import url(//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic);
|
|
@import url('//fonts.googleapis.com/css2?family=Coda&display=swap');
|
|
|
|
@font-face {
|
|
font-family: 'Invaders';
|
|
src: url('fonts/invaders.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
body {
|
|
font-family: "Open Sans", sans-serif;
|
|
background: #aaa 0 -50% fixed;
|
|
padding: 0 0 3rem;
|
|
}
|
|
|
|
#wrapper, header .container {
|
|
width: 95%;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a {
|
|
color: #963626;
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
color: #262626;
|
|
}
|
|
|
|
.page-link {
|
|
color: #b50707;
|
|
font-family: 'Coda', sans-serif;
|
|
}
|
|
.page-link:hover {
|
|
color: #a40d0d;
|
|
}
|
|
.active > .page-link, .page-link.active {
|
|
background-color: #990b0b;
|
|
border-color: #a40d0d;
|
|
}
|
|
|
|
.btn {
|
|
font-family: 'Coda', sans-serif;
|
|
}
|
|
.btn-primary {
|
|
--bs-btn-bg: #6c757d;
|
|
--bs-btn-border-color: #6c757d;
|
|
--bs-btn-hover-bg: #5c636a;
|
|
--bs-btn-hover-border-color: #565e64;
|
|
--bs-btn-focus-shadow-rgb: 130, 138, 145;
|
|
--bs-btn-active-bg: #565e64;
|
|
--bs-btn-active-border-color: #51585e;
|
|
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
--bs-btn-disabled-bg: #6c757d;
|
|
--bs-btn-disabled-border-color: #6c757d;
|
|
}
|
|
|
|
.dropdown-item.active, .dropdown-item:active {
|
|
background-color: #990b0b;
|
|
}
|
|
|
|
|
|
/* Navigation
|
|
---------------*/
|
|
#mainNav {
|
|
font-family: 'Coda', sans-serif;
|
|
margin-bottom: 4rem;
|
|
}
|
|
.nav-divider {
|
|
height: 2.5rem;
|
|
border-left: .1rem solid rgba(255,255,255, 0.2);
|
|
margin: 0 0.5rem;
|
|
}
|
|
.navbar-brand {
|
|
padding-left: 80px;
|
|
position: relative;
|
|
}
|
|
i.space-invader::before {
|
|
color: #fff;
|
|
content: 'B';
|
|
display: inline-block;
|
|
font: 85px 'Invaders';
|
|
height: 85px;
|
|
left: -25px;
|
|
position: absolute;
|
|
text-align: center;
|
|
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
|
|
top: -5px;
|
|
transform: rotate(-5deg);
|
|
transition: 0.25s;
|
|
width: 110px;
|
|
}
|
|
.navbar-brand:hover i.space-invader::before {
|
|
transform: rotate(5deg);
|
|
}
|
|
i.space-invader.alt-1::before {
|
|
content: 'C';
|
|
}
|
|
i.space-invader.alt-2::before {
|
|
content: 'D';
|
|
}
|
|
i.space-invader.alt-3::before {
|
|
content: 'E';
|
|
}
|
|
i.space-invader.alt-4::before {
|
|
content: 'H';
|
|
}
|
|
i.space-invader.alt-5::before {
|
|
content: 'I';
|
|
}
|
|
i.space-invader.alt-6::before {
|
|
content: 'N';
|
|
}
|
|
i.space-invader.alt-7::before {
|
|
content: 'O';
|
|
}
|
|
@media (max-width: 991px) {
|
|
.navbar-brand {
|
|
padding-left: 60px;
|
|
}
|
|
i.space-invader::before {
|
|
font-size: 50px;
|
|
left: -10px;
|
|
top: -7px;
|
|
width: 70px;
|
|
}
|
|
}
|
|
|
|
|
|
/* Content boxes
|
|
------------------*/
|
|
.content-box {
|
|
background-color: #fff;
|
|
margin: 0 auto 2rem;
|
|
padding: 2rem;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
|
|
}
|
|
.content-box h1,
|
|
.content-box h2,
|
|
.content-box h3 {
|
|
font-family: 'Coda', sans-serif;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
|
|
/* Tiled grid
|
|
---------------*/
|
|
.tiled_header {
|
|
background: #fff;
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
border-radius: 0.5rem;
|
|
color: #000;
|
|
clear: both;
|
|
float: left;
|
|
margin: 0 0 1.5% 0;
|
|
font: 400 18px/2.2 'Coda', sans-serif;
|
|
padding: 6px 22px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tiled_grid {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.tiled_grid div.landscape, .tiled_grid div.portrait, .tiled_grid div.panorama,
|
|
.tiled_grid div.duo, .tiled_grid div.single {
|
|
background: #fff;
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
float: left;
|
|
line-height: 0;
|
|
margin: 0 3.5% 3.5% 0;
|
|
overflow: hidden;
|
|
position: relative;
|
|
width: 31%;
|
|
}
|
|
.tiled_grid div img {
|
|
background: url('../images/nothumb.svg') center no-repeat;
|
|
border: none;
|
|
width: 100%;
|
|
}
|
|
.tiled_grid div h4 {
|
|
color: #000;
|
|
margin: 0;
|
|
font: 400 18px 'Coda', sans-serif;
|
|
padding: 15px 5px;
|
|
text-overflow: ellipsis;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.tiled_grid div a {
|
|
text-decoration: none;
|
|
}
|
|
.tiled_grid div.landscape:hover, .tiled_grid div.portrait:hover, .tiled_grid div.panorama:hover,
|
|
.tiled_grid div.duo:hover, .tiled_grid div.single:hover {
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
/* Panoramas */
|
|
.tiled_grid div.panorama, .tiled_grid .tiled_row {
|
|
clear: both;
|
|
float: left;
|
|
width: 100%;
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* Tiling: one landscape, two tiles */
|
|
.tiled_row .column_landscape {
|
|
float: left;
|
|
width: 65.5%;
|
|
margin: 0 3.5% 3.5% 0;
|
|
}
|
|
.tiled_row .column_landscape div {
|
|
width: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.tiled_row .column_tiles_two {
|
|
float: left;
|
|
width: 31%;
|
|
}
|
|
.tiled_row .column_tiles_two div {
|
|
float: left;
|
|
width: 100%;
|
|
margin: 0 0 10% 0;
|
|
}
|
|
|
|
/* Tiling: big portrait, four tiles */
|
|
.tiled_row .column_portrait {
|
|
float: left;
|
|
width: 31%;
|
|
margin: 0 3.5% 3.5% 0;
|
|
}
|
|
.tiled_row .column_portrait div {
|
|
width: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.tiled_row .column_tiles_four {
|
|
float: left;
|
|
width: 65.5%;
|
|
}
|
|
.tiled_row .column_tiles_four div {
|
|
float: left;
|
|
width: 47.45%;
|
|
margin: 0 5% 5% 0;
|
|
}
|
|
|
|
/* Tiling: two tiles */
|
|
.tiled_row .duo {
|
|
width: 48.25% !important;
|
|
}
|
|
|
|
/* Tiling: one tile */
|
|
.tiled_row .single {
|
|
width: 48.25% !important;
|
|
}
|
|
|
|
/* Tiling: remove horizontal margin at end of row. */
|
|
.tiled_row > div:nth-child(3n),
|
|
.tiled_row > .duo:nth-child(2) {
|
|
margin-right: 0 !important;
|
|
}
|
|
.tiled_row .column_tiles_four > div:nth-child(2n) {
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* Tiling: switch places for odd rows */
|
|
.tiled_row:nth-child(odd) .column_landscape,
|
|
.tiled_row:nth-child(odd) .column_portrait {
|
|
float: right;
|
|
margin: 0 0 3.5% 3.5%;
|
|
}
|
|
.tiled_row:nth-child(odd) .column_tiles_four {
|
|
float: right;
|
|
}
|
|
.tiled_row:nth-child(odd) .column_tiles_two {
|
|
float: right;
|
|
}
|
|
|
|
|
|
/* Album title boxes
|
|
----------------------*/
|
|
.album_title_box {
|
|
margin-left: -46px;
|
|
width: 100%;
|
|
}
|
|
.album_title_box > a {
|
|
background: #fff;
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
border-top-left-radius: 0.5rem;
|
|
border-bottom-left-radius: 0.5rem;
|
|
display: inline-block;
|
|
float: left;
|
|
font-size: 2em;
|
|
line-height: 1;
|
|
padding: 8px 10px;
|
|
}
|
|
.album_title_box > div {
|
|
background: #fff;
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
border-top-right-radius: 0.5rem;
|
|
border-bottom-right-radius: 0.5rem;
|
|
float: left;
|
|
font: inherit;
|
|
padding: 6px 22px;
|
|
max-width: 90%;
|
|
margin: 0 0 1.5% 0;
|
|
}
|
|
.album_title_box h2 {
|
|
color: #262626;
|
|
font: 400 18px/2 'Coda', sans-serif !important;
|
|
margin: 0;
|
|
}
|
|
.album_title_box p {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
|
|
/* Album button box
|
|
---------------------*/
|
|
.album_button_box {
|
|
float: right;
|
|
margin-bottom: 3rem;
|
|
}
|
|
.album_button_box > a {
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
padding: 8px 10px;
|
|
margin-left: 12px;
|
|
}
|
|
|
|
|
|
/* (Tag) autosuggest
|
|
----------------------*/
|
|
#new_tag_container {
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
.autosuggest {
|
|
background: #fff;
|
|
border: 1px solid #ccc;
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 37px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.autosuggest li {
|
|
display: block !important;
|
|
padding: 3px 8px;
|
|
}
|
|
.autosuggest li:hover, .autosuggest li.selected {
|
|
background: #CFECF7;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
/* Error pages
|
|
----------------*/
|
|
.errormsg p {
|
|
font-size: 1.1em;
|
|
margin: 1em 0 0;
|
|
}
|
|
.errorpage .widget {
|
|
margin-top: 3%;
|
|
}
|
|
.errorpage .widget_recentposts {
|
|
margin-right: 0;
|
|
}
|
|
|
|
|
|
/* Featured thumbnail selection
|
|
---------------------------------*/
|
|
#featuredThumbnail {
|
|
list-style: none;
|
|
margin: 2.5% 0 0;
|
|
padding: 0;
|
|
clear: both;
|
|
overflow: auto;
|
|
}
|
|
#featuredThumbnail li {
|
|
float: left;
|
|
width: 18%;
|
|
line-height: 0;
|
|
margin: 0 1% 2%;
|
|
min-width: 200px;
|
|
height: 149px;
|
|
position: relative;
|
|
}
|
|
#featuredThumbnail input {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
right: 0.5rem;
|
|
z-index: 100;
|
|
}
|
|
#featuredThumbnail img {
|
|
width: 100%;
|
|
box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
|
|
/* Footer
|
|
-----------*/
|
|
footer {
|
|
clear: both;
|
|
color: #fff;
|
|
font: 400 12px/1.7 "Open Sans", sans-serif;
|
|
padding: 40px 0 0;
|
|
text-align: center;
|
|
overflow: auto;
|
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
|
|
}
|
|
footer a {
|
|
color: #eee;
|
|
}
|
|
|
|
|
|
/* Styling for the photo pages
|
|
--------------------------------*/
|
|
#photo_frame {
|
|
text-align: center;
|
|
}
|
|
#photo_frame a {
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
cursor: -moz-zoom-in;
|
|
display: inline-block;
|
|
}
|
|
#photo_frame a img {
|
|
border: none;
|
|
display: block;
|
|
height: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
#previous_photo, #next_photo {
|
|
background: #fff;
|
|
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
color: #262626;
|
|
font-size: 3em;
|
|
line-height: 0.5;
|
|
padding: 32px 8px;
|
|
position: fixed;
|
|
text-decoration: none;
|
|
top: 45%;
|
|
}
|
|
#previous_photo em, #next_photo em {
|
|
position: absolute;
|
|
top: -1000em;
|
|
left: -1000em;
|
|
}
|
|
span#previous_photo, span#next_photo {
|
|
opacity: 0.25;
|
|
}
|
|
a#previous_photo:hover, a#next_photo:hover {
|
|
background: #eee;
|
|
color: #000;
|
|
}
|
|
#previous_photo {
|
|
border-top-right-radius: 0.5rem;
|
|
border-bottom-right-radius: 0.5rem;
|
|
left: 0;
|
|
}
|
|
#next_photo {
|
|
border-top-left-radius: 0.5rem;
|
|
border-bottom-left-radius: 0.5rem;
|
|
right: 0;
|
|
}
|
|
|
|
#sub_photo h2, #sub_photo h3, #photo_exif_box h3, #user_actions_box h3 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
#sub_photo #tag_list {
|
|
list-style: none;
|
|
margin: 1em 0;
|
|
padding: 0;
|
|
}
|
|
#sub_photo #tag_list li {
|
|
display: inline;
|
|
padding-right: 0.75em;
|
|
}
|
|
#tag_list .delete-tag {
|
|
opacity: 0.25;
|
|
}
|
|
#tag_list .delete-tag:hover {
|
|
opacity: 1.0;
|
|
}
|
|
|
|
|
|
#photo_exif_box dt {
|
|
font-weight: bold;
|
|
float: left;
|
|
clear: left;
|
|
width: 120px;
|
|
}
|
|
#photo_exif_box dt:after {
|
|
content: ':';
|
|
}
|
|
#photo_exif_box dd {
|
|
float: left;
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
/* Responsive: smartphone in portrait
|
|
---------------------------------------*/
|
|
@media only screen and (max-width: 895px) {
|
|
#wrapper, header {
|
|
width: 100% !important;
|
|
min-width: 100% !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.album_title_box {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.tiled_header {
|
|
font-size: 14px;
|
|
margin: 0 0 3.5% 0;
|
|
}
|
|
.tiled_grid div h4 {
|
|
font-size: 14px;
|
|
padding: 15px 5px;
|
|
}
|
|
|
|
.tiled_row > div, .tiled_row .single, .tiled_row .duo {
|
|
float: none !important;
|
|
width: 100% !important;
|
|
margin: 0 0 5% !important;
|
|
}
|
|
|
|
.tiled_row > div > div {
|
|
float: none !important;
|
|
width: 100% !important;
|
|
margin: 0 0 5% !important;
|
|
}
|
|
|
|
#previous_photo, #next_photo {
|
|
display: none;
|
|
}
|
|
|
|
#sub_photo, #photo_exif_box {
|
|
float: none;
|
|
margin: 30px 0;
|
|
padding: 10px;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
|
|
/* Upload form
|
|
----------------*/
|
|
#upload_preview_area {
|
|
margin: 10px 0;
|
|
}
|
|
#upload_preview_area > div {
|
|
display: inline-block;
|
|
margin: 0 5px 0 0;
|
|
line-height: 0;
|
|
position: relative;
|
|
}
|
|
#upload_preview_area .progress {
|
|
position: absolute;
|
|
bottom: 0;
|
|
background: rgba(200, 200, 200, 0.5);
|
|
height: 5px;
|
|
width: 100%;
|
|
}
|
|
#upload_preview_area .progress > div {
|
|
background: #2b2;
|
|
height: 5px;
|
|
width: 0%;
|
|
}
|
|
#upload_preview_area .progress .error {
|
|
background: #b22;
|
|
}
|
|
#photo_submit:disabled {
|
|
background: #ccc;
|
|
color: #777;
|
|
border-color: #aaa;
|
|
}
|
|
|
|
|
|
/* Spinner animation
|
|
----------------------*/
|
|
.spinner {
|
|
display: inline-block;
|
|
background-color: #74AFCF;
|
|
height: 20px;
|
|
width: 20px;
|
|
margin: 0 5px;
|
|
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
|
|
animation: sk-rotateplane 1.2s infinite ease-in-out;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@-webkit-keyframes sk-rotateplane {
|
|
0% { -webkit-transform: perspective(120px) }
|
|
50% { -webkit-transform: perspective(120px) rotateY(180deg) }
|
|
100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
|
|
}
|
|
|
|
@keyframes sk-rotateplane {
|
|
0% {
|
|
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
|
|
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
|
|
} 50% {
|
|
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
|
|
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
|
|
} 100% {
|
|
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
|
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
|
}
|
|
}
|