You are here

file.css in Open Social 8.8

.file {
  display: flex;
  font-size: 0.75rem;
  margin: 10px 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 0.5em 0;
}

.file > span {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.file > .tabledrag-changed {
  display: table-cell;
  padding: 0 1em;
  top: 0;
  vertical-align: middle;
  border-left: 1px solid inherit;
}

.form-managed-file .file {
  margin-bottom: 0;
}

.file-icon {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  flex: 0 0 32px;
}

.file-icon .node-file__icon {
  display: block;
}

.file-link {
  flex: 1;
  white-space: normal;
  word-break: break-word;
}

.file-link a, .file-link a:hover, .file-link a:focus, .file-link a:active {
  text-decoration: none;
  color: inherit;
  font-weight: 300;
}

.file-size {
  text-align: right;
  white-space: pre;
  vertical-align: middle;
}

.card-files {
  margin-top: 40px;
}

.card-files__grid {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card-files__title {
  margin-bottom: 20px;
}

.card-file {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  flex: 0 0 47.5%;
  margin-bottom: 13px;
  font-size: 0.75rem;
  background: #f3f3f3;
}

.card-file:hover {
  box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
}

.card-file__link {
  display: block;
  position: relative;
  height: 100px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.card-file__title {
  overflow: hidden;
  position: relative;
  line-height: 1.35em;
  max-height: 2.7em;
  padding-right: 1em;
  display: block;
  word-break: break-word;
  word-wrap: normal;
}

.card-file__title:before {
  content: '...';
  position: absolute;
  right: 0;
  bottom: 0;
}

.card-file__title:after {
  content: '';
  position: absolute;
  right: 0;
  width: 1em;
  height: 1em;
  margin-top: 0.2em;
  background: #f3f3f3;
}

.card-file__type {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  position: absolute;
  bottom: 12px;
  width: calc(100% - (2 * 12px));
}

.card-file__icon {
  margin-right: 8px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  width: 16px;
  height: 16px;
}

.card-file__size,
.card-file__count {
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1rem;
}

.card-file__count {
  flex: 1 0 100%;
  white-space: nowrap;
  margin: 5px 0 0 24px;
}

@media (min-width: 600px) {
  .file {
    margin-top: 5px;
  }
}

@media (min-width: 900px) {
  .card-files__grid {
    justify-content: flex-start;
  }
  .card-file {
    flex-basis: 23%;
    margin-right: 2%;
  }
  .card-file:nth-child(4n+4) {
    margin-right: 0;
  }
}

File

themes/socialbase/assets/css/file.css
View source
  1. .file {
  2. display: flex;
  3. font-size: 0.75rem;
  4. margin: 10px 0;
  5. width: 100%;
  6. background: #fff;
  7. border: 1px solid #e6e6e6;
  8. padding: 0.5em 0;
  9. }
  10. .file > span {
  11. padding-left: 0.5em;
  12. padding-right: 0.5em;
  13. }
  14. .file > .tabledrag-changed {
  15. display: table-cell;
  16. padding: 0 1em;
  17. top: 0;
  18. vertical-align: middle;
  19. border-left: 1px solid inherit;
  20. }
  21. .form-managed-file .file {
  22. margin-bottom: 0;
  23. }
  24. .file-icon {
  25. -webkit-user-select: none;
  26. -moz-user-select: none;
  27. -ms-user-select: none;
  28. user-select: none;
  29. flex: 0 0 32px;
  30. }
  31. .file-icon .node-file__icon {
  32. display: block;
  33. }
  34. .file-link {
  35. flex: 1;
  36. white-space: normal;
  37. word-break: break-word;
  38. }
  39. .file-link a, .file-link a:hover, .file-link a:focus, .file-link a:active {
  40. text-decoration: none;
  41. color: inherit;
  42. font-weight: 300;
  43. }
  44. .file-size {
  45. text-align: right;
  46. white-space: pre;
  47. vertical-align: middle;
  48. }
  49. .card-files {
  50. margin-top: 40px;
  51. }
  52. .card-files__grid {
  53. padding-left: 0;
  54. list-style: none;
  55. margin-bottom: 0;
  56. display: flex;
  57. flex-wrap: wrap;
  58. justify-content: space-between;
  59. }
  60. .card-files__title {
  61. margin-bottom: 20px;
  62. }
  63. .card-file {
  64. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  65. flex: 0 0 47.5%;
  66. margin-bottom: 13px;
  67. font-size: 0.75rem;
  68. background: #f3f3f3;
  69. }
  70. .card-file:hover {
  71. box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  72. }
  73. .card-file__link {
  74. display: block;
  75. position: relative;
  76. height: 100px;
  77. padding: 12px;
  78. color: inherit;
  79. text-decoration: none;
  80. }
  81. .card-file__title {
  82. overflow: hidden;
  83. position: relative;
  84. line-height: 1.35em;
  85. max-height: 2.7em;
  86. padding-right: 1em;
  87. display: block;
  88. word-break: break-word;
  89. word-wrap: normal;
  90. }
  91. .card-file__title:before {
  92. content: '...';
  93. position: absolute;
  94. right: 0;
  95. bottom: 0;
  96. }
  97. .card-file__title:after {
  98. content: '';
  99. position: absolute;
  100. right: 0;
  101. width: 1em;
  102. height: 1em;
  103. margin-top: 0.2em;
  104. background: #f3f3f3;
  105. }
  106. .card-file__type {
  107. display: flex;
  108. flex-wrap: wrap;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. white-space: nowrap;
  112. margin-top: 4px;
  113. position: absolute;
  114. bottom: 12px;
  115. width: calc(100% - (2 * 12px));
  116. }
  117. .card-file__icon {
  118. margin-right: 8px;
  119. -webkit-user-select: none;
  120. -moz-user-select: none;
  121. -ms-user-select: none;
  122. user-select: none;
  123. width: 16px;
  124. height: 16px;
  125. }
  126. .card-file__size,
  127. .card-file__count {
  128. text-overflow: ellipsis;
  129. overflow: hidden;
  130. line-height: 1rem;
  131. }
  132. .card-file__count {
  133. flex: 1 0 100%;
  134. white-space: nowrap;
  135. margin: 5px 0 0 24px;
  136. }
  137. @media (min-width: 600px) {
  138. .file {
  139. margin-top: 5px;
  140. }
  141. }
  142. @media (min-width: 900px) {
  143. .card-files__grid {
  144. justify-content: flex-start;
  145. }
  146. .card-file {
  147. flex-basis: 23%;
  148. margin-right: 2%;
  149. }
  150. .card-file:nth-child(4n+4) {
  151. margin-right: 0;
  152. }
  153. }