logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

list-group.less (3113B)


  1. //
  2. // List groups
  3. // --------------------------------------------------
  4. // Base class
  5. //
  6. // Easily usable on <ul>, <ol>, or <div>.
  7. .list-group {
  8. // No need to set list-style: none; since .list-group-item is block level
  9. margin-bottom: 20px;
  10. padding-left: 0; // reset padding because ul and ol
  11. }
  12. // Individual list items
  13. //
  14. // Use on `li`s or `div`s within the `.list-group` parent.
  15. .list-group-item {
  16. position: relative;
  17. display: block;
  18. padding: 10px 15px;
  19. // Place the border on the list items and negative margin up for better styling
  20. margin-bottom: -1px;
  21. background-color: @list-group-bg;
  22. border: 1px solid @list-group-border;
  23. // Round the first and last items
  24. &:first-child {
  25. .border-top-radius(@list-group-border-radius);
  26. }
  27. &:last-child {
  28. margin-bottom: 0;
  29. .border-bottom-radius(@list-group-border-radius);
  30. }
  31. // Align badges within list items
  32. > .badge {
  33. float: right;
  34. }
  35. > .badge + .badge {
  36. margin-right: 5px;
  37. }
  38. }
  39. // Linked list items
  40. //
  41. // Use anchor elements instead of `li`s or `div`s to create linked list items.
  42. // Includes an extra `.active` modifier class for showing selected items.
  43. a.list-group-item {
  44. color: @list-group-link-color;
  45. .list-group-item-heading {
  46. color: @list-group-link-heading-color;
  47. }
  48. // Hover state
  49. &:hover,
  50. &:focus {
  51. text-decoration: none;
  52. color: @list-group-link-hover-color;
  53. background-color: @list-group-hover-bg;
  54. }
  55. }
  56. .list-group-item {
  57. // Disabled state
  58. &.disabled,
  59. &.disabled:hover,
  60. &.disabled:focus {
  61. background-color: @list-group-disabled-bg;
  62. color: @list-group-disabled-color;
  63. // Force color to inherit for custom content
  64. .list-group-item-heading {
  65. color: inherit;
  66. }
  67. .list-group-item-text {
  68. color: @list-group-disabled-text-color;
  69. }
  70. }
  71. // Active class on item itself, not parent
  72. &.active,
  73. &.active:hover,
  74. &.active:focus {
  75. z-index: 2; // Place active items above their siblings for proper border styling
  76. color: @list-group-active-color;
  77. background-color: @list-group-active-bg;
  78. border-color: @list-group-active-border;
  79. // Force color to inherit for custom content
  80. .list-group-item-heading,
  81. .list-group-item-heading > small,
  82. .list-group-item-heading > .small {
  83. color: inherit;
  84. }
  85. .list-group-item-text {
  86. color: @list-group-active-text-color;
  87. }
  88. }
  89. }
  90. // Contextual variants
  91. //
  92. // Add modifier classes to change text and background color on individual items.
  93. // Organizationally, this must come after the `:hover` states.
  94. .list-group-item-variant(success; @state-success-bg; @state-success-text);
  95. .list-group-item-variant(info; @state-info-bg; @state-info-text);
  96. .list-group-item-variant(warning; @state-warning-bg; @state-warning-text);
  97. .list-group-item-variant(danger; @state-danger-bg; @state-danger-text);
  98. // Custom content options
  99. //
  100. // Extra classes for creating well-formatted content within `.list-group-item`s.
  101. .list-group-item-heading {
  102. margin-top: 0;
  103. margin-bottom: 5px;
  104. }
  105. .list-group-item-text {
  106. margin-bottom: 0;
  107. line-height: 1.3;
  108. }