Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ui/styles/widgets/ve.ui.MWMediaInfoFieldWidget.less

raw
1 /*!
2 * VisualEditor MediaWiki UserInterface MWMediaInfoFieldWidget styles.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7 @import 'mediawiki.skin.variables.less';
8
9 .ve-ui-mwMediaInfoFieldWidget {
10 position: relative;
11
12 &.oo-ui-iconElement &-icon {
13 margin: 0.05em;
14 position: absolute;
15 top: auto;
16 opacity: 0.5;
17 }
18
19 &-text {
20 word-break: break-word;
21 word-wrap: break-word;
22 overflow-wrap: break-word;
23 overflow: hidden;
24 transition: max-height 0.5s ease-in;
25 }
26
27 &-readmore {
28 height: 2em;
29 width: 100%;
30 padding-top: 1em;
31 margin-top: -2em;
32 background: linear-gradient( to bottom, transparent 0, @background-color-base 50% );
33 }
34
35 &.oo-ui-iconElement .oo-ui-labelElement-label {
36 display: block;
37 padding: 0.3em 0 0.1em 2.2em;
38 line-height: 1.25em;
39 }
40
41 &-description {
42 display: block;
43 line-height: 1.25em;
44 overflow-y: hidden;
45 }
46 }