wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/data-bridge/public/index.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>data-bridge</title>
    <style>
        .oo-ui-windowManager {
            font-size: 0.875em; /* = $container-relative-font-size + em */
        }

        .oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-active {
            width: auto;
            height: auto;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            position: absolute;
        }

        /**
        * TODO needs to become more clever to properly simulate prod
        * OO reuse maybe? Also think about breakpoints, base font size
        */
        .oo-ui-window-frame {
            max-height: calc( 100% - 2em );
            border: 1px solid #a2a9b1;
            border-radius: 2px;
            box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
            width: 500px;
            height: 486.2px;
            position: relative;
            box-sizing: border-box;
            margin: 2em auto;
        }

        @media ( max-width: 499px ) {
            .oo-ui-window-frame {
                width: 100%;
                height: 100%;
                max-height: 100%;
                margin: 0;
            }
        }

        .oo-ui-window-body {
            overflow: auto;
            box-sizing: border-box;
        }

        .oo-ui-panelLayout {
            width: 100%;
            height: 100%;
            position: absolute;
        }
    </style>
</head>
<body>
<noscript>
    <strong>We're sorry but data-bridge doesn't work properly without JavaScript enabled. Please enable it to
        continue.</strong>
</noscript>
<div class="oo-ui-windowManager oo-ui-windowManager-modal">
    <div class="oo-ui-dialog oo-ui-window-active wb-db-dialog">
        <div class="oo-ui-window-frame">
            <div class="oo-ui-window-body">
                <div class="oo-ui-panelLayout" id="data-bridge-container">
                </div>
            </div>
        </div>
    </div>
</div>
<!-- built files will be auto injected -->
</body>
</html>