Advertisement
Guest User

Ext.ux.grid.FlagMark CSS

a guest
Jul 24th, 2014
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.47 KB | None | 0 0
  1. // this just makes sure the background is transparent when the row is selected so you can still see the rows highlight colour through it
  2. .x-grid-row-selected .x-grid-cell .ux-grid-flag { background-color : transparent !important; }
  3.  
  4. // this will position the flag top right of the container
  5. .ux-grid-flag {
  6.     position: absolute;
  7.     right: 0;
  8.     padding: 0;
  9.     border-width : 0 !important;
  10.     background-color: transparent  !important;
  11. }
  12.  
  13. // this...
  14. .ux-grid-flag .x-grid-cell-inner {
  15.     height: 60px;
  16.     width: 60px;
  17. }
  18. // ...and this will make a CSS triangle for you
  19. .ux-grid-flag .x-grid-cell-inner .ux-flag-cell-triangle {
  20.     border-style: solid;
  21.     border-width: 0 60px 60px 0;
  22.     position: initial;
  23.     display: block;
  24. }
  25.  
  26. // this sets up the colour given to each possible state in the component. you can define your own based on the flag attributes you want
  27. .ux-grid-flag .x-grid-cell-inner .ux-row-flag-item.favourite .ux-flag-cell-triangle { border-color: transparent #e13f8f transparent transparent;}
  28. .ux-grid-flag .x-grid-cell-inner .ux-row-flag-item.flag .ux-flag-cell-triangle { border-color: transparent #e13f8f transparent transparent;}
  29.  
  30. // this positions the glyph in the triangle
  31. .ux-grid-flag .x-grid-cell-inner i {
  32.     position: absolute;
  33.     right: 0;
  34.     color: #fff;
  35.     font-size: 16px;   
  36. }
  37.  
  38. // bear in mind we have our own glyph font. you'll need to get your own from somewhere like icomoon
  39. .ux-grid-flag .x-grid-cell-inner i[data-icon]:before {
  40.     padding: 0;
  41.     margin: 10px;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement