neoretro-sigal.css
· 3.5 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;
}
header h1 a:hover, header h2 a:hover {
text-decoration: none;
}
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 {
box-shadow: 10px 10px black;
border: 2px solid white;
}
#albums a {
background: none;
box-shadow: none;
}
#albums img:hover {
border: 2px solid magenta;
}
#albums img:active {
margin: 7px 0px 7px 7px;
box-shadow: none;
}
.album_title {
display: block;
color: white;
font-size: 1.2em;
font-weight: bold;
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 | } |
| 60 | header h1 a:hover, header h2 a:hover { |
| 61 | text-decoration: none; |
| 62 | } |
| 63 | header hr { |
| 64 | margin-top: 18px; |
| 65 | border: 2px solid cyan; |
| 66 | } |
| 67 | |
| 68 | #menu ul { |
| 69 | list-style-type: none; |
| 70 | margin: 0 0 10px; |
| 71 | padding: 0; |
| 72 | } |
| 73 | #menu ul li { |
| 74 | display: inline-block; |
| 75 | } |
| 76 | #menu ul li a, #menu ul li a:link, #menu ul li a:visited { |
| 77 | color: #aaaaaa; |
| 78 | border-bottom: 1px solid #aaaaaa; |
| 79 | padding-bottom: 2px; |
| 80 | margin-left: 5px; |
| 81 | text-decoration: none; |
| 82 | } |
| 83 | #menu ul li a:hover { |
| 84 | color: #eeeeee; |
| 85 | border-color: #eeeeee; |
| 86 | text-decoration: none; |
| 87 | } |
| 88 | |
| 89 | /* gallery */ |
| 90 | #albums ul { |
| 91 | list-style-type: none; |
| 92 | padding-left: 0; |
| 93 | } |
| 94 | #albums ul li { |
| 95 | display: inline-block; |
| 96 | margin: 0 55px 30px 0; |
| 97 | text-align: center; |
| 98 | vertical-align: top; |
| 99 | width: 280px; |
| 100 | } |
| 101 | #albums ul li:nth-child(3n+3) { |
| 102 | margin-right: 0; |
| 103 | } |
| 104 | #albums ul li a img { |
| 105 | box-shadow: 10px 10px black; |
| 106 | border: 2px solid white; |
| 107 | } |
| 108 | #albums a { |
| 109 | background: none; |
| 110 | box-shadow: none; |
| 111 | } |
| 112 | #albums img:hover { |
| 113 | border: 2px solid magenta; |
| 114 | } |
| 115 | #albums img:active { |
| 116 | margin: 7px 0px 7px 7px; |
| 117 | box-shadow: none; |
| 118 | } |
| 119 | |
| 120 | .album_title { |
| 121 | display: block; |
| 122 | color: white; |
| 123 | font-size: 1.2em; |
| 124 | font-weight: bold; |
| 125 | text-align: center; |
| 126 | padding-left: 25px; |
| 127 | } |
| 128 | |
| 129 | /* galleria */ |
| 130 | #gallery { |
| 131 | line-height: 0; |
| 132 | width: 100%; |
| 133 | height: 600px; |
| 134 | clear: both; |
| 135 | box-shadow: 7px 7px black; |
| 136 | border: 2px solid magenta; |
| 137 | } |
| 138 | #gallery video { |
| 139 | position: absolute; |
| 140 | top: 10%; |
| 141 | width: 100%; |
| 142 | margin: 0 auto; |
| 143 | } |
| 144 | .galleria-theme-classic .galleria-info-text { |
| 145 | background-color: rgba(0, 0, 0, 0.7); |
| 146 | } |
| 147 | |
| 148 | .icons { |
| 149 | top: 10px; |
| 150 | right: 20px; |
| 151 | padding: 6px; |
| 152 | z-index: 2; |
| 153 | position: absolute; |
| 154 | text-align: right; |
| 155 | } |
| 156 | .icons a { |
| 157 | cursor: pointer; |
| 158 | padding-top: 9px; |
| 159 | } |
| 160 | .icons a:active { |
| 161 | background: black; |
| 162 | } |
| 163 | /* Mimic .galleria-stage to use the same area for the map */ |
| 164 | #galleria-map { |
| 165 | position: absolute; |
| 166 | bottom: 80px; |
| 167 | left: 10px; |
| 168 | top: 0; |
| 169 | right: 10px; |
| 170 | } |
| 171 | |
| 172 | /* footer */ |
| 173 | footer { |
| 174 | clear: both; |
| 175 | display: block; |
| 176 | margin: 1em 0; |
| 177 | text-align: center; |
| 178 | } |
| 179 | footer a:link, footer a:visited { |
| 180 | font-weight: bold; |
| 181 | text-decoration: none; |
| 182 | } |
| 183 | footer a:hover { |
| 184 | text-decoration: none; |
| 185 | border-bottom: none; |
| 186 | } |
| 187 | footer span:not(:last-child):after { |
| 188 | content: ' - '; |
| 189 | } |
| 190 | |
| 191 | @media only screen and (min-width: 980px) { |
| 192 | .container { |
| 193 | width: 960px; |
| 194 | } |
| 195 | |
| 196 | #gallery { |
| 197 | width: 980px; |
| 198 | margin: 0 0 40px -10px; |
| 199 | } |
| 200 | |
| 201 | header h1, #menu { |
| 202 | display: inline-block; |
| 203 | width: 49.5%; |
| 204 | } |
| 205 | #menu { |
| 206 | text-align: right; |
| 207 | } |
| 208 | } |