1/* 2 * Extension plugin styles 3 * 4 * @author Christopher Smith <chris@jalakai.co.uk> 5 * @author Piyush Mishra <me@piyushmishra.com> 6 * @author Håkan Sandell <sandell.hakan@gmail.com> 7 * @author Anika Henke <anika@selfthinker.org> 8 */ 9 10/** 11 * very simple lightbox 12 * @link http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/super-simple-lightbox-with-css-and-jquery/ 13 */ 14#plugin__extensionlightbox { 15 position: fixed; 16 top: 0; 17 left: 0; 18 width: 100%; 19 height: 100%; 20 background: url(images/overlay.png) repeat; 21 text-align: center; 22 cursor: pointer; 23 z-index: 9999; 24 25 p { 26 text-align: right; 27 color: #fff; 28 margin-right: 20px; 29 font-size: 12px; 30 } 31 32 img { 33 box-shadow: 0 0 25px #111; 34 max-width: 90%; 35 max-height: 90%; 36 } 37} 38 39/** 40 * general styles 41 */ 42#extension__manager { 43 // tab layout - most of it is in the main template 44 ul.tabs li.active a { 45 background-color: @ini_background_alt; 46 border-bottom: solid 1px @ini_background_alt; 47 z-index: 2; 48 } 49 50 .panelHeader { 51 background-color: @ini_background_alt; 52 margin: 0 0 10px 0; 53 padding: 10px 10px 8px; 54 overflow: hidden; 55 } 56 57 // message spacing 58 div.msg { 59 margin: 0.4em 0 0 0; 60 } 61} 62 63 64#extension__list { 65 @thumbwidth: 125px; // width of the thumbnail column, can be increased once we have larger thumbnails 66 67 &, * { 68 box-sizing: border-box; 69 } 70 71 section.extension { 72 display: grid; 73 grid-template-columns: @thumbwidth auto 15em; 74 grid-template-rows: repeat(4, auto); 75 margin-bottom: 1em; 76 border-bottom: 1px solid @ini_border; 77 78 > .screenshot { 79 grid-column: 1; 80 grid-row: 1; 81 padding-top: 0.5em; 82 padding-right: 0.5em; 83 margin-bottom: 1.5em; // adds space for the detail summary label 84 position: relative; 85 86 img { 87 border: 1px solid @ini_border; 88 border-radius: 2px; 89 width: 100%; 90 height: auto; 91 } 92 93 .id { 94 font-size: 80%; 95 color: @ini_text_alt; 96 background-color: @ini_background_alt; 97 padding: 0.1em 0.25em; 98 position: absolute; 99 top: 0.5em; 100 left: 0; 101 border-bottom-left-radius: 2px; 102 white-space: nowrap; 103 max-width: 100%; 104 overflow: hidden; 105 text-overflow: ellipsis; 106 cursor: default; 107 } 108 109 .popularity { 110 cursor: default; 111 } 112 } 113 114 > .main { 115 grid-column: 2; 116 grid-row: 1; 117 padding: 0.5em; 118 min-height: 7em; 119 120 > h2 { 121 font-size: 100%; 122 line-height: 1.2; 123 font-weight: normal; 124 display: flex; 125 gap: 1em; 126 justify-content: space-between; 127 128 strong { 129 font-size: 120%; 130 font-weight: bold; 131 } 132 133 .version { 134 } 135 } 136 } 137 138 > .actions { 139 grid-column: 3; 140 grid-row: 1; 141 padding: 0.5em 0 0.5em 0.5em; 142 display: flex; 143 flex-direction: column; 144 align-items: end; 145 gap: 0.5em; 146 147 .version { 148 line-height: 1.2; 149 margin-bottom: 1em; 150 } 151 } 152 153 154 > .notices { 155 grid-column: 2 / span 2; 156 grid-row: 2; 157 padding: 0 0.5em; 158 159 ul, li { 160 list-style: none; 161 margin: 0.5em 0 0 0; 162 padding: 0; 163 164 span { 165 font-weight: bold; 166 color: @ini_link; 167 } 168 } 169 } 170 171 > .details { 172 grid-column: 1 / span 3; 173 grid-row: 3; 174 175 details { 176 font-size: 90%; 177 border: 1px solid transparent; // fixes jumping summary 178 summary { 179 cursor: pointer; 180 float: left; 181 margin-top: -1.5em; // moves it up into the screenshot margin 182 color: @ini_text_alt; 183 } 184 185 &[open] { 186 dl { 187 margin: 0.5em 0 0.5em 0; 188 } 189 } 190 191 dl { 192 margin: 0; 193 display: grid; 194 grid-template-columns: @thumbwidth auto; 195 196 dt { 197 } 198 199 dd { 200 grid-column: 2; 201 margin: 0 0 0 0.5em; 202 } 203 } 204 } 205 } 206 } 207 208 section.extension.installed.disabled { 209 .screenshot img, 210 .main, 211 .details { 212 opacity: 0.5; 213 } 214 } 215} 216 217/** 218 * Search form 219 */ 220#extension__manager form.search { 221 display: block; 222 margin-bottom: 2em; 223 224 span { 225 font-weight: bold; 226 } 227 228 input.edit { 229 width: 25em; 230 } 231} 232 233/** 234 * Install form 235 */ 236#extension__manager form.install { 237 text-align: center; 238 display: block; 239 width: 60%; 240} 241 242#extension__viewoptions label { 243 margin-left: 1em; 244 vertical-align: baseline; 245} 246