Skip to content

Commit

Permalink
details and table heading styles
Browse files Browse the repository at this point in the history
  • Loading branch information
priley86 committed Jun 3, 2019
1 parent 18a8d8d commit 00f2ea7
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion frontend/integration-tests/protractor.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const config: Config = {
chromeOptions: {
args: [
'--disable-gpu',
// '--headless',
'--headless',
'--no-sandbox',
'--window-size=1920,1200',
'--disable-background-timer-throttling',
Expand Down
6 changes: 3 additions & 3 deletions frontend/public/components/network-policy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ export const NetworkPoliciesPage = props => <ListPage {...props} ListComponent={


const IngressHeader = () => <div className="row co-m-table-grid__head">
<div className="col-xs-4">target pods</div>
<div className="col-xs-5">from</div>
<div className="col-xs-3">to ports</div>
<div className="col-xs-4">Target Pods</div>
<div className="col-xs-5">From</div>
<div className="col-xs-3">To Ports</div>
</div>;

const IngressRow = ({ingress, namespace, podSelector}) => {
Expand Down
2 changes: 2 additions & 0 deletions frontend/public/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Config
@import '~patternfly/dist/sass/patternfly/color-variables';
@import '~@patternfly/patternfly/sass-utilities/all';
@import "~@patternfly/patternfly/_variables";
@import "style/vars";

// External dependency variables or mixins that are required/extended by our custom styles (tilde tells Webpack not to use relative path)
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/style/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ ol {
dl {
margin: 0px; }

// match pf4 styling / table col head styling
dt {
text-transform: uppercase;
font-weight: 400;
color: $color-text-secondary;
font-size: ($font-size-base - 1); }
font-size: $font-size-base; }

dd {
margin-bottom: 20px; }
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/style/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
table {
thead {
th {
font-size: $font-size-base;
color: $color-text-secondary;
font-weight: 400;
}
Expand Down Expand Up @@ -478,9 +479,8 @@
}
&__head {
color: $color-text-secondary;
font-size: ($font-size-base - 1);
font-size: $font-size-base;
padding: 0 20px 10px 0; // right padding to maintain alignment with __body .row
text-transform: uppercase;
a {
cursor: pointer;
}
Expand Down
3 changes: 2 additions & 1 deletion frontend/public/style/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ tags-input .autocomplete .suggestion-item em {
}
th {
padding-top: 0 !important;
text-transform: uppercase;
color: $color-text-secondary;
font-weight: 400;
}
thead > tr > th {
border-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/style/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $color-rbac-role-dark: $color-pf-orange-600;
$color-secret-dark: $color-pf-orange-400;
$color-service-dark: $color-pf-light-green-500;
$color-text-muted: $color-pf-black-600;
$color-text-secondary: $color-pf-black-600;
$color-text-secondary: $pf-global--Color--200;
// -- Depend on color vars defined above
$color-alert-dark: $color-container-dark;
$color-alertrule-dark: $color-configmap-dark;
Expand Down
11 changes: 7 additions & 4 deletions frontend/public/vendor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Config
@import '~patternfly/dist/sass/patternfly/color-variables';
@import '~@patternfly/patternfly/sass-utilities/all';
@import "~@patternfly/patternfly/_variables";
@import "style/vars";

// External dependencies (tilde tells Webpack not to use relative path). Seperate SCSS entrypoint here because some modules break sourcemaps.
Expand Down Expand Up @@ -57,9 +59,10 @@
@import '~patternfly-react-extensions/dist/sass/filter-side-panel';
@import '~patternfly-react-extensions/dist/sass/properties-side-panel';
@import '~patternfly-react-extensions/dist/sass/vertical-tabs';
@import '~@patternfly/patternfly/sass-utilities/all';
@import '~@patternfly/patternfly/utilities/Display/display';
@import '~@patternfly/patternfly/utilities/Flex/flex';
@import "~@patternfly/patternfly/_variables";

// Note: PF Sass load order is important and can cause issues if changed
@import "~@patternfly/patternfly/_fonts";
@import "~@patternfly/patternfly/_base";
@import '~@patternfly/patternfly/layouts/Flex/flex';
@import '~@patternfly/patternfly/utilities/Display/display';
@import '~@patternfly/patternfly/utilities/Flex/flex';

0 comments on commit 00f2ea7

Please sign in to comment.