Made site responsive

This commit is contained in:
z0ccc 2021-09-29 14:02:58 -04:00
parent 9159590e1e
commit 71e6303aa4
6 changed files with 83 additions and 69 deletions

View file

@ -69,32 +69,10 @@ img {
} }
@media screen and (max-width: 500px) { @media screen and (max-width: 500px) {
.github {
width: 24px;
position: absolute;
top: 8px;
right: 8px;
}
body { body {
font-size: 14px; font-size: 14px;
} }
.contentBlock {
padding: 18px;
margin: 0 0 18px 0;
}
.centerBlockInner {
width: 650px;
margin: 12px 0 0 0;
}
.logo {
width: 185px;
margin: 0 0 8px 0;
}
h1 { h1 {
font-size: 16px; font-size: 16px;
} }
@ -103,22 +81,4 @@ img {
margin: 0 0 3px 0; margin: 0 0 3px 0;
font-size: 15px; font-size: 15px;
} }
.contentIcon {
flex: none;
margin: 0 18px 0 0;
width: 28px !important;
}
td:first-child {
width: 70px;
}
.boxWrap {
padding: 8px;
}
input[type='text'] {
width: calc(100% - 65px);
}
} }

View file

@ -24,6 +24,15 @@
.centerBlockMobile { .centerBlockMobile {
display: block; display: block;
max-width: 600px; max-width: 650px;
padding: 0 12px;
}
.contentBlock {
min-width: 0;
padding: 18px;
} }
} }
@media screen and (max-width: 500px) {
}

View file

@ -1,7 +1,6 @@
.fingerprintTable td:first-child { .fingerprintTable td:first-child {
width: 80px; width: 80px;
font-weight: 600; font-weight: 600;
word-break: normal;
} }
.boxWrap { .boxWrap {
@ -40,3 +39,12 @@ input[type='text'] {
width: 200px; width: 200px;
outline: none; outline: none;
} }
@media screen and (max-width: 500px) {
.boxWrap {
padding: 8px;
}
input[type='text'] {
width: calc(100% - 70px);
}
}

View file

@ -2,9 +2,17 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 20px 0;
} }
.logo { .logo {
margin: 20px 0;
width: 250px; width: 250px;
display: flex;
}
@media screen and (max-width: 500px) {
.logo {
width: 160px;
margin: 12px 0;
}
} }

View file

@ -1,5 +1,6 @@
td { td {
padding: 12px; padding: 12px;
word-break: break-all;
} }
td:first-child { td:first-child {
@ -11,7 +12,6 @@ td:first-child {
td:nth-child(3) { td:nth-child(3) {
width: 40px; width: 40px;
font-weight: 600; font-weight: 600;
word-break: normal;
} }
.circleButton { .circleButton {
@ -54,3 +54,19 @@ ul {
padding-left: 20px; padding-left: 20px;
margin: 0px; margin: 0px;
} }
@media screen and (max-width: 500px) {
td {
padding: 8px;
}
td:first-child {
width: 70px;
}
td:nth-child(3) {
width: 20px;
font-weight: 600;
word-break: normal;
}
}

View file

@ -1,7 +1,8 @@
import { checkWebWorker } from './common'; import { checkWebWorker } from './common';
const getDeviceMemory = (key, worker) => ({ const getDeviceMemory = (key, worker) => ({
key, key: 'Device memory',
code: `navigator.${key}`,
value: navigator[key], value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
@ -12,8 +13,9 @@ const getDeviceMemory = (key, worker) => ({
}); });
const getHardwareConcurrency = (key, worker) => ({ const getHardwareConcurrency = (key, worker) => ({
key, key: 'Hardware concurrency',
value: navigator.hardwareConcurrency, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -23,8 +25,9 @@ const getHardwareConcurrency = (key, worker) => ({
}); });
const getMaxTouchPoints = (key) => ({ const getMaxTouchPoints = (key) => ({
key, key: 'Max touch points',
value: navigator.maxTouchPoints, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -33,8 +36,9 @@ const getMaxTouchPoints = (key) => ({
}); });
const getPlatform = (key, worker) => ({ const getPlatform = (key, worker) => ({
key, key: 'Platform',
value: navigator.platform, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -44,8 +48,9 @@ const getPlatform = (key, worker) => ({
}); });
const getUserAgent = (key, worker) => ({ const getUserAgent = (key, worker) => ({
key, key: 'User agent',
value: navigator.userAgent, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -55,8 +60,9 @@ const getUserAgent = (key, worker) => ({
}); });
const getAppVersion = (key, worker) => ({ const getAppVersion = (key, worker) => ({
key, key: 'App version',
value: navigator.appVersion, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -66,8 +72,9 @@ const getAppVersion = (key, worker) => ({
}); });
const getLanguage = (key, worker) => ({ const getLanguage = (key, worker) => ({
key, key: 'Language',
value: navigator.language, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -77,8 +84,9 @@ const getLanguage = (key, worker) => ({
}); });
const getLanguages = (key, worker) => ({ const getLanguages = (key, worker) => ({
key, key: 'Languages',
value: navigator.languages, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -88,8 +96,9 @@ const getLanguages = (key, worker) => ({
}); });
const getCookieEnabled = (key) => ({ const getCookieEnabled = (key) => ({
key, key: 'Cookie enabled',
value: navigator.cookieEnabled ? 'True' : 'False', code: `navigator.${key}`,
value: navigator[key] ? 'True' : 'False',
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -98,8 +107,9 @@ const getCookieEnabled = (key) => ({
}); });
const getDoNotTrack = (key) => ({ const getDoNotTrack = (key) => ({
key, key: 'Do not track',
value: navigator.doNotTrack ? 'True' : 'False', code: `navigator.${key}`,
value: navigator[key] ? 'True' : 'False',
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -108,8 +118,9 @@ const getDoNotTrack = (key) => ({
}); });
const getWebDriver = (key) => ({ const getWebDriver = (key) => ({
key, key: 'Web driver',
value: navigator.webdriver ? 'True' : 'False', code: `navigator.${key}`,
value: navigator[key] ? 'True' : 'False',
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -118,8 +129,9 @@ const getWebDriver = (key) => ({
}); });
const getPlugins = (key) => ({ const getPlugins = (key) => ({
key, key: 'Plugins',
value: sortPlugins(navigator.plugins), code: `navigator.${key}`,
value: sortPlugins(navigator[key]),
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),
@ -128,8 +140,9 @@ const getPlugins = (key) => ({
}); });
const getVendor = (key) => ({ const getVendor = (key) => ({
key, key: 'Vendor',
value: navigator.vendor, code: `navigator.${key}`,
value: navigator[key],
issues: [ issues: [
checkNavigatorProperties(key), checkNavigatorProperties(key),
checkNavigatorValue(key), checkNavigatorValue(key),