52 lines
2.1 KiB
HTML
52 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link id="css-auto" rel="stylesheet" href="../custom/public/assets/css/theme-qq-auto.css">
|
|
<link id="css-light" rel="stylesheet" href="../custom/public/assets/css/theme-qq-light.css" disabled>
|
|
<link id="css-dark" rel="stylesheet" href="../custom/public/assets/css/theme-qq-dark.css" disabled>
|
|
<link rel="stylesheet" href="../custom/public/assets/css/qq-ui.css">
|
|
<link rel="stylesheet" href="../custom/public/assets/css/qq-fx.css">
|
|
<link rel="stylesheet" href="preview.css">
|
|
</head>
|
|
<body>
|
|
<pre id="out">pending</pre>
|
|
<div class="page-content user signin">
|
|
<div class="ui middle very relaxed page grid">
|
|
<div class="ui container column fluid">
|
|
<h4 class="ui top attached header center">登录</h4>
|
|
<div class="ui attached segment">
|
|
<form class="ui form">
|
|
<div class="required inline field"><label for="u">user</label><input id="u" type="text"></div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="app.js"></script>
|
|
<script>
|
|
(function () {
|
|
var cs = getComputedStyle;
|
|
var html = document.documentElement, body = document.body;
|
|
var inp = document.getElementById('u');
|
|
var sheets = [].map.call(document.styleSheets, function (s) {
|
|
var n = 0;
|
|
try { n = s.cssRules.length; } catch (e) { n = -1; }
|
|
return (s.href || '').split('/').pop() + ' rules=' + n + ' disabled=' + (s.disabled);
|
|
});
|
|
var lines = [
|
|
'theme param = ' + new URLSearchParams(location.search).get('theme'),
|
|
'--color-body html = ' + cs(html).getPropertyValue('--color-body').trim(),
|
|
'--color-body body = ' + cs(body).getPropertyValue('--color-body').trim(),
|
|
'--color-body input = ' + cs(inp).getPropertyValue('--color-body').trim(),
|
|
'--input-bg input = ' + cs(inp).getPropertyValue('--color-input-background').trim(),
|
|
'html bg = ' + cs(html).backgroundColor + ' | body bg = ' + cs(body).backgroundColor,
|
|
'input bg = ' + cs(inp).backgroundColor + ' | border = ' + cs(inp).borderTopColor,
|
|
'sheets: ' + sheets.join(' ;; ')
|
|
];
|
|
document.getElementById('out').textContent = lines.join('\n');
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|