Debian Codegraph @

resources/src/mediawiki.action/mediawiki.action.view.filepage.less

raw
1 /*!
2 * File description page
3 */
4 @import 'mediawiki.skin.variables.less';
5
6 /* stylelint-disable selector-class-pattern */
7
8 .mw-filepage-resolutioninfo {
9 // Add small top margin according to the smaller font size.
10 margin-top: @spacing-25;
11 font-size: smaller;
12 }
13
14 /*
15 * Multipage navigation
16 */
17 .mw-filepage-multipage {
18 display: flex;
19 flex-direction: column;
20 }
21
22 .mw-filepage-multipage-navigation {
23 align-items: center;
24 display: flex;
25
26 & > * {
27 margin: 0.5em 0;
28 }
29 }
30
31 .client-js .mw-filepage-multipage-navigation [ type='submit' ] {
32 display: none;
33 }
34
35 @media ( max-width: @max-width-breakpoint-mobile ) {
36 .mw-filepage-multipage-navigation {
37 flex-wrap: wrap;
38 justify-content: space-between;
39
40 /* We need high specificity here */
41 &.mw-filepage-multipage-navigation figure,
42 &.mw-filepage-multipage-navigation .thumb {
43 display: none;
44 }
45
46 & > * {
47 flex: 1 1 auto;
48 }
49
50 & > form {
51 text-align: center;
52 }
53
54 & > :last-child {
55 text-align: end;
56 }
57 }
58 }
59
60 @media ( min-width: @min-width-breakpoint-tablet ) {
61 .mw-filepage-multipage {
62 flex-direction: row;
63 }
64
65 .mw-filepage-multipage-navigation {
66 align-items: flex-start;
67 display: flex;
68 flex-direction: column;
69 justify-content: center;
70 margin-left: 1em;
71
72 & > a {
73 display: none;
74 }
75 }
76 }
77
78 /*
79 * File histories
80 */
81 #filehistory {
82 clear: both;
83 }
84
85 .filehistory {
86 th,
87 td {
88 vertical-align: top;
89 }
90
91 th {
92 text-align: left;
93 }
94
95 .mw-imagepage-filesize {
96 white-space: nowrap;
97 }
98
99 .filehistory-selected {
100 font-weight: bold;
101 }
102 }
103
104 /*
105 * Add a checkered background image on hover for file
106 * description pages. (T28470)
107 */
108 .filehistory a img,
109 #file img:hover {
110 background: url( images/checker.svg ) repeat;
111 }
112
113 /*
114 * filetoc
115 */
116 #filetoc {
117 background-color: @background-color-neutral-subtle;
118 text-align: center;
119 border: @border-base;
120 padding: 5px;
121 font-size: 95%;
122 margin: 0 0 0.5em 0;
123
124 li {
125 display: inline;
126 list-style-type: none;
127 padding-right: 2em;
128 }
129 }
130
131 /*
132 * Shared images hint
133 */
134 #shared-image-dup,
135 #shared-image-conflict {
136 font-style: italic;
137 }
138
139 /*
140 * Classes for Exif data display table.
141 */
142 .mw_metadata {
143 font-size: @font-size-x-small;
144 margin-bottom: @spacing-100;
145 border: 0;
146 border-collapse: collapse;
147 width: 400px;
148
149 caption {
150 font-weight: @font-weight-bold;
151 }
152
153 td,
154 th {
155 border: @border-base;
156 padding-left: @spacing-35;
157 padding-right: @spacing-35;
158
159 html.skin-theme-clientpref-night & {
160 @media screen {
161 background-color: @background-color-transparent;
162 }
163 }
164
165 /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
166 @media screen and ( prefers-color-scheme: dark ) {
167 html.skin-theme-clientpref-os & {
168 background-color: @background-color-transparent;
169 }
170 }
171 }
172
173 th {
174 background-color: @background-color-neutral-subtle;
175 font-weight: @font-weight-normal;
176 text-align: right;
177 }
178
179 td {
180 padding-top: @spacing-25;
181 padding-bottom: @spacing-25;
182 }
183
184 // Unordered list for cells like image description or copyright.
185 .metadata-langlist {
186 list-style: none;
187 margin: 0;
188 padding-left: 0;
189 }
190 }
191
192 .client-js .mw_metadata.collapsed .mw-metadata-collapsible {
193 display: none;
194 }
195
196 @supports ( aspect-ratio: 16 / 9 ) {
197 #file img {
198 max-width: 100%;
199 height: auto;
200 }
201 }
202
203 @media screen {
204 html.skin-theme-clientpref-night {
205 #file img {
206 background-color: #c8ccd1;
207 }
208 }
209 }
210
211 @media screen and ( prefers-color-scheme: dark ) {
212 html.skin-theme-clientpref-os {
213 #file img {
214 background-color: #c8ccd1;
215 }
216 }
217 }