publications.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .publications-section {
  2. @include section-title-adjustment();
  3. .card {
  4. background: get-light-color('bg-card');
  5. border-top: 2px solid get-light-color('accent-color');
  6. &:hover,
  7. &:focus {
  8. border-top: 2px solid get-light-color('accent-color');
  9. }
  10. .card-header {
  11. background: none;
  12. border: none;
  13. display: flex;
  14. flex-direction: column;
  15. .sub-title {
  16. color: get-light-color('muted-text-color');
  17. margin-top: 0.4rem;
  18. span:nth-child(2) {
  19. float: right !important;
  20. }
  21. }
  22. a[href] {
  23. text-decoration: underline; /* Underline only when href is present */
  24. }
  25. a:not([href]) {
  26. text-decoration: none; /* No underline when href is absent */
  27. }
  28. }
  29. .card-body {
  30. padding: 0;
  31. padding-left: 1rem;
  32. padding-right: 1rem;
  33. }
  34. .card-footer {
  35. background: get-light-color('bg-card');
  36. border: none;
  37. padding: 0;
  38. padding-left: 1rem;
  39. padding-right: 1rem;
  40. padding-bottom: 0.3rem;
  41. display: flex;
  42. justify-content: space-between;
  43. flex-wrap: wrap;
  44. }
  45. }
  46. .filtr-publications {
  47. padding: 1rem !important;
  48. }
  49. .btn-group {
  50. justify-content: center;
  51. }
  52. @include media('<=large') {
  53. padding-left: 0;
  54. padding-right: 0;
  55. width: 100%;
  56. .container {
  57. max-width: 100%;
  58. }
  59. .filtr-publications {
  60. padding: 0;
  61. }
  62. .pub-filtr-item {
  63. padding-left: 0.2rem;
  64. padding-right: 0.2rem;
  65. }
  66. }
  67. @include media('<=medium') {
  68. .pub-filtr-item {
  69. flex: 100%;
  70. }
  71. }
  72. @include media('<=small') {
  73. .pub-filtr-item {
  74. flex: 100%;
  75. max-width: 100%;
  76. }
  77. .details-btn {
  78. .btn {
  79. margin-top: 0.5rem;
  80. margin-left: auto;
  81. }
  82. }
  83. .card {
  84. .card-footer {
  85. padding-left: 0.5rem;
  86. .tags {
  87. flex: 100%;
  88. max-width: 100%;
  89. .btn {
  90. margin-top: 0.2rem;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }
  97. html[data-theme='dark'] {
  98. .publications-section {
  99. .card {
  100. background: get-dark-color('bg-card');
  101. border-top: 2px solid get-dark-color('accent-color');
  102. &:hover,
  103. &:focus {
  104. border-top: 2px solid get-dark-color('accent-color');
  105. }
  106. .card-header {
  107. .sub-title {
  108. color: get-dark-color('muted-text-color');
  109. }
  110. }
  111. .card-footer {
  112. background: get-dark-color('bg-card');
  113. }
  114. }
  115. }
  116. }