Skip to content

Commit

Permalink
refactor(ZNTA-2529) replace broken antd variables file
Browse files Browse the repository at this point in the history
  • Loading branch information
kgough committed Jul 9, 2018
1 parent 6e499f4 commit bb99ebc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 62 deletions.
@@ -1,5 +1,3 @@
@import "../../styles/ant-theme-vars.less";

:root {
--LogoLoader-transition-ease: cubic-bezier(.175, .885, .320, 1.275);
--LogoLoader-size: 39px;
Expand Down
46 changes: 2 additions & 44 deletions server/zanata-frontend/src/app/styles/antd.less
@@ -1,9 +1,5 @@
/*
antd component overrides
tachyons not used because these apply globally to the antd components
*/

/* LAYOUT */
@import "~antd/dist/antd.less";
@import "./testvars.less";

.container {
margin-right: auto;
Expand Down Expand Up @@ -116,8 +112,6 @@ tachyons not used because these apply globally to the antd components
padding-right: @spacing-base;
}

/* Flex */

.u-flexColumn {
flex-direction: column;
-webkit-flex-direction: column;
Expand Down Expand Up @@ -198,8 +192,6 @@ tachyons not used because these apply globally to the antd components
-webkit-flex-grow: 1;
}

/* HEADINGS */

h1 {
color: @processing-color;
letter-spacing: -0.05rem;
Expand All @@ -223,29 +215,21 @@ h4 {
margin-top: 0;
}

/* TEXT */

.teaser-inner div a.text-muted-bold {
vertical-align: sub;
}

/* PAGINATION */

.ant-pagination *,
.ant-pagination-disabled * {
border: none !important;
}

/* LINKS */

// cookie consent link styling
.cc-link {
color: @info-color !important;
font-weight: 600;
}

/* BUTTONS */

.ant-btn {
color: @primary-color;
background-color: #fff;
Expand Down Expand Up @@ -340,8 +324,6 @@ button.ant-btn.btn-link:focus {
background-color: #fff;
}

/* INPUTS AND DROPDOWNS */

.ant-select-selection:hover {
border: solid 2px @info-color;
}
Expand Down Expand Up @@ -388,8 +370,6 @@ textarea:focus {
border: 2px solid @info-color !important;
}

/* Text inputs */

input.textInput {
border-radius: 4px;
}
Expand Down Expand Up @@ -425,8 +405,6 @@ textarea.textInput::placeholder {
vertical-align: middle;
}

/* Editable text fields */

.editable {
border-radius: 4px;
transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
Expand Down Expand Up @@ -639,8 +617,6 @@ textarea.textInput::placeholder {
line-height: 2rem;
}

/* ICONS AND IMAGES */

img.avatar-round {
margin-right: @spacing-md;
border-radius: 500px;
Expand Down Expand Up @@ -754,8 +730,6 @@ span.svg {
height: 6.192rem;
}

/* TAGS */

.ant-tag:hover {
opacity: 1;
}
Expand All @@ -769,8 +743,6 @@ span.svg {
background-color: @info-color;
}

/* TABLES */

table {
width: 100% !important;
font-size: 1rem;
Expand All @@ -797,8 +769,6 @@ table {
border-bottom: 2px solid @neutral-color;
}

/* TOGGLES AND CHECKBOXES */

.sortable-helper {
z-index: 10000 !important;
}
Expand Down Expand Up @@ -826,8 +796,6 @@ table {
vertical-align: sub;
}

/* ACCORDION AND CARDS*/

.ant-card {
color: @primary-color;
}
Expand All @@ -845,8 +813,6 @@ table {
padding-right: 12px;
}

/* LISTS AND LIST GROUPS */

.list-group-item {
position: relative;
display: block;
Expand All @@ -856,8 +822,6 @@ table {
background-color: @layout-body-background;
}

/* MODALS */

.ant-modal {
color: @primary-color;
}
Expand All @@ -874,8 +838,6 @@ table {
color: @info-color !important;
}

/* FORMS */

.ant-form-inline .ant-form-item>.ant-form-item-control-wrapper {
vertical-align: inherit;
width: inherit;
Expand Down Expand Up @@ -914,8 +876,6 @@ table {
}
}

/* NAV */

.nav-bar {
background-color: @highlight-color;
box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.185);
Expand Down Expand Up @@ -975,8 +935,6 @@ table {
display: none;
}

/* MEDIA QUERIES */

@media (max-width: 575.98px) {
.view {
flex-direction: column;
Expand Down
@@ -1,6 +1,3 @@
// ant-default-vars.less
// Available theme variables can be found in
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
@font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

@primary-color: #546677;
Expand All @@ -16,7 +13,7 @@
@unsure-color: #E9DF1B;

@link-color: @info-color;
@breadcrumb-link-color:@info-color;
@breadcrumb-link-color: @info-color;

@spacing-sm: 0.375rem;
@spacing-md: 0.75rem;
Expand All @@ -26,15 +23,8 @@

@border-radius-large: 6px;

// Utility classes not included in Tachiyons
// https://github.com/tachyons-css/tachyons/blob/master/css/tachyons.css

// Most utility classes required for basic layouts and styling are found here:
// http://tachyons.io/#style
// Detailed documentation: http://tachyons.io/docs

@checkbox-color: @info-color !important;
@switch-color: @info-color !important;
@checkbox-color: @info-color;
@switch-color: @info-color;
@layout-body-background: #fff;
@label-color: @primary-color;
@btn-primary-bg: @primary-color;
Expand Down Expand Up @@ -89,6 +79,7 @@
.bg-unsure {
background-color: @unsure-color;
}

.bg-error {
background-color: @error-color;
}
Expand All @@ -102,11 +93,11 @@
}

.bg-muted {
background-color: #A2B3BE;
background-color: @muted-color;
}

.bg-neutral {
background-color: #BDD4DC;
background-color: @neutral-color;
}

.d-inh {
Expand Down
1 change: 0 additions & 1 deletion server/zanata-frontend/src/app/styles/style.less
Expand Up @@ -14,4 +14,3 @@
@import "./styleguide.less";
@import "./legacy.less";
@import "./antd.less";
@import "./ant-theme-vars.less";

0 comments on commit bb99ebc

Please sign in to comment.