[290] | 1 | //some elements variables |
---|
| 2 | @blockquote-border:#E5EAF1; |
---|
| 3 | |
---|
| 4 | @modal-footer-border:#E4E9EE; |
---|
| 5 | @modal-footer-bg:#EFF3F8; |
---|
| 6 | |
---|
| 7 | @pagination-color:#2283C5; |
---|
| 8 | @pagination-border:#E0E8EB; |
---|
| 9 | @pagination-bg:#FAFAFA; |
---|
| 10 | @pagination-bg-hover:#EAEFF2; |
---|
| 11 | |
---|
| 12 | @pagination-bg-disabled:#F9F9F9; |
---|
| 13 | @pagination-border-disabled:#D9D9D9; |
---|
| 14 | |
---|
| 15 | @pagination-color-active:#FFF; |
---|
| 16 | @pagination-bg-active:#6FAED9; |
---|
| 17 | @pagination-border-active:#6FAED9; |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | /* elements */ |
---|
| 22 | [class*=" icon-"] , [class^="icon-"] { |
---|
| 23 | display:inline-block; |
---|
| 24 | text-align:center; |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | a{ |
---|
| 28 | &:focus, &:active { |
---|
| 29 | text-decoration:none; |
---|
| 30 | } |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | /* header sizes */ |
---|
| 35 | .h-size(@index) when (@index > 0){ |
---|
| 36 | @h-tag : ~`"h@{index}"`; |
---|
| 37 | @{h-tag} { |
---|
| 38 | @tmpvar : ~`"h@{index}-size"`;//get the variable h1-size, h2-size , etc... |
---|
| 39 | font-size:unit(@@tmpvar , px); |
---|
| 40 | font-weight:normal; |
---|
| 41 | font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif; |
---|
| 42 | |
---|
| 43 | &.smaller { |
---|
| 44 | font-size:unit((@@tmpvar - 1) , px); |
---|
| 45 | } |
---|
| 46 | &.bigger { |
---|
| 47 | font-size:unit((@@tmpvar + 1) , px); |
---|
| 48 | } |
---|
| 49 | &.block { |
---|
| 50 | margin-bottom:16px; |
---|
| 51 | } |
---|
| 52 | } |
---|
| 53 | } |
---|
| 54 | .h-size(1); |
---|
| 55 | .h-size(2); |
---|
| 56 | .h-size(3); |
---|
| 57 | .h-size(4); |
---|
| 58 | .h-size(5); |
---|
| 59 | .h-size(6); |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | /* some list styling */ |
---|
| 65 | ul, ol { |
---|
| 66 | margin: 0 0 10px 25px; |
---|
| 67 | padding: 0; |
---|
| 68 | |
---|
| 69 | &.margin-5 { margin-left: 5px; } |
---|
| 70 | &.margin-10 { margin-left: 10px; } |
---|
| 71 | &.margin-15 { margin-left: 15px; } |
---|
| 72 | &.margin-20 { margin-left: 20px; } |
---|
| 73 | } |
---|
| 74 | li > ul, |
---|
| 75 | li > ol { |
---|
| 76 | margin-left: 18px; |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | .list-unstyled , .list-inline { |
---|
| 80 | margin-left: 0; |
---|
| 81 | |
---|
| 82 | > li > [class*="icon-"]:first-child { |
---|
| 83 | width: 18px; |
---|
| 84 | text-align: center; |
---|
| 85 | } |
---|
| 86 | } |
---|
| 87 | |
---|
| 88 | .spaced > li { |
---|
| 89 | margin-top: 9px; |
---|
| 90 | margin-bottom: 9px; |
---|
| 91 | } |
---|
| 92 | .spaced2 > li { |
---|
| 93 | margin-top: 15px; |
---|
| 94 | margin-bottom: 15px; |
---|
| 95 | } |
---|
| 96 | li.divider { |
---|
| 97 | margin-top: 3px; |
---|
| 98 | margin-bottom: 3px; |
---|
| 99 | height: 0; |
---|
| 100 | font-size: 0; |
---|
| 101 | |
---|
| 102 | .spaced > & { |
---|
| 103 | margin-top: 5px; |
---|
| 104 | margin-bottom: 5px; |
---|
| 105 | } |
---|
| 106 | .spaced2 > & { |
---|
| 107 | margin-top: 8px; |
---|
| 108 | margin-bottom: 8px; |
---|
| 109 | } |
---|
| 110 | |
---|
| 111 | &:before { |
---|
| 112 | content: ""; |
---|
| 113 | display: inline-block; |
---|
| 114 | } |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | /* little elements */ |
---|
| 120 | blockquote{ |
---|
| 121 | &, &.pull-right { |
---|
| 122 | border-color: @blockquote-border; |
---|
| 123 | } |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | /* modals */ |
---|
| 128 | .modal-content { |
---|
| 129 | .border-radius(0); |
---|
| 130 | .box-shadow(none); |
---|
| 131 | } |
---|
| 132 | .modal-footer { |
---|
| 133 | padding-top: 12px; |
---|
| 134 | padding-bottom: 14px; |
---|
| 135 | |
---|
| 136 | border-top-color: @modal-footer-border; |
---|
| 137 | .box-shadow(none); |
---|
| 138 | background-color: @modal-footer-bg; |
---|
| 139 | } |
---|
| 140 | .modal-header .close { |
---|
| 141 | font-size: 32px; |
---|
| 142 | } |
---|
| 143 | |
---|
| 144 | /* wells */ |
---|
| 145 | .well { |
---|
| 146 | .border-radius(0); |
---|
| 147 | } |
---|
| 148 | .well h1, .well h2, .well h3, .well h4, .well h5, .well h6 { |
---|
| 149 | margin-top: 0; |
---|
| 150 | } |
---|
| 151 | .well h1, .well h2, .well h3 { |
---|
| 152 | line-height: 36px; |
---|
| 153 | } |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | /* alerts */ |
---|
| 157 | .alert { |
---|
| 158 | font-size: 14px; |
---|
| 159 | .border-radius(0); |
---|
| 160 | |
---|
| 161 | .close { |
---|
| 162 | font-size: 16px; |
---|
| 163 | } |
---|
| 164 | } |
---|
| 165 | .alert-block p + p { |
---|
| 166 | margin-top: 10px; |
---|
| 167 | } |
---|
| 168 | |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | /* pagination */ |
---|
| 172 | .pagination > li > a , .pager > li > a, |
---|
| 173 | .pagination > li > span , .pager > li > span |
---|
| 174 | { |
---|
| 175 | border-width: 1px; |
---|
| 176 | border-radius: 0 !important; |
---|
| 177 | } |
---|
| 178 | .pagination > li > a, .pager > li > a |
---|
| 179 | { |
---|
| 180 | color: @pagination-color; |
---|
| 181 | background-color: @pagination-bg; |
---|
| 182 | margin: 0 -1px 0 0; |
---|
| 183 | border-color: @pagination-border; |
---|
| 184 | } |
---|
| 185 | .pagination > li > a:hover , .pager > li > a:hover { |
---|
| 186 | background-color: @pagination-bg-hover; |
---|
| 187 | } |
---|
| 188 | .pagination > li > a:focus , .pager > li > a:focus { |
---|
| 189 | background-color: spin(@pagination-bg-hover, 10%); |
---|
| 190 | } |
---|
| 191 | |
---|
| 192 | .pagination > li.disabled > a , .pagination > li.disabled > a:hover , |
---|
| 193 | .pager > li.disabled > a , .pager > li.disabled > a:hover { |
---|
| 194 | background-color: @pagination-bg-disabled; |
---|
| 195 | border-color: @pagination-border-disabled; |
---|
| 196 | } |
---|
| 197 | |
---|
| 198 | .pagination > li.active > a, .pagination > li.active > a:hover { |
---|
| 199 | background-color: @pagination-bg-active; |
---|
| 200 | border-color: @pagination-border-active; |
---|
| 201 | color: @pagination-color-active; |
---|
| 202 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
---|
| 203 | } |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | .list-group-item { |
---|
| 207 | border-radius: 0 !important; |
---|
| 208 | } |
---|
| 209 | |
---|