Commit fab0f613 authored by Simon Knox's avatar Simon Knox

Merge branch 'ps-add-purge-html-extractor' into 'master'

Add purgeHTML extractor to fix flakiness

See merge request gitlab-org/gitlab!63263
parents aa681b3e 7eb984ee
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
body.gl-dark { body.gl-dark {
--gray-50: #303030; --gray-50: #303030;
--gray-100: #404040; --gray-100: #404040;
--gray-200: #525252;
--gray-950: #fff; --gray-950: #fff;
--green-100: #0d532a; --green-100: #0d532a;
--green-400: #108548; --green-400: #108548;
...@@ -28,8 +27,7 @@ html { ...@@ -28,8 +27,7 @@ html {
line-height: 1.15; line-height: 1.15;
} }
aside, aside,
header, header {
nav {
display: block; display: block;
} }
body { body {
...@@ -96,35 +94,24 @@ button { ...@@ -96,35 +94,24 @@ button {
cursor: pointer; cursor: pointer;
} }
button:not(:disabled), button:not(:disabled),
[type="button"]:not(:disabled), [type="button"]:not(:disabled) {
[type="submit"]:not(:disabled) {
cursor: pointer; cursor: pointer;
} }
button::-moz-focus-inner, button::-moz-focus-inner,
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner {
[type="submit"]::-moz-focus-inner {
padding: 0; padding: 0;
border-style: none; border-style: none;
} }
[type="search"] { [type="search"] {
outline-offset: -2px; outline-offset: -2px;
} }
summary { h1 {
display: list-item;
cursor: pointer;
}
[hidden] {
display: none !important;
}
h1,
.h1 {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-weight: 600; font-weight: 600;
line-height: 1.2; line-height: 1.2;
color: #fafafa; color: #fafafa;
} }
h1, h1 {
.h1 {
font-size: 2.1875rem; font-size: 2.1875rem;
} }
.list-unstyled { .list-unstyled {
...@@ -246,9 +233,6 @@ h1, ...@@ -246,9 +233,6 @@ h1,
border: 1px solid rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
} }
.dropdown-menu.show {
display: block;
}
.nav { .nav {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -322,17 +306,6 @@ h1, ...@@ -322,17 +306,6 @@ h1,
display: none; display: none;
} }
} }
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #333;
background-clip: border-box;
border: 1px solid #404040;
border-radius: 0.25rem;
}
.badge { .badge {
display: inline-block; display: inline-block;
padding: 0.25em 0.4em; padding: 0.25em 0.4em;
...@@ -358,20 +331,6 @@ h1, ...@@ -358,20 +331,6 @@ h1,
padding-left: 0.6em; padding-left: 0.6em;
border-radius: 10rem; border-radius: 10rem;
} }
.close {
float: right;
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
color: #fff;
text-shadow: 0 1px 0 #333;
opacity: 0.5;
}
button.close {
padding: 0;
background-color: transparent;
border: 0;
}
.rounded-circle { .rounded-circle {
border-radius: 50% !important; border-radius: 50% !important;
} }
...@@ -460,12 +419,10 @@ body, ...@@ -460,12 +419,10 @@ body,
} }
button, button,
html [type="button"], html [type="button"],
[type="submit"],
[role="button"] { [role="button"] {
cursor: pointer; cursor: pointer;
} }
h1, h1 {
.h1 {
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -546,38 +503,9 @@ body { ...@@ -546,38 +503,9 @@ body {
color: #dbdbdb; color: #dbdbdb;
vertical-align: baseline; vertical-align: baseline;
} }
img.emoji {
height: 20px;
vertical-align: top;
width: 20px;
margin-top: 1px;
}
.chart {
overflow: hidden;
height: 220px;
}
.dropdown { .dropdown {
position: relative; position: relative;
} }
.show.dropdown .dropdown-menu {
transform: translateY(0);
display: block;
min-height: 40px;
max-height: 312px;
overflow-y: auto;
}
@media (max-width: 575.98px) {
.show.dropdown .dropdown-menu {
width: 100%;
}
}
.show.dropdown .dropdown-menu-toggle,
.show.dropdown .dropdown-menu-toggle {
border-color: #c4c4c4;
}
.show.dropdown [data-toggle="dropdown"] {
outline: 0;
}
.search-input-container .dropdown-menu { .search-input-container .dropdown-menu {
margin-top: 11px; margin-top: 11px;
} }
...@@ -945,15 +873,6 @@ input { ...@@ -945,15 +873,6 @@ input {
float: none; float: none;
} }
} }
.header-user.show .dropdown-menu {
margin-top: 4px;
color: var(--gl-text-color, #fafafa);
left: auto;
max-height: 445px;
}
.header-user.show .dropdown-menu svg {
vertical-align: text-top;
}
.header-user-avatar { .header-user-avatar {
float: left; float: left;
margin-right: 5px; margin-right: 5px;
...@@ -984,9 +903,6 @@ input { ...@@ -984,9 +903,6 @@ input {
.tanuki-logo .tanuki-right-cheek { .tanuki-logo .tanuki-right-cheek {
fill: #fca326; fill: #fca326;
} }
.card {
margin-bottom: 16px;
}
.context-header { .context-header {
position: relative; position: relative;
margin-right: 2px; margin-right: 2px;
...@@ -2008,9 +1924,6 @@ body.sidebar-refactoring ...@@ -2008,9 +1924,6 @@ body.sidebar-refactoring
.avatar.s32 { .avatar.s32 {
border-radius: 4px; border-radius: 4px;
} }
#content-body {
display: block;
}
body.gl-dark .navbar-gitlab { body.gl-dark .navbar-gitlab {
background-color: #fafafa; background-color: #fafafa;
} }
...@@ -2025,12 +1938,8 @@ body.gl-dark .navbar-gitlab .container-fluid .navbar-toggler svg { ...@@ -2025,12 +1938,8 @@ body.gl-dark .navbar-gitlab .container-fluid .navbar-toggler svg {
} }
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > a, body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > button, body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > button,
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.dropdown.show > button,
body.gl-dark .navbar-gitlab .navbar-nav > li.active > a, body.gl-dark .navbar-gitlab .navbar-nav > li.active > a,
body.gl-dark .navbar-gitlab .navbar-nav > li.active > button, body.gl-dark .navbar-gitlab .navbar-nav > li.active > button {
body.gl-dark .navbar-gitlab .navbar-nav > li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-nav > li.dropdown.show > button {
color: #fafafa; color: #fafafa;
background-color: #333; background-color: #333;
} }
...@@ -2059,13 +1968,11 @@ body.gl-dark ...@@ -2059,13 +1968,11 @@ body.gl-dark
.header-user-avatar { .header-user-avatar {
border-color: #fafafa; border-color: #fafafa;
} }
body.gl-dark .navbar-gitlab .nav > li.active > a, body.gl-dark .navbar-gitlab .nav > li.active > a {
body.gl-dark .navbar-gitlab .nav > li.dropdown.show > a {
color: #fafafa; color: #fafafa;
background-color: #333; background-color: #333;
} }
body.gl-dark .navbar-gitlab .nav > li.active > a .notification-dot, body.gl-dark .navbar-gitlab .nav > li.active > a .notification-dot {
body.gl-dark .navbar-gitlab .nav > li.dropdown.show > a .notification-dot {
border-color: #333; border-color: #333;
} }
body.gl-dark body.gl-dark
...@@ -2073,12 +1980,6 @@ body.gl-dark ...@@ -2073,12 +1980,6 @@ body.gl-dark
.nav .nav
> li.active > li.active
> a.header-help-dropdown-toggle > a.header-help-dropdown-toggle
.notification-dot,
body.gl-dark
.navbar-gitlab
.nav
> li.dropdown.show
> a.header-help-dropdown-toggle
.notification-dot { .notification-dot {
background-color: #fafafa; background-color: #fafafa;
} }
...@@ -2116,12 +2017,8 @@ body.gl-dark .navbar-gitlab { ...@@ -2116,12 +2017,8 @@ body.gl-dark .navbar-gitlab {
} }
body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > a, body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > button, body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > button,
body.gl-dark .navbar-gitlab .navbar-sub-nav li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav li.dropdown.show > button,
body.gl-dark .navbar-gitlab .navbar-nav li.active > a, body.gl-dark .navbar-gitlab .navbar-nav li.active > a,
body.gl-dark .navbar-gitlab .navbar-nav li.active > button, body.gl-dark .navbar-gitlab .navbar-nav li.active > button {
body.gl-dark .navbar-gitlab .navbar-nav li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-nav li.dropdown.show > button {
color: var(--gl-text-color); color: var(--gl-text-color);
background-color: var(--gray-200); background-color: var(--gray-200);
} }
......
...@@ -12,8 +12,7 @@ html { ...@@ -12,8 +12,7 @@ html {
line-height: 1.15; line-height: 1.15;
} }
aside, aside,
header, header {
nav {
display: block; display: block;
} }
body { body {
...@@ -80,35 +79,24 @@ button { ...@@ -80,35 +79,24 @@ button {
cursor: pointer; cursor: pointer;
} }
button:not(:disabled), button:not(:disabled),
[type="button"]:not(:disabled), [type="button"]:not(:disabled) {
[type="submit"]:not(:disabled) {
cursor: pointer; cursor: pointer;
} }
button::-moz-focus-inner, button::-moz-focus-inner,
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner {
[type="submit"]::-moz-focus-inner {
padding: 0; padding: 0;
border-style: none; border-style: none;
} }
[type="search"] { [type="search"] {
outline-offset: -2px; outline-offset: -2px;
} }
summary { h1 {
display: list-item;
cursor: pointer;
}
[hidden] {
display: none !important;
}
h1,
.h1 {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-weight: 600; font-weight: 600;
line-height: 1.2; line-height: 1.2;
color: #303030; color: #303030;
} }
h1, h1 {
.h1 {
font-size: 2.1875rem; font-size: 2.1875rem;
} }
.list-unstyled { .list-unstyled {
...@@ -230,9 +218,6 @@ h1, ...@@ -230,9 +218,6 @@ h1,
border: 1px solid rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
} }
.dropdown-menu.show {
display: block;
}
.nav { .nav {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -306,17 +291,6 @@ h1, ...@@ -306,17 +291,6 @@ h1,
display: none; display: none;
} }
} }
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #dbdbdb;
border-radius: 0.25rem;
}
.badge { .badge {
display: inline-block; display: inline-block;
padding: 0.25em 0.4em; padding: 0.25em 0.4em;
...@@ -342,20 +316,6 @@ h1, ...@@ -342,20 +316,6 @@ h1,
padding-left: 0.6em; padding-left: 0.6em;
border-radius: 10rem; border-radius: 10rem;
} }
.close {
float: right;
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
opacity: 0.5;
}
button.close {
padding: 0;
background-color: transparent;
border: 0;
}
.rounded-circle { .rounded-circle {
border-radius: 50% !important; border-radius: 50% !important;
} }
...@@ -444,12 +404,10 @@ body, ...@@ -444,12 +404,10 @@ body,
} }
button, button,
html [type="button"], html [type="button"],
[type="submit"],
[role="button"] { [role="button"] {
cursor: pointer; cursor: pointer;
} }
h1, h1 {
.h1 {
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -530,38 +488,9 @@ body { ...@@ -530,38 +488,9 @@ body {
color: #525252; color: #525252;
vertical-align: baseline; vertical-align: baseline;
} }
img.emoji {
height: 20px;
vertical-align: top;
width: 20px;
margin-top: 1px;
}
.chart {
overflow: hidden;
height: 220px;
}
.dropdown { .dropdown {
position: relative; position: relative;
} }
.show.dropdown .dropdown-menu {
transform: translateY(0);
display: block;
min-height: 40px;
max-height: 312px;
overflow-y: auto;
}
@media (max-width: 575.98px) {
.show.dropdown .dropdown-menu {
width: 100%;
}
}
.show.dropdown .dropdown-menu-toggle,
.show.dropdown .dropdown-menu-toggle {
border-color: #c4c4c4;
}
.show.dropdown [data-toggle="dropdown"] {
outline: 0;
}
.search-input-container .dropdown-menu { .search-input-container .dropdown-menu {
margin-top: 11px; margin-top: 11px;
} }
...@@ -929,15 +858,6 @@ input { ...@@ -929,15 +858,6 @@ input {
float: none; float: none;
} }
} }
.header-user.show .dropdown-menu {
margin-top: 4px;
color: var(--gl-text-color, #303030);
left: auto;
max-height: 445px;
}
.header-user.show .dropdown-menu svg {
vertical-align: text-top;
}
.header-user-avatar { .header-user-avatar {
float: left; float: left;
margin-right: 5px; margin-right: 5px;
...@@ -968,9 +888,6 @@ input { ...@@ -968,9 +888,6 @@ input {
.tanuki-logo .tanuki-right-cheek { .tanuki-logo .tanuki-right-cheek {
fill: #fca326; fill: #fca326;
} }
.card {
margin-bottom: 16px;
}
.context-header { .context-header {
position: relative; position: relative;
margin-right: 2px; margin-right: 2px;
...@@ -1969,9 +1886,6 @@ body.sidebar-refactoring ...@@ -1969,9 +1886,6 @@ body.sidebar-refactoring
.avatar.s32 { .avatar.s32 {
border-radius: 4px; border-radius: 4px;
} }
#content-body {
display: block;
}
.tab-width-8 { .tab-width-8 {
-moz-tab-size: 8; -moz-tab-size: 8;
......
...@@ -40,11 +40,6 @@ p { ...@@ -40,11 +40,6 @@ p {
margin-top: 0; margin-top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
a { a {
color: #007bff; color: #007bff;
text-decoration: none; text-decoration: none;
...@@ -54,11 +49,6 @@ a:not([href]):not([class]) { ...@@ -54,11 +49,6 @@ a:not([href]):not([class]) {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
code {
font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas",
"Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
font-size: 1em;
}
img { img {
vertical-align: middle; vertical-align: middle;
border-style: none; border-style: none;
...@@ -93,28 +83,20 @@ fieldset { ...@@ -93,28 +83,20 @@ fieldset {
margin: 0; margin: 0;
border: 0; border: 0;
} }
summary {
display: list-item;
cursor: pointer;
}
[hidden] { [hidden] {
display: none !important; display: none !important;
} }
h1, h1,
h3, h3 {
.h1,
.h3 {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-weight: 600; font-weight: 600;
line-height: 1.2; line-height: 1.2;
color: #303030; color: #303030;
} }
h1, h1 {
.h1 {
font-size: 2.1875rem; font-size: 2.1875rem;
} }
h3, h3 {
.h3 {
font-size: 1.53125rem; font-size: 1.53125rem;
} }
hr { hr {
...@@ -123,14 +105,6 @@ hr { ...@@ -123,14 +105,6 @@ hr {
border: 0; border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, 0.1);
} }
code {
font-size: 90%;
color: #1f1f1f;
word-wrap: break-word;
}
a > code {
color: inherit;
}
.container { .container {
width: 100%; width: 100%;
padding-right: 15px; padding-right: 15px;
...@@ -245,8 +219,7 @@ a > code { ...@@ -245,8 +219,7 @@ a > code {
margin-right: -5px; margin-right: -5px;
margin-left: -5px; margin-left: -5px;
} }
.form-row > .col, .form-row > .col {
.form-row > [class*="col-"] {
padding-right: 5px; padding-right: 5px;
padding-left: 5px; padding-left: 5px;
} }
...@@ -290,21 +263,6 @@ fieldset:disabled a.btn { ...@@ -290,21 +263,6 @@ fieldset:disabled a.btn {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #dbdbdb;
border-radius: 0.25rem;
}
.card > hr {
margin-right: 0;
margin-left: 0;
}
.d-block { .d-block {
display: block !important; display: block !important;
} }
...@@ -449,9 +407,7 @@ body, ...@@ -449,9 +407,7 @@ body,
cursor: pointer; cursor: pointer;
} }
h1, h1,
.h1, h3 {
h3,
.h3 {
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -461,16 +417,6 @@ a { ...@@ -461,16 +417,6 @@ a {
hr { hr {
overflow: hidden; overflow: hidden;
} }
code {
padding: 2px 4px;
color: #1f1f1f;
background-color: #f0f0f0;
border-radius: 4px;
}
.code > code {
background-color: inherit;
padding: unset;
}
.hidden { .hidden {
display: none !important; display: none !important;
visibility: hidden !important; visibility: hidden !important;
...@@ -478,13 +424,6 @@ code { ...@@ -478,13 +424,6 @@ code {
.hide { .hide {
display: none; display: none;
} }
.label {
padding: 4px 5px;
font-size: 12px;
font-style: normal;
font-weight: 400;
display: inline-block;
}
svg { svg {
vertical-align: baseline; vertical-align: baseline;
} }
...@@ -509,11 +448,6 @@ body.navless { ...@@ -509,11 +448,6 @@ body.navless {
margin-top: 20px; margin-top: 20px;
} }
} }
@media (max-width: 575.98px) {
.container .container .title {
padding-left: 15px !important;
}
}
.navless-container { .navless-container {
margin-top: 40px; margin-top: 40px;
padding-top: 32px; padding-top: 32px;
...@@ -627,9 +561,6 @@ label.label-bold { ...@@ -627,9 +561,6 @@ label.label-bold {
.tanuki-logo .tanuki-right-cheek { .tanuki-logo .tanuki-right-cheek {
fill: #fca326; fill: #fca326;
} }
.card {
margin-bottom: 16px;
}
input::-moz-placeholder { input::-moz-placeholder {
color: #868686; color: #868686;
opacity: 1; opacity: 1;
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
body.gl-dark { body.gl-dark {
--gray-50: #303030; --gray-50: #303030;
--gray-100: #404040; --gray-100: #404040;
--gray-200: #525252;
--gray-950: #fff; --gray-950: #fff;
--green-100: #0d532a; --green-100: #0d532a;
--green-400: #108548; --green-400: #108548;
...@@ -28,8 +27,7 @@ html { ...@@ -28,8 +27,7 @@ html {
line-height: 1.15; line-height: 1.15;
} }
aside, aside,
header, header {
nav {
display: block; display: block;
} }
body { body {
...@@ -96,35 +94,24 @@ button { ...@@ -96,35 +94,24 @@ button {
cursor: pointer; cursor: pointer;
} }
button:not(:disabled), button:not(:disabled),
[type="button"]:not(:disabled), [type="button"]:not(:disabled) {
[type="submit"]:not(:disabled) {
cursor: pointer; cursor: pointer;
} }
button::-moz-focus-inner, button::-moz-focus-inner,
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner {
[type="submit"]::-moz-focus-inner {
padding: 0; padding: 0;
border-style: none; border-style: none;
} }
[type="search"] { [type="search"] {
outline-offset: -2px; outline-offset: -2px;
} }
summary { h1 {
display: list-item;
cursor: pointer;
}
[hidden] {
display: none !important;
}
h1,
.h1 {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-weight: 600; font-weight: 600;
line-height: 1.2; line-height: 1.2;
color: #fafafa; color: #fafafa;
} }
h1, h1 {
.h1 {
font-size: 2.1875rem; font-size: 2.1875rem;
} }
.list-unstyled { .list-unstyled {
...@@ -246,9 +233,6 @@ h1, ...@@ -246,9 +233,6 @@ h1,
border: 1px solid rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
} }
.dropdown-menu.show {
display: block;
}
.nav { .nav {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -322,17 +306,6 @@ h1, ...@@ -322,17 +306,6 @@ h1,
display: none; display: none;
} }
} }
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #333;
background-clip: border-box;
border: 1px solid #404040;
border-radius: 0.25rem;
}
.badge { .badge {
display: inline-block; display: inline-block;
padding: 0.25em 0.4em; padding: 0.25em 0.4em;
...@@ -358,20 +331,6 @@ h1, ...@@ -358,20 +331,6 @@ h1,
padding-left: 0.6em; padding-left: 0.6em;
border-radius: 10rem; border-radius: 10rem;
} }
.close {
float: right;
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
color: #fff;
text-shadow: 0 1px 0 #333;
opacity: 0.5;
}
button.close {
padding: 0;
background-color: transparent;
border: 0;
}
.rounded-circle { .rounded-circle {
border-radius: 50% !important; border-radius: 50% !important;
} }
...@@ -460,12 +419,10 @@ body, ...@@ -460,12 +419,10 @@ body,
} }
button, button,
html [type="button"], html [type="button"],
[type="submit"],
[role="button"] { [role="button"] {
cursor: pointer; cursor: pointer;
} }
h1, h1 {
.h1 {
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -546,38 +503,9 @@ body { ...@@ -546,38 +503,9 @@ body {
color: #dbdbdb; color: #dbdbdb;
vertical-align: baseline; vertical-align: baseline;
} }
img.emoji {
height: 20px;
vertical-align: top;
width: 20px;
margin-top: 1px;
}
.chart {
overflow: hidden;
height: 220px;
}
.dropdown { .dropdown {
position: relative; position: relative;
} }
.show.dropdown .dropdown-menu {
transform: translateY(0);
display: block;
min-height: 40px;
max-height: 312px;
overflow-y: auto;
}
@media (max-width: 575.98px) {
.show.dropdown .dropdown-menu {
width: 100%;
}
}
.show.dropdown .dropdown-menu-toggle,
.show.dropdown .dropdown-menu-toggle {
border-color: #c4c4c4;
}
.show.dropdown [data-toggle="dropdown"] {
outline: 0;
}
.search-input-container .dropdown-menu { .search-input-container .dropdown-menu {
margin-top: 11px; margin-top: 11px;
} }
...@@ -945,15 +873,6 @@ input { ...@@ -945,15 +873,6 @@ input {
float: none; float: none;
} }
} }
.header-user.show .dropdown-menu {
margin-top: 4px;
color: var(--gl-text-color, #fafafa);
left: auto;
max-height: 445px;
}
.header-user.show .dropdown-menu svg {
vertical-align: text-top;
}
.header-user-avatar { .header-user-avatar {
float: left; float: left;
margin-right: 5px; margin-right: 5px;
...@@ -984,9 +903,6 @@ input { ...@@ -984,9 +903,6 @@ input {
.tanuki-logo .tanuki-right-cheek { .tanuki-logo .tanuki-right-cheek {
fill: #fca326; fill: #fca326;
} }
.card {
margin-bottom: 16px;
}
.context-header { .context-header {
position: relative; position: relative;
margin-right: 2px; margin-right: 2px;
...@@ -2008,9 +1924,6 @@ body.sidebar-refactoring ...@@ -2008,9 +1924,6 @@ body.sidebar-refactoring
.avatar.s32 { .avatar.s32 {
border-radius: 4px; border-radius: 4px;
} }
#content-body {
display: block;
}
body.gl-dark .navbar-gitlab { body.gl-dark .navbar-gitlab {
background-color: #fafafa; background-color: #fafafa;
} }
...@@ -2025,12 +1938,8 @@ body.gl-dark .navbar-gitlab .container-fluid .navbar-toggler svg { ...@@ -2025,12 +1938,8 @@ body.gl-dark .navbar-gitlab .container-fluid .navbar-toggler svg {
} }
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > a, body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > button, body.gl-dark .navbar-gitlab .navbar-sub-nav > li.active > button,
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav > li.dropdown.show > button,
body.gl-dark .navbar-gitlab .navbar-nav > li.active > a, body.gl-dark .navbar-gitlab .navbar-nav > li.active > a,
body.gl-dark .navbar-gitlab .navbar-nav > li.active > button, body.gl-dark .navbar-gitlab .navbar-nav > li.active > button {
body.gl-dark .navbar-gitlab .navbar-nav > li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-nav > li.dropdown.show > button {
color: #fafafa; color: #fafafa;
background-color: #333; background-color: #333;
} }
...@@ -2059,13 +1968,11 @@ body.gl-dark ...@@ -2059,13 +1968,11 @@ body.gl-dark
.header-user-avatar { .header-user-avatar {
border-color: #fafafa; border-color: #fafafa;
} }
body.gl-dark .navbar-gitlab .nav > li.active > a, body.gl-dark .navbar-gitlab .nav > li.active > a {
body.gl-dark .navbar-gitlab .nav > li.dropdown.show > a {
color: #fafafa; color: #fafafa;
background-color: #333; background-color: #333;
} }
body.gl-dark .navbar-gitlab .nav > li.active > a .notification-dot, body.gl-dark .navbar-gitlab .nav > li.active > a .notification-dot {
body.gl-dark .navbar-gitlab .nav > li.dropdown.show > a .notification-dot {
border-color: #333; border-color: #333;
} }
body.gl-dark body.gl-dark
...@@ -2073,12 +1980,6 @@ body.gl-dark ...@@ -2073,12 +1980,6 @@ body.gl-dark
.nav .nav
> li.active > li.active
> a.header-help-dropdown-toggle > a.header-help-dropdown-toggle
.notification-dot,
body.gl-dark
.navbar-gitlab
.nav
> li.dropdown.show
> a.header-help-dropdown-toggle
.notification-dot { .notification-dot {
background-color: #fafafa; background-color: #fafafa;
} }
...@@ -2116,12 +2017,8 @@ body.gl-dark .navbar-gitlab { ...@@ -2116,12 +2017,8 @@ body.gl-dark .navbar-gitlab {
} }
body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > a, body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > button, body.gl-dark .navbar-gitlab .navbar-sub-nav li.active > button,
body.gl-dark .navbar-gitlab .navbar-sub-nav li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-sub-nav li.dropdown.show > button,
body.gl-dark .navbar-gitlab .navbar-nav li.active > a, body.gl-dark .navbar-gitlab .navbar-nav li.active > a,
body.gl-dark .navbar-gitlab .navbar-nav li.active > button, body.gl-dark .navbar-gitlab .navbar-nav li.active > button {
body.gl-dark .navbar-gitlab .navbar-nav li.dropdown.show > a,
body.gl-dark .navbar-gitlab .navbar-nav li.dropdown.show > button {
color: var(--gl-text-color); color: var(--gl-text-color);
background-color: var(--gray-200); background-color: var(--gray-200);
} }
......
...@@ -12,8 +12,7 @@ html { ...@@ -12,8 +12,7 @@ html {
line-height: 1.15; line-height: 1.15;
} }
aside, aside,
header, header {
nav {
display: block; display: block;
} }
body { body {
...@@ -80,35 +79,24 @@ button { ...@@ -80,35 +79,24 @@ button {
cursor: pointer; cursor: pointer;
} }
button:not(:disabled), button:not(:disabled),
[type="button"]:not(:disabled), [type="button"]:not(:disabled) {
[type="submit"]:not(:disabled) {
cursor: pointer; cursor: pointer;
} }
button::-moz-focus-inner, button::-moz-focus-inner,
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner {
[type="submit"]::-moz-focus-inner {
padding: 0; padding: 0;
border-style: none; border-style: none;
} }
[type="search"] { [type="search"] {
outline-offset: -2px; outline-offset: -2px;
} }
summary { h1 {
display: list-item;
cursor: pointer;
}
[hidden] {
display: none !important;
}
h1,
.h1 {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-weight: 600; font-weight: 600;
line-height: 1.2; line-height: 1.2;
color: #303030; color: #303030;
} }
h1, h1 {
.h1 {
font-size: 2.1875rem; font-size: 2.1875rem;
} }
.list-unstyled { .list-unstyled {
...@@ -230,9 +218,6 @@ h1, ...@@ -230,9 +218,6 @@ h1,
border: 1px solid rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
} }
.dropdown-menu.show {
display: block;
}
.nav { .nav {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -306,17 +291,6 @@ h1, ...@@ -306,17 +291,6 @@ h1,
display: none; display: none;
} }
} }
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #dbdbdb;
border-radius: 0.25rem;
}
.badge { .badge {
display: inline-block; display: inline-block;
padding: 0.25em 0.4em; padding: 0.25em 0.4em;
...@@ -342,20 +316,6 @@ h1, ...@@ -342,20 +316,6 @@ h1,
padding-left: 0.6em; padding-left: 0.6em;
border-radius: 10rem; border-radius: 10rem;
} }
.close {
float: right;
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
opacity: 0.5;
}
button.close {
padding: 0;
background-color: transparent;
border: 0;
}
.rounded-circle { .rounded-circle {
border-radius: 50% !important; border-radius: 50% !important;
} }
...@@ -444,12 +404,10 @@ body, ...@@ -444,12 +404,10 @@ body,
} }
button, button,
html [type="button"], html [type="button"],
[type="submit"],
[role="button"] { [role="button"] {
cursor: pointer; cursor: pointer;
} }
h1, h1 {
.h1 {
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -530,38 +488,9 @@ body { ...@@ -530,38 +488,9 @@ body {
color: #525252; color: #525252;
vertical-align: baseline; vertical-align: baseline;
} }
img.emoji {
height: 20px;
vertical-align: top;
width: 20px;
margin-top: 1px;
}
.chart {
overflow: hidden;
height: 220px;
}
.dropdown { .dropdown {
position: relative; position: relative;
} }
.show.dropdown .dropdown-menu {
transform: translateY(0);
display: block;
min-height: 40px;
max-height: 312px;
overflow-y: auto;
}
@media (max-width: 575.98px) {
.show.dropdown .dropdown-menu {
width: 100%;
}
}
.show.dropdown .dropdown-menu-toggle,
.show.dropdown .dropdown-menu-toggle {
border-color: #c4c4c4;
}
.show.dropdown [data-toggle="dropdown"] {
outline: 0;
}
.search-input-container .dropdown-menu { .search-input-container .dropdown-menu {
margin-top: 11px; margin-top: 11px;
} }
...@@ -929,15 +858,6 @@ input { ...@@ -929,15 +858,6 @@ input {
float: none; float: none;
} }
} }
.header-user.show .dropdown-menu {
margin-top: 4px;
color: var(--gl-text-color, #303030);
left: auto;
max-height: 445px;
}
.header-user.show .dropdown-menu svg {
vertical-align: text-top;
}
.header-user-avatar { .header-user-avatar {
float: left; float: left;
margin-right: 5px; margin-right: 5px;
...@@ -968,9 +888,6 @@ input { ...@@ -968,9 +888,6 @@ input {
.tanuki-logo .tanuki-right-cheek { .tanuki-logo .tanuki-right-cheek {
fill: #fca326; fill: #fca326;
} }
.card {
margin-bottom: 16px;
}
.context-header { .context-header {
position: relative; position: relative;
margin-right: 2px; margin-right: 2px;
...@@ -1969,9 +1886,6 @@ body.sidebar-refactoring ...@@ -1969,9 +1886,6 @@ body.sidebar-refactoring
.avatar.s32 { .avatar.s32 {
border-radius: 4px; border-radius: 4px;
} }
#content-body {
display: block;
}
.tab-width-8 { .tab-width-8 {
-moz-tab-size: 8; -moz-tab-size: 8;
......
...@@ -40,11 +40,6 @@ p { ...@@ -40,11 +40,6 @@ p {
margin-top: 0; margin-top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
a { a {
color: #007bff; color: #007bff;
text-decoration: none; text-decoration: none;
...@@ -54,11 +49,6 @@ a:not([href]):not([class]) { ...@@ -54,11 +49,6 @@ a:not([href]):not([class]) {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
code {
font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas",
"Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
font-size: 1em;
}
img { img {
vertical-align: middle; vertical-align: middle;
border-style: none; border-style: none;
...@@ -93,28 +83,20 @@ fieldset { ...@@ -93,28 +83,20 @@ fieldset {
margin: 0; margin: 0;
border: 0; border: 0;
} }
summary {
display: list-item;
cursor: pointer;
}
[hidden] { [hidden] {
display: none !important; display: none !important;
} }
h1, h1,
h3, h3 {
.h1,
.h3 {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-weight: 600; font-weight: 600;
line-height: 1.2; line-height: 1.2;
color: #303030; color: #303030;
} }
h1, h1 {
.h1 {
font-size: 2.1875rem; font-size: 2.1875rem;
} }
h3, h3 {
.h3 {
font-size: 1.53125rem; font-size: 1.53125rem;
} }
hr { hr {
...@@ -123,14 +105,6 @@ hr { ...@@ -123,14 +105,6 @@ hr {
border: 0; border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, 0.1);
} }
code {
font-size: 90%;
color: #1f1f1f;
word-wrap: break-word;
}
a > code {
color: inherit;
}
.container { .container {
width: 100%; width: 100%;
padding-right: 15px; padding-right: 15px;
...@@ -245,8 +219,7 @@ a > code { ...@@ -245,8 +219,7 @@ a > code {
margin-right: -5px; margin-right: -5px;
margin-left: -5px; margin-left: -5px;
} }
.form-row > .col, .form-row > .col {
.form-row > [class*="col-"] {
padding-right: 5px; padding-right: 5px;
padding-left: 5px; padding-left: 5px;
} }
...@@ -290,21 +263,6 @@ fieldset:disabled a.btn { ...@@ -290,21 +263,6 @@ fieldset:disabled a.btn {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #dbdbdb;
border-radius: 0.25rem;
}
.card > hr {
margin-right: 0;
margin-left: 0;
}
.d-block { .d-block {
display: block !important; display: block !important;
} }
...@@ -449,9 +407,7 @@ body, ...@@ -449,9 +407,7 @@ body,
cursor: pointer; cursor: pointer;
} }
h1, h1,
.h1, h3 {
h3,
.h3 {
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -461,16 +417,6 @@ a { ...@@ -461,16 +417,6 @@ a {
hr { hr {
overflow: hidden; overflow: hidden;
} }
code {
padding: 2px 4px;
color: #1f1f1f;
background-color: #f0f0f0;
border-radius: 4px;
}
.code > code {
background-color: inherit;
padding: unset;
}
.hidden { .hidden {
display: none !important; display: none !important;
visibility: hidden !important; visibility: hidden !important;
...@@ -478,13 +424,6 @@ code { ...@@ -478,13 +424,6 @@ code {
.hide { .hide {
display: none; display: none;
} }
.label {
padding: 4px 5px;
font-size: 12px;
font-style: normal;
font-weight: 400;
display: inline-block;
}
svg { svg {
vertical-align: baseline; vertical-align: baseline;
} }
...@@ -509,11 +448,6 @@ body.navless { ...@@ -509,11 +448,6 @@ body.navless {
margin-top: 20px; margin-top: 20px;
} }
} }
@media (max-width: 575.98px) {
.container .container .title {
padding-left: 15px !important;
}
}
.navless-container { .navless-container {
margin-top: 40px; margin-top: 40px;
padding-top: 32px; padding-top: 32px;
...@@ -627,9 +561,6 @@ label.label-bold { ...@@ -627,9 +561,6 @@ label.label-bold {
.tanuki-logo .tanuki-right-cheek { .tanuki-logo .tanuki-right-cheek {
fill: #fca326; fill: #fca326;
} }
.card {
margin-bottom: 16px;
}
input::-moz-placeholder { input::-moz-placeholder {
color: #868686; color: #868686;
opacity: 1; opacity: 1;
......
...@@ -2,6 +2,7 @@ const fs = require('fs'); ...@@ -2,6 +2,7 @@ const fs = require('fs');
const cheerio = require('cheerio'); const cheerio = require('cheerio');
const { mergeWith, isArray } = require('lodash'); const { mergeWith, isArray } = require('lodash');
const { PurgeCSS } = require('purgecss'); const { PurgeCSS } = require('purgecss');
const purgeHtml = require('purgecss-from-html');
const { cleanCSS } = require('./clean_css'); const { cleanCSS } = require('./clean_css');
const { HTML_TO_REMOVE } = require('./constants'); const { HTML_TO_REMOVE } = require('./constants');
const { die } = require('./utils'); const { die } = require('./utils');
...@@ -51,6 +52,12 @@ const getStartupCSS = async ({ htmlPaths, cssPaths, purgeOptions }) => { ...@@ -51,6 +52,12 @@ const getStartupCSS = async ({ htmlPaths, cssPaths, purgeOptions }) => {
}, },
// By default, PurgeCSS ignores special characters, but our utilities use "!" // By default, PurgeCSS ignores special characters, but our utilities use "!"
defaultExtractor: (x) => x.match(/[\w-!]+/g), defaultExtractor: (x) => x.match(/[\w-!]+/g),
extractors: [
{
extractor: purgeHtml,
extensions: ['html'],
},
],
}, },
purgeOptions, purgeOptions,
), ),
......
...@@ -9239,14 +9239,14 @@ parse-passwd@^1.0.0: ...@@ -9239,14 +9239,14 @@ parse-passwd@^1.0.0:
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=
parse5-htmlparser2-tree-adapter@^6.0.1: parse5-htmlparser2-tree-adapter@^6.0.0, parse5-htmlparser2-tree-adapter@^6.0.1:
version "6.0.1" version "6.0.1"
resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6"
integrity sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA== integrity sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==
dependencies: dependencies:
parse5 "^6.0.1" parse5 "^6.0.1"
"parse5@5 - 6", parse5@^6.0.1: "parse5@5 - 6", parse5@^6.0.0, parse5@^6.0.1:
version "6.0.1" version "6.0.1"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==
...@@ -9877,6 +9877,14 @@ pupa@^2.0.1: ...@@ -9877,6 +9877,14 @@ pupa@^2.0.1:
dependencies: dependencies:
escape-goat "^2.0.0" escape-goat "^2.0.0"
purgecss-from-html@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/purgecss-from-html/-/purgecss-from-html-4.0.3.tgz#28d86d3dc8292581c4ab529a77a57daf7c2dd940"
integrity sha512-Ipv/kXSDRBlVTWDSRq5PZoiJdFjZjlL6r/3MH42waKM524NiicyvwLlyE9XedBSCPs+Ypek6SaTd8TTeiBgCMg==
dependencies:
parse5 "^6.0.0"
parse5-htmlparser2-tree-adapter "^6.0.0"
purgecss@^4.0.3: purgecss@^4.0.3:
version "4.0.3" version "4.0.3"
resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-4.0.3.tgz#8147b429f9c09db719e05d64908ea8b672913742" resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-4.0.3.tgz#8147b429f9c09db719e05d64908ea8b672913742"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment