You are here

file.css in Open Social 8.2

.file {
  display: -webkit-box;
  display: -ms-flexbox;
  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;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 32px;
          flex: 0 0 32px;
}

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

.file-link {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

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

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

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