You are here

badge.css in Open Social 8.8

.badge {
  display: inline-block;
  margin-bottom: 3px;
  margin-right: 3px;
  padding: 4px 0.4em;
  font-size: 75%;
  font-weight: 500;
  line-height: 1;
  vertical-align: baseline;
  min-width: 10px;
  max-width: 100%;
}

.badge:empty {
  display: none;
}

small .badge,
.small .badge {
  font-size: 90%;
  position: relative;
  top: -1px;
  margin: 0;
}

.btn .badge {
  position: relative;
  top: -1px;
  text-transform: none;
  margin: 0;
}

a .badge {
  cursor: pointer;
}

.badge--pill {
  padding-right: 0.6em;
  padding-left: 0.6em;
}

.badge--large {
  padding: 0 1em;
  font-size: 0.875rem;
  line-height: 2;
}

.badge__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.badge__icon {
  width: 15px;
  height: 18px;
  padding: 0 1px;
}

.badge__icon ~ .badge__label {
  padding-left: 2px;
  font-weight: lighter;
}

.badge__icon ~ .badge__label:first-of-type {
  padding-left: 4px;
}

.badge__label--description {
  display: none;
}

@media (min-width: 600px) {
  .badge__label--description {
    display: inline;
  }
}

File

themes/socialbase/assets/css/badge.css
View source
  1. .badge {
  2. display: inline-block;
  3. margin-bottom: 3px;
  4. margin-right: 3px;
  5. padding: 4px 0.4em;
  6. font-size: 75%;
  7. font-weight: 500;
  8. line-height: 1;
  9. vertical-align: baseline;
  10. min-width: 10px;
  11. max-width: 100%;
  12. }
  13. .badge:empty {
  14. display: none;
  15. }
  16. small .badge,
  17. .small .badge {
  18. font-size: 90%;
  19. position: relative;
  20. top: -1px;
  21. margin: 0;
  22. }
  23. .btn .badge {
  24. position: relative;
  25. top: -1px;
  26. text-transform: none;
  27. margin: 0;
  28. }
  29. a .badge {
  30. cursor: pointer;
  31. }
  32. .badge--pill {
  33. padding-right: 0.6em;
  34. padding-left: 0.6em;
  35. }
  36. .badge--large {
  37. padding: 0 1em;
  38. font-size: 0.875rem;
  39. line-height: 2;
  40. }
  41. .badge__container {
  42. display: -webkit-box;
  43. display: -ms-flexbox;
  44. display: flex;
  45. -webkit-box-align: center;
  46. -ms-flex-align: center;
  47. align-items: center;
  48. }
  49. .badge__icon {
  50. width: 15px;
  51. height: 18px;
  52. padding: 0 1px;
  53. }
  54. .badge__icon ~ .badge__label {
  55. padding-left: 2px;
  56. font-weight: lighter;
  57. }
  58. .badge__icon ~ .badge__label:first-of-type {
  59. padding-left: 4px;
  60. }
  61. .badge__label--description {
  62. display: none;
  63. }
  64. @media (min-width: 600px) {
  65. .badge__label--description {
  66. display: inline;
  67. }
  68. }