You are here

badge.css in Open Social 8.7

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