neoretro-sigal.css
· 4.0 KiB · CSS
Исходник
body {
background-color: navy;
color: whitesmoke;
font: 16px/1.5 monospace;
}
.container {
margin: 0 auto;
text-align: left;
width: 96%;
}
a, a:link, a:visited {
color: black;
text-decoration: none;
padding: 2px 6px 2px 6px;
background: limegreen;
box-shadow: 7px 7px black;
text-shadow: none;
}
a:hover {
background: forestgreen;
color: yellow;
}
a:active {
background: black;
color: white;
box-shadow: none;
margin: 7px 0px 7px 7px;
}
/* remove SMALLCAPS style and dotted underline from some browsers */
abbr[title] {
text-decoration: none;
font-variant: none;
border-bottom: none;
}
abbr[title="exposure"]::after { content: "s" }
abbr[title="film speed"]::before { content: "ISO " }
abbr[title="aperture"]::before { content: "f/" }
abbr[title="focal length"]::after { content: "mm" }
abbr[title="camera make and model"], abbr[title="date"] {
display: block;
}
/* header */
header {
padding: 1em 0;
}
header h1, header h2 {
margin: 10px 0;
}
header h1 a, header h1 a:link, header h1 a:visited,
header h2 a, header h2 a:link, header h2 a:visited {
text-decoration: none;
background: lightgrey;
text-shadow: none;
color: black;
}
header h1 a:hover, header h2 a:hover {
text-decoration: none;
background: grey;
color: white;
}
header h1 a:active, header h2 a:active {
background: black;
color: white;
}
header hr {
margin-top: 18px;
border: 2px solid cyan;
}
#menu ul {
list-style-type: none;
margin: 0 0 10px;
padding: 0;
}
#menu ul li {
display: inline-block;
}
#menu ul li a, #menu ul li a:link, #menu ul li a:visited {
color: #aaaaaa;
border-bottom: 1px solid #aaaaaa;
padding-bottom: 2px;
margin-left: 5px;
text-decoration: none;
}
#menu ul li a:hover {
color: #eeeeee;
border-color: #eeeeee;
text-decoration: none;
}
/* gallery */
#albums ul {
list-style-type: none;
padding-left: 0;
}
#albums ul li {
display: inline-block;
margin: 0 55px 30px 0;
text-align: center;
vertical-align: top;
width: 280px;
}
#albums ul li:nth-child(3n+3) {
margin-right: 0;
}
#albums ul li a img {
#albums ul li a img {
-webkit-transition: opacity 0s ease-in;
-moz-transition-property: opacity;
-moz-transition-duration: 0s;
-moz-box-shadow: 10px 10px rgba(0, 0, 0, 0);
-webkit-box-shadow: 10px 10px rgba(0, 0, 0, 0);
-o-box-shadow: 10px 10px rgba(0, 0, 0, 0);
box-shadow: 10px 10px black;
border: 2px solid white;
}
box-shadow: 10px 10px black;
border: 2px solid white;
}
#albums a {
background: none;
box-shadow: none;
}
#albums ul li a:hover img {
opacity: 1;
}
#albums img:hover {
border: 2px solid magenta;
opacity: 1;
}
#albums img:active {
margin: 7px 0px 7px 7px;
box-shadow: none;
}
.album_title {
display: block;
color: white;
font-size: 1.2em;
font-weight: bold;
font-variant: none;
text-align: center;
padding-left: 25px;
}
/* galleria */
#gallery {
line-height: 0;
width: 100%;
height: 600px;
clear: both;
box-shadow: 7px 7px black;
border: 2px solid magenta;
}
#gallery video {
position: absolute;
top: 10%;
width: 100%;
margin: 0 auto;
}
.galleria-theme-classic .galleria-info-text {
background-color: rgba(0, 0, 0, 0.7);
}
.icons {
top: 10px;
right: 20px;
padding: 6px;
z-index: 2;
position: absolute;
text-align: right;
}
.icons a {
cursor: pointer;
padding-top: 9px;
}
.icons a:active {
background: black;
}
/* Mimic .galleria-stage to use the same area for the map */
#galleria-map {
position: absolute;
bottom: 80px;
left: 10px;
top: 0;
right: 10px;
}
/* footer */
footer {
clear: both;
display: block;
margin: 1em 0;
text-align: center;
}
footer a:link, footer a:visited {
font-weight: bold;
text-decoration: none;
}
footer a:hover {
text-decoration: none;
border-bottom: none;
}
footer span:not(:last-child):after {
content: ' - ';
}
@media only screen and (min-width: 980px) {
.container {
width: 960px;
}
#gallery {
width: 980px;
margin: 0 0 40px -10px;
}
header h1, #menu {
display: inline-block;
width: 49.5%;
}
#menu {
text-align: right;
}
}
| 1 | body { |
| 2 | background-color: navy; |
| 3 | color: whitesmoke; |
| 4 | font: 16px/1.5 monospace; |
| 5 | } |
| 6 | |
| 7 | .container { |
| 8 | margin: 0 auto; |
| 9 | text-align: left; |
| 10 | width: 96%; |
| 11 | } |
| 12 | |
| 13 | a, a:link, a:visited { |
| 14 | color: black; |
| 15 | text-decoration: none; |
| 16 | padding: 2px 6px 2px 6px; |
| 17 | background: limegreen; |
| 18 | box-shadow: 7px 7px black; |
| 19 | text-shadow: none; |
| 20 | } |
| 21 | |
| 22 | a:hover { |
| 23 | background: forestgreen; |
| 24 | color: yellow; |
| 25 | } |
| 26 | |
| 27 | a:active { |
| 28 | background: black; |
| 29 | color: white; |
| 30 | box-shadow: none; |
| 31 | margin: 7px 0px 7px 7px; |
| 32 | } |
| 33 | |
| 34 | /* remove SMALLCAPS style and dotted underline from some browsers */ |
| 35 | abbr[title] { |
| 36 | text-decoration: none; |
| 37 | font-variant: none; |
| 38 | border-bottom: none; |
| 39 | } |
| 40 | |
| 41 | abbr[title="exposure"]::after { content: "s" } |
| 42 | abbr[title="film speed"]::before { content: "ISO " } |
| 43 | abbr[title="aperture"]::before { content: "f/" } |
| 44 | abbr[title="focal length"]::after { content: "mm" } |
| 45 | abbr[title="camera make and model"], abbr[title="date"] { |
| 46 | display: block; |
| 47 | } |
| 48 | |
| 49 | /* header */ |
| 50 | header { |
| 51 | padding: 1em 0; |
| 52 | } |
| 53 | header h1, header h2 { |
| 54 | margin: 10px 0; |
| 55 | } |
| 56 | header h1 a, header h1 a:link, header h1 a:visited, |
| 57 | header h2 a, header h2 a:link, header h2 a:visited { |
| 58 | text-decoration: none; |
| 59 | background: lightgrey; |
| 60 | text-shadow: none; |
| 61 | color: black; |
| 62 | } |
| 63 | header h1 a:hover, header h2 a:hover { |
| 64 | text-decoration: none; |
| 65 | background: grey; |
| 66 | color: white; |
| 67 | } |
| 68 | header h1 a:active, header h2 a:active { |
| 69 | background: black; |
| 70 | color: white; |
| 71 | } |
| 72 | header hr { |
| 73 | margin-top: 18px; |
| 74 | border: 2px solid cyan; |
| 75 | } |
| 76 | |
| 77 | #menu ul { |
| 78 | list-style-type: none; |
| 79 | margin: 0 0 10px; |
| 80 | padding: 0; |
| 81 | } |
| 82 | #menu ul li { |
| 83 | display: inline-block; |
| 84 | } |
| 85 | #menu ul li a, #menu ul li a:link, #menu ul li a:visited { |
| 86 | color: #aaaaaa; |
| 87 | border-bottom: 1px solid #aaaaaa; |
| 88 | padding-bottom: 2px; |
| 89 | margin-left: 5px; |
| 90 | text-decoration: none; |
| 91 | } |
| 92 | #menu ul li a:hover { |
| 93 | color: #eeeeee; |
| 94 | border-color: #eeeeee; |
| 95 | text-decoration: none; |
| 96 | } |
| 97 | |
| 98 | /* gallery */ |
| 99 | #albums ul { |
| 100 | list-style-type: none; |
| 101 | padding-left: 0; |
| 102 | } |
| 103 | #albums ul li { |
| 104 | display: inline-block; |
| 105 | margin: 0 55px 30px 0; |
| 106 | text-align: center; |
| 107 | vertical-align: top; |
| 108 | width: 280px; |
| 109 | } |
| 110 | #albums ul li:nth-child(3n+3) { |
| 111 | margin-right: 0; |
| 112 | } |
| 113 | #albums ul li a img { |
| 114 | #albums ul li a img { |
| 115 | -webkit-transition: opacity 0s ease-in; |
| 116 | -moz-transition-property: opacity; |
| 117 | -moz-transition-duration: 0s; |
| 118 | -moz-box-shadow: 10px 10px rgba(0, 0, 0, 0); |
| 119 | -webkit-box-shadow: 10px 10px rgba(0, 0, 0, 0); |
| 120 | -o-box-shadow: 10px 10px rgba(0, 0, 0, 0); |
| 121 | box-shadow: 10px 10px black; |
| 122 | border: 2px solid white; |
| 123 | } |
| 124 | box-shadow: 10px 10px black; |
| 125 | border: 2px solid white; |
| 126 | } |
| 127 | #albums a { |
| 128 | background: none; |
| 129 | box-shadow: none; |
| 130 | } |
| 131 | #albums ul li a:hover img { |
| 132 | opacity: 1; |
| 133 | } |
| 134 | #albums img:hover { |
| 135 | border: 2px solid magenta; |
| 136 | opacity: 1; |
| 137 | } |
| 138 | #albums img:active { |
| 139 | margin: 7px 0px 7px 7px; |
| 140 | box-shadow: none; |
| 141 | } |
| 142 | |
| 143 | .album_title { |
| 144 | display: block; |
| 145 | color: white; |
| 146 | font-size: 1.2em; |
| 147 | font-weight: bold; |
| 148 | font-variant: none; |
| 149 | text-align: center; |
| 150 | padding-left: 25px; |
| 151 | } |
| 152 | |
| 153 | /* galleria */ |
| 154 | #gallery { |
| 155 | line-height: 0; |
| 156 | width: 100%; |
| 157 | height: 600px; |
| 158 | clear: both; |
| 159 | box-shadow: 7px 7px black; |
| 160 | border: 2px solid magenta; |
| 161 | } |
| 162 | #gallery video { |
| 163 | position: absolute; |
| 164 | top: 10%; |
| 165 | width: 100%; |
| 166 | margin: 0 auto; |
| 167 | } |
| 168 | .galleria-theme-classic .galleria-info-text { |
| 169 | background-color: rgba(0, 0, 0, 0.7); |
| 170 | } |
| 171 | |
| 172 | .icons { |
| 173 | top: 10px; |
| 174 | right: 20px; |
| 175 | padding: 6px; |
| 176 | z-index: 2; |
| 177 | position: absolute; |
| 178 | text-align: right; |
| 179 | } |
| 180 | .icons a { |
| 181 | cursor: pointer; |
| 182 | padding-top: 9px; |
| 183 | } |
| 184 | .icons a:active { |
| 185 | background: black; |
| 186 | } |
| 187 | /* Mimic .galleria-stage to use the same area for the map */ |
| 188 | #galleria-map { |
| 189 | position: absolute; |
| 190 | bottom: 80px; |
| 191 | left: 10px; |
| 192 | top: 0; |
| 193 | right: 10px; |
| 194 | } |
| 195 | |
| 196 | /* footer */ |
| 197 | footer { |
| 198 | clear: both; |
| 199 | display: block; |
| 200 | margin: 1em 0; |
| 201 | text-align: center; |
| 202 | } |
| 203 | footer a:link, footer a:visited { |
| 204 | font-weight: bold; |
| 205 | text-decoration: none; |
| 206 | } |
| 207 | footer a:hover { |
| 208 | text-decoration: none; |
| 209 | border-bottom: none; |
| 210 | } |
| 211 | footer span:not(:last-child):after { |
| 212 | content: ' - '; |
| 213 | } |
| 214 | |
| 215 | @media only screen and (min-width: 980px) { |
| 216 | .container { |
| 217 | width: 960px; |
| 218 | } |
| 219 | |
| 220 | #gallery { |
| 221 | width: 980px; |
| 222 | margin: 0 0 40px -10px; |
| 223 | } |
| 224 | |
| 225 | header h1, #menu { |
| 226 | display: inline-block; |
| 227 | width: 49.5%; |
| 228 | } |
| 229 | #menu { |
| 230 | text-align: right; |
| 231 | } |
| 232 | } |