You are here

field.css in AT Tools 8

@charset "UTF-8";
/**
 * Fields
 * Common styles for field templates.
 * SEE: image and taxonomy field styles as these both have unique
 * template html markup and selectors.
 ============================================================================ */
.field {
  margin-bottom: 16px;
  margin-bottom: 1rem;
}

.field__label {
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  font-size: 1rem;
  line-height: 21px;
  line-height: 1.3125rem;
  margin: 0;
}

.field-label-inline .field__label {
  margin: 0;
  display: inline-block;
  padding: 0 4px 0 0;
  padding: 0 0.25rem 0 0;
}
.field-label-inline .field__label:after {
  content: ":";
}
[dir="rtl"] .field-label-inline .field__label {
  padding: 0 0 0 4px;
  padding: 0 0 0 0.25rem;
}
.field-label-inline .field__items,
.field-label-inline .field__item {
  display: inline-block;
}

.field-label-above .field__label,
.field-label-above .field__items {
  display: block;
}

/**
 * Field Image
 ============================================================================ */
.field-type-image {
  margin: 0;
  padding: 0;
}
.field-type-image figure {
  margin-bottom: 16px;
  margin-bottom: 1rem;
}
.field-type-image .align-left {
  margin: 0 16px 16px 0;
  margin: 0 1rem 1rem 0;
}
.field-type-image .align-none figcaption,
.field-type-image .align-left figcaption {
  text-align: left;
}
.field-type-image .align-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  margin-bottom: 1rem;
}
.field-type-image figure.align-center {
  display: block;
}
.field-type-image .align-right {
  margin: 0 0 16px 16px;
  margin: 0 0 1rem 1rem;
}
.field-type-image .align-right figcaption {
  text-align: left;
}
.field-type-image .float-none {
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.field-type-image + .field-type-image .field__label {
  clear: both;
}

@media all and (max-width: 45em) {
  .field-type-image [class*="align-"] {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    float: none;
    margin-bottom: 16px;
    margin-bottom: 1rem;
  }

  .field-type-image figure[class*="align-"] {
    display: block;
  }
}
/**
 * File icons
 *  - AT unsets Drupal core file field CSS for image icons and replaces them
 *    with FontAwesome icons.
 ============================================================================ */
.file {
  display: block;
}
.file a {
  text-decoration: none;
  word-break: break-all;
  -webkit-hyphens: auto;
      -ms-hyphens: auto;
          hyphens: auto;
}
.file a:before {
  font-family: FontAwesome, sans-serif;
  content: "";
  padding-right: 7px;
  padding-right: 0.4375rem;
  display: none;
}
.fa-loaded .file a:before {
  display: inline-block;
}

.file--package-x-generic a:before {
  content: "";
}

.file--x-office-spreadsheet a:before,
.file [href$='.numbers']:before {
  content: "";
}

.file--x-office-document a:before,
.file [href$='.pages']:before {
  content: "";
}

.file--x-office-presentation a:before,
.file [href$='.key']:before {
  content: "";
}

.file--text-x-script:before,
.file--text-html:before,
.file [href*='.js']:before,
.file [href*='.css']:before,
.file [href*='.scss']:before,
.file [href*='.sass']:before,
.file [href*='.less']:before,
.file [href*='.rb']:before,
.file [href*='.php']:before,
.file [href*='.inc']:before,
.file [href*='.htm']:before,
.file [href*='.html']:before,
.file [href*='.xml']:before,
.file [href*='.twig']:before,
.file [href*='.theme']:before,
.file [href*='.module']:before,
.file [href*='.config']:before,
.file [href*='.install']:before,
.file [href*='.yml']:before,
.file [href*='.json']:before,
.file [href*='.sh']:before {
  content: "";
}

.file--text a:before,
.file--text-plain a:before {
  content: "";
}

.file--application-pdf a:before {
  content: "";
}

.file--audio a:before {
  content: "";
}

.file--video a:before {
  content: "";
}

.file--image a:before {
  content: "";
}

/**
 * Field Language Display
 ============================================================================ */
[id*="field-language-display"] {
  margin-bottom: 16px;
  margin-bottom: 1rem;
}
[id*="field-language-display"] .form-item {
  margin: 0;
}

/*# sourceMappingURL=maps/field.css.map */

File

at_theme_generator/starterkits/starterkit/styles/css/components/field.css
View source
  1. @charset "UTF-8";
  2. /**
  3. * Fields
  4. * Common styles for field templates.
  5. * SEE: image and taxonomy field styles as these both have unique
  6. * template html markup and selectors.
  7. ============================================================================ */
  8. .field {
  9. margin-bottom: 16px;
  10. margin-bottom: 1rem;
  11. }
  12. .field__label {
  13. font-family: inherit;
  14. font-weight: 600;
  15. font-size: 16px;
  16. font-size: 1rem;
  17. line-height: 21px;
  18. line-height: 1.3125rem;
  19. margin: 0;
  20. }
  21. .field-label-inline .field__label {
  22. margin: 0;
  23. display: inline-block;
  24. padding: 0 4px 0 0;
  25. padding: 0 0.25rem 0 0;
  26. }
  27. .field-label-inline .field__label:after {
  28. content: ":";
  29. }
  30. [dir="rtl"] .field-label-inline .field__label {
  31. padding: 0 0 0 4px;
  32. padding: 0 0 0 0.25rem;
  33. }
  34. .field-label-inline .field__items,
  35. .field-label-inline .field__item {
  36. display: inline-block;
  37. }
  38. .field-label-above .field__label,
  39. .field-label-above .field__items {
  40. display: block;
  41. }
  42. /**
  43. * Field Image
  44. ============================================================================ */
  45. .field-type-image {
  46. margin: 0;
  47. padding: 0;
  48. }
  49. .field-type-image figure {
  50. margin-bottom: 16px;
  51. margin-bottom: 1rem;
  52. }
  53. .field-type-image .align-left {
  54. margin: 0 16px 16px 0;
  55. margin: 0 1rem 1rem 0;
  56. }
  57. .field-type-image .align-none figcaption,
  58. .field-type-image .align-left figcaption {
  59. text-align: left;
  60. }
  61. .field-type-image .align-center {
  62. text-align: center;
  63. margin-left: auto;
  64. margin-right: auto;
  65. margin-bottom: 16px;
  66. margin-bottom: 1rem;
  67. }
  68. .field-type-image figure.align-center {
  69. display: block;
  70. }
  71. .field-type-image .align-right {
  72. margin: 0 0 16px 16px;
  73. margin: 0 0 1rem 1rem;
  74. }
  75. .field-type-image .align-right figcaption {
  76. text-align: left;
  77. }
  78. .field-type-image .float-none {
  79. float: none !important;
  80. margin-right: 0 !important;
  81. margin-left: 0 !important;
  82. }
  83. .field-type-image + .field-type-image .field__label {
  84. clear: both;
  85. }
  86. @media all and (max-width: 45em) {
  87. .field-type-image [class*="align-"] {
  88. text-align: center;
  89. margin-left: auto;
  90. margin-right: auto;
  91. float: none;
  92. margin-bottom: 16px;
  93. margin-bottom: 1rem;
  94. }
  95. .field-type-image figure[class*="align-"] {
  96. display: block;
  97. }
  98. }
  99. /**
  100. * File icons
  101. * - AT unsets Drupal core file field CSS for image icons and replaces them
  102. * with FontAwesome icons.
  103. ============================================================================ */
  104. .file {
  105. display: block;
  106. }
  107. .file a {
  108. text-decoration: none;
  109. word-break: break-all;
  110. -webkit-hyphens: auto;
  111. -ms-hyphens: auto;
  112. hyphens: auto;
  113. }
  114. .file a:before {
  115. font-family: FontAwesome, sans-serif;
  116. content: "";
  117. padding-right: 7px;
  118. padding-right: 0.4375rem;
  119. display: none;
  120. }
  121. .fa-loaded .file a:before {
  122. display: inline-block;
  123. }
  124. .file--package-x-generic a:before {
  125. content: "";
  126. }
  127. .file--x-office-spreadsheet a:before,
  128. .file [href$='.numbers']:before {
  129. content: "";
  130. }
  131. .file--x-office-document a:before,
  132. .file [href$='.pages']:before {
  133. content: "";
  134. }
  135. .file--x-office-presentation a:before,
  136. .file [href$='.key']:before {
  137. content: "";
  138. }
  139. .file--text-x-script:before,
  140. .file--text-html:before,
  141. .file [href*='.js']:before,
  142. .file [href*='.css']:before,
  143. .file [href*='.scss']:before,
  144. .file [href*='.sass']:before,
  145. .file [href*='.less']:before,
  146. .file [href*='.rb']:before,
  147. .file [href*='.php']:before,
  148. .file [href*='.inc']:before,
  149. .file [href*='.htm']:before,
  150. .file [href*='.html']:before,
  151. .file [href*='.xml']:before,
  152. .file [href*='.twig']:before,
  153. .file [href*='.theme']:before,
  154. .file [href*='.module']:before,
  155. .file [href*='.config']:before,
  156. .file [href*='.install']:before,
  157. .file [href*='.yml']:before,
  158. .file [href*='.json']:before,
  159. .file [href*='.sh']:before {
  160. content: "";
  161. }
  162. .file--text a:before,
  163. .file--text-plain a:before {
  164. content: "";
  165. }
  166. .file--application-pdf a:before {
  167. content: "";
  168. }
  169. .file--audio a:before {
  170. content: "";
  171. }
  172. .file--video a:before {
  173. content: "";
  174. }
  175. .file--image a:before {
  176. content: "";
  177. }
  178. /**
  179. * Field Language Display
  180. ============================================================================ */
  181. [id*="field-language-display"] {
  182. margin-bottom: 16px;
  183. margin-bottom: 1rem;
  184. }
  185. [id*="field-language-display"] .form-item {
  186. margin: 0;
  187. }
  188. /*# sourceMappingURL=maps/field.css.map */