Skip to content

Commit

Permalink
feat(less): quezx base css customization (angular-ui#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Digender authored and yogesum committed Mar 20, 2017
1 parent 954beba commit 1a68d8f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/less/body.less
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@
right: 0;
opacity: 0.66;
}
}
}
4 changes: 1 addition & 3 deletions src/less/cell.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// position: relative; // NOTE: removing so border is visible
float: left;
background-color: inherit;
border-right: @gridBorderWidth solid;
border-color: @borderColor;
box-sizing: border-box;

&:last-child {
Expand All @@ -16,7 +14,7 @@
}

.ui-grid-cell-contents {
padding: 5px;
padding: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
Expand Down
3 changes: 2 additions & 1 deletion src/less/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@
}

.ui-grid-invisible {
visibility: hidden;;
visibility: hidden;
}

// Wraps the contents inside the grid directive with a relatively-positioned element so that all absolute elements are positioned relative to the grid, and not the page
.ui-grid-contents-wrapper {
position: relative;
height: 100%;
width: 100%;
overflow: hidden;
}

// Only display content to screen readers
Expand Down
4 changes: 2 additions & 2 deletions src/less/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
display: table;
box-sizing: border-box;
height: 100%;
border-left: 1px solid #ddd;
}

.ui-grid-header-cell-row {
Expand All @@ -60,7 +61,6 @@
position: relative;
box-sizing: border-box;
background-color: inherit;
border-right: @gridBorderWidth solid;
border-color: @headerVerticalBarColor;
display: table-cell;

Expand Down Expand Up @@ -95,7 +95,7 @@
.ui-grid-column-menu-button {
position: absolute;
right: @gridBorderWidth; // So it doesn't overlay the vertical bar
top: 0;
top: 5px;
// bottom: 0;
// .ui-grid-top-panel-background;

Expand Down
3 changes: 0 additions & 3 deletions src/less/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
white-space: nowrap;

.rounded(@gridBorderRadius);
.box-shadow(e("0 10px 20px rgba(0, 0, 0, 0.2), inset 0 12px 12px -14px rgba(0, 0, 0, 0.2)"));

// Small hidden close button that only appears when focused.
.ui-grid-menu-close-button {
Expand Down Expand Up @@ -72,10 +71,8 @@
&:hover,
&:focus {
// background-color: negation(@headerBackgroundColor, #fff);
.inner-shadow(@vertical: 0, @blur: 14px, @alpha: 0.2);
}
&.ui-grid-menu-item-active {
.inner-shadow(@vertical: 0, @blur: 14px, @alpha: 0.2);
background-color: @selectedColor;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

/** @description Colors for header gradient */
@headerBackgroundColor: #f3f3f3;
@headerGradientStart: #eee;
@headerBackgroundColor: #fff;
@headerGradientStart: #fff;
@headerGradientStop: #fff;
@headerVerticalBarColor: @borderColor;

Expand Down Expand Up @@ -53,7 +53,7 @@
@focusedCell: #b3c4c7;

// Color to use for enabled or selected settings/items/cells, etc. Should probably override the one above
@selectedColor: #cecece;
@selectedColor: #f1f1f1;

/**
* @section Scrollbar styles
Expand Down

0 comments on commit 1a68d8f

Please sign in to comment.