_miscellaneous.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. /*
  2. * Misc: Miscellaneous
  3. * -------------------
  4. */
  5. .border-transparent {
  6. border-color: transparent !important;
  7. }
  8. // Description Blocks
  9. .description-block {
  10. display: block;
  11. margin: 10px 0;
  12. text-align: center;
  13. &.margin-bottom {
  14. margin-bottom: 25px;
  15. }
  16. > .description-header {
  17. font-size: 16px;
  18. font-weight: 600;
  19. margin: 0;
  20. padding: 0;
  21. }
  22. > .description-text {
  23. text-transform: uppercase;
  24. }
  25. }
  26. // Description Block Extension
  27. .description-block {
  28. .description-icon {
  29. font-size: 16px;
  30. }
  31. }
  32. // List utility classes
  33. .list-group-unbordered {
  34. > .list-group-item {
  35. border-left: 0;
  36. border-radius: 0;
  37. border-right: 0;
  38. padding-left: 0;
  39. padding-right: 0;
  40. }
  41. }
  42. .list-header {
  43. color: $gray-600;
  44. font-size: 15px;
  45. font-weight: bold;
  46. padding: 10px 4px;
  47. }
  48. .list-seperator {
  49. background: $card-border-color;
  50. height: 1px;
  51. margin: 15px 0 9px 0;
  52. }
  53. .list-link {
  54. > a {
  55. color: $gray-600;
  56. padding: 4px;
  57. &:hover {
  58. color: $gray-900;
  59. }
  60. }
  61. }
  62. // User block
  63. .user-block {
  64. @include clearfix;
  65. img {
  66. float: left;
  67. height: 40px;
  68. width: 40px;
  69. }
  70. .username,
  71. .description,
  72. .comment {
  73. display: block;
  74. margin-left: 50px;
  75. }
  76. .username {
  77. font-size: 16px;
  78. font-weight: 600;
  79. }
  80. .description {
  81. color: #999;
  82. font-size: 13px;
  83. }
  84. &.user-block-sm {
  85. img {
  86. @extend .img-sm;
  87. }
  88. .username,
  89. .description,
  90. .comment {
  91. margin-left: 40px;
  92. }
  93. .username {
  94. font-size: 14px;
  95. }
  96. }
  97. }
  98. // Image sizes
  99. .img-sm,
  100. .img-md,
  101. .img-lg {
  102. float: left;
  103. }
  104. .img-sm {
  105. height: 30px !important;
  106. width: 30px !important;
  107. + .img-push {
  108. margin-left: 40px;
  109. }
  110. }
  111. .img-md {
  112. width: 60px;
  113. height: 60px;
  114. + .img-push {
  115. margin-left: 70px;
  116. }
  117. }
  118. .img-lg {
  119. width: 100px;
  120. height: 100px;
  121. + .img-push {
  122. margin-left: 110px;
  123. }
  124. }
  125. // Image bordered
  126. .img-bordered {
  127. border: 3px solid $gray-500;
  128. padding: 3px;
  129. }
  130. .img-bordered-sm {
  131. border: 2px solid $gray-500;
  132. padding: 2px;
  133. }
  134. // Rounded and Circle Images
  135. .img-rounded {
  136. @include border-radius($border-radius)
  137. }
  138. .img-circle {
  139. @include border-radius(50%);
  140. }
  141. // Image sizes
  142. .img-size-64,
  143. .img-size-50,
  144. .img-size-32 {
  145. height: auto;
  146. }
  147. .img-size-64 {
  148. width: 64px;
  149. }
  150. .img-size-50 {
  151. width: 50px;
  152. }
  153. .img-size-32 {
  154. width: 32px;
  155. }
  156. // Block sizes
  157. .size-32,
  158. .size-40,
  159. .size-50 {
  160. display: block;
  161. text-align: center;
  162. }
  163. .size-32 {
  164. height: 32px;
  165. line-height: 32px;
  166. width: 32px;
  167. }
  168. .size-40 {
  169. height: 40px;
  170. line-height: 40px;
  171. width: 40px;
  172. }
  173. .size-50 {
  174. height: 50px;
  175. line-height: 50px;
  176. width: 50px;
  177. }
  178. // General attachemnt block
  179. .attachment-block {
  180. background: $gray-100;
  181. border: 1px solid $card-border-color;
  182. margin-bottom: 10px;
  183. padding: 5px;
  184. .attachment-img {
  185. float: left;
  186. height: auto;
  187. max-height: 100px;
  188. max-width: 100px;
  189. }
  190. .attachment-pushed {
  191. margin-left: 110px;
  192. }
  193. .attachment-heading {
  194. margin: 0;
  195. }
  196. .attachment-text {
  197. color: #555;
  198. }
  199. }
  200. // Overlays for Card, InfoBox & SmallBox
  201. .card,
  202. .overlay-wrapper,
  203. .info-box,
  204. .small-box {
  205. // Box overlay for LOADING STATE effect
  206. > .overlay,
  207. > .loading-img {
  208. height: 100%;
  209. left: 0;
  210. position: absolute;
  211. top: 0;
  212. width: 100%;
  213. }
  214. .overlay {
  215. @include border-radius($border-radius);
  216. align-items: center;
  217. background: rgba($white, 0.7);
  218. display: flex;
  219. justify-content: center;
  220. z-index: 50;
  221. > .fa,
  222. > .fas,
  223. > .far,
  224. > .fab,
  225. > .glyphicon,
  226. > .ion {
  227. color: $gray-800;
  228. }
  229. &.dark {
  230. background: rgba($black, 0.5);
  231. > .fa,
  232. > .fas,
  233. > .far,
  234. > .fab,
  235. > .glyphicon,
  236. > .ion {
  237. color: $gray-400;
  238. }
  239. }
  240. }
  241. }
  242. // Ribbon
  243. .ribbon-wrapper {
  244. height: $ribbon-wrapper-size;
  245. overflow: hidden;
  246. position: absolute;
  247. right: -2px;
  248. top: -2px;
  249. z-index: 10;
  250. width: $ribbon-wrapper-size;
  251. &.ribbon-lg {
  252. height: $ribbon-lg-wrapper-size;
  253. width: $ribbon-lg-wrapper-size;
  254. .ribbon {
  255. top: $ribbon-lg-top;
  256. right: $ribbon-lg-right;
  257. width: $ribbon-lg-width;
  258. }
  259. }
  260. &.ribbon-xl {
  261. height: $ribbon-xl-wrapper-size;
  262. width: $ribbon-xl-wrapper-size;
  263. .ribbon {
  264. top: $ribbon-xl-top;
  265. right: $ribbon-xl-right;
  266. width: $ribbon-xl-width;
  267. }
  268. }
  269. .ribbon {
  270. box-shadow: 0 0 $ribbon-border-size rgba($black, .3);
  271. font-size: $ribbon-font-size;
  272. line-height: $ribbon-line-height;
  273. padding: $ribbon-padding;
  274. position: relative;
  275. right: $ribbon-right;
  276. text-align: center;
  277. text-shadow: 0 -1px 0 rgba($black, .4);
  278. text-transform: uppercase;
  279. top: $ribbon-top;
  280. transform: rotate(45deg);
  281. width: $ribbon-width;
  282. &::before,
  283. &::after {
  284. border-left: $ribbon-border-size solid transparent;
  285. border-right: $ribbon-border-size solid transparent;
  286. border-top: $ribbon-border-size solid #9e9e9e;
  287. bottom: -$ribbon-border-size;
  288. content: "";
  289. position: absolute;
  290. }
  291. &::before {
  292. left: 0;
  293. }
  294. &::after {
  295. right: 0;
  296. }
  297. }
  298. }
  299. // Scroll To Top
  300. .back-to-top {
  301. bottom: 1.25rem;
  302. position: fixed;
  303. right: 1.25rem;
  304. &:focus {
  305. box-shadow: none;
  306. }
  307. }