From 485a4717e9e5c567eec788305fb1d53f6df9ee21 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 11 Jan 2019 21:14:23 +0100 Subject: [PATCH] Improve ui tests --- breadcrumb.scss | 1 + image.scss | 6 + styles.css | 8 +- table.scss | 2 +- tests/StandardElements.htm | 29 ++-- tests/app.htm | 28 ---- tests/app/article.php | 105 ++++++++++++ tests/app/boxes.php | 59 +++++++ tests/app/breadcrumbs.php | 24 +++ tests/app/buttons.php | 44 +++++ tests/app/calendar.php | 0 tests/app/charts.php | 0 tests/app/editor.php | 0 tests/app/forms.php | 309 ++++++++++++++++++++++++++++++++++++ tests/app/grid.php | 123 ++++++++++++++ tests/app/images.php | 27 ++++ tests/app/index.php | 192 ++++++++++++++++++++++ tests/app/loaders.php | 19 +++ tests/app/navigations.php | 17 ++ tests/app/notifications.php | 61 +++++++ tests/app/popups.php | 0 tests/app/sliders.php | 46 ++++++ tests/app/tables.php | 192 ++++++++++++++++++++++ tests/app/tabs.php | 94 +++++++++++ tests/app/tags.php | 39 +++++ tests/app/welcome.php | 1 + tests/load.js | 53 ------- 27 files changed, 1384 insertions(+), 95 deletions(-) delete mode 100644 tests/app.htm create mode 100644 tests/app/article.php create mode 100644 tests/app/boxes.php create mode 100644 tests/app/breadcrumbs.php create mode 100644 tests/app/buttons.php create mode 100644 tests/app/calendar.php create mode 100644 tests/app/charts.php create mode 100644 tests/app/editor.php create mode 100644 tests/app/forms.php create mode 100644 tests/app/grid.php create mode 100644 tests/app/images.php create mode 100644 tests/app/index.php create mode 100644 tests/app/loaders.php create mode 100644 tests/app/navigations.php create mode 100644 tests/app/notifications.php create mode 100644 tests/app/popups.php create mode 100644 tests/app/sliders.php create mode 100644 tests/app/tables.php create mode 100644 tests/app/tabs.php create mode 100644 tests/app/tags.php create mode 100644 tests/app/welcome.php diff --git a/breadcrumb.scss b/breadcrumb.scss index 470f242..0dd9b63 100644 --- a/breadcrumb.scss +++ b/breadcrumb.scss @@ -21,6 +21,7 @@ @include border-left-radius($breadcrumb-border-radius); } + // todo: maybe replace .last with :last-child &:not(.last):after, &:before { content:" "; display: block; diff --git a/image.scss b/image.scss index 8d789b7..740416d 100644 --- a/image.scss +++ b/image.scss @@ -7,11 +7,15 @@ img { border: $img-border solid $img-border-color; @include box-shadow-out(#ffffff); @include border-radius($img-border-radius); + box-sizing: border-box; + width: 100%; } &.frame-2 { border: $img-border solid $img-border-color; background: $img-background; + box-sizing: border-box; + width: 100%; } &.frame-3 { @@ -20,6 +24,8 @@ img { border: $img-border solid $img-border-color; @include box-shadow-out(#ffffff); @include border-radius($img-border-radius); + box-sizing: border-box; + width: 100%; } } diff --git a/styles.css b/styles.css index c01f007..43e7e49 100644 --- a/styles.css +++ b/styles.css @@ -3565,9 +3565,13 @@ img.frame-1 { -moz-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px; + width: 100%; + box-sizing: border-box; background-clip: padding-box; } img.frame-2 { border: 1px solid #b7b7b7; + box-sizing: border-box; + width: 100%; background: #f5f5ff; } img.frame-3 { padding: 5px; @@ -3580,6 +3584,8 @@ img.frame-3 { -moz-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px; + box-sizing: border-box; + width: 100%; background-clip: padding-box; } @keyframes slidy { @@ -4729,7 +4735,7 @@ section > h2 { /* Content box */ /* Navigation */ /* Colors */ -table:not([id]) .sort-asc, table:not([id]) .sort-desc { +table:not([id]) > thead .sort-asc, table:not([id]) > thead .sort-desc { display: none; } table .sort-asc, table .sort-desc { diff --git a/table.scss b/table.scss index ebfc69a..8adc10b 100644 --- a/table.scss +++ b/table.scss @@ -1,6 +1,6 @@ @import "_mixins", "_vars"; -table:not([id]) .sort-asc, table:not([id]) .sort-desc { +table:not([id]) > thead .sort-asc, table:not([id]) > thead .sort-desc { display: none; } diff --git a/tests/StandardElements.htm b/tests/StandardElements.htm index 92aa3dd..c3ba0d3 100644 --- a/tests/StandardElements.htm +++ b/tests/StandardElements.htm @@ -424,23 +424,28 @@
- +
-