You are here

style.css in Fine Image Upload 8.2

Same filename in this branch
  1. 8.2 css/style.css
  2. 8.2 fiu_ui/css/style.css
Same filename and directory in other branches
  1. 8 css/style.css
.fiu-wrapper:after {
  content: " ";
  display: block;
  width: 1px;
  height: 1px;
  clear: both;
}

.fiu-wrapper > .messages {
  float: none;
}

.fiu-add-element {
  position: relative;
  float: left;
  width: 180px;
  height: 130px;
  margin: 5px;
  background-color: #eee;
}

.fiu-add-element .form-item .description {
  display: none;
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  width: 100%;
  margin: 0;
  padding: 5px;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, .25);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 12px;
  transform: translateX(-50%);
  z-index: 99;
}

.fiu-add-element .form-item .description:before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 0;
  height: 0;
  margin: 0;
  border: 10px solid transparent;
  border-top: 10px solid rgba(0, 0, 0, .8);
  transform: translateX(-50%);
}

.fiu-add-element:hover .description {
  display: block;
}

.fiu-add-element input[type="file"] {
  height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: -1;
}

.fiu-add-element .form-type-managed-file {
  height: 130px;
  margin: 0;
  position: relative;
  width: 100%;
}

.fiu-add-element .form-type-managed-file label {
  align-items: center;
  background-color: #eee;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 1.25em;
  font-weight: 700;
  height: 130px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.fiu-add-element .form-type-managed-file--advanced label {
  background-image: url(../icons/upload.svg);
  background-position: center 30px;
  background-repeat: no-repeat;
  background-size: 33px;
  font-size: 1em;
  height: 60px;
  padding-top: 45px;
  padding-bottom: 15px;
}

.fiu-add-element .form-type-managed-file--advanced.is-dragover label {
  background-color: #ddd;
}

.fiu-add-element:focus label,
.fiu-add-element label:hover {
  outline: none;
}

.fiu-add-element label * {
  pointer-events: none;
}

.field--widget-fine-image .messages--status,
.fiu-add-element .messages,
.fiu-wrapper .fiu-image-info {
  display: none;
}

.mfp-inline-holder .mfp-content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: stretch;
  width: 90%;
  height: 70%;
  transform: translate(-50%, -50%);
}

.fiu-full-image {
  position: relative;
  width: 100%;
}

.fiu-full-image .mfp-close {
  right: 20%;
  margin: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background-color: rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 28px;
  line-height: 32px;
}

.fiu-full-image img {
  display: block;
  width: 80%;
  height: auto;
  object-fit: cover;
  float: left;
}
.fiu-img-description {
  width: 20%;
  float: left;
}
.mfp-content .inner-fiu-full-image ul {
  margin: 0 0 0 30px;
  padding: 0;
  list-style: none;
  color: #ddd;
}
.inner-fiu-full-image .attr {
  margin: 0 0 0 30px;
  display: block;
}
.inner-fiu-full-image .attr label {
  color: #eee;
}
.inner-fiu-full-image .attr .description {
  color: #ddd;
}
.item-list ul.fiu-sortable-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-list ul.fiu-sortable-list li {
  float: left;
  width: 180px;
  height: 150px;
  margin: 5px;
  list-style: none;
}

ul.fiu-sortable-list li > .form-type-select {
  display: none;
}

.fine-image-widget {
  position: relative;
}

.fine-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 130px;
  border: 1px solid #eee;
  background: #fafafa;
}

.fine-image-preview img {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.fine-image-data {
  position: absolute;
  top: 10px;
  right: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.fiu-broken-file input.form-submit[id*="remove-button"],
.fine-image-data .button[id*="remove-button"],
.fiu-image-details {
  display: inline-block;
  width: 24px;
  height: 24px;
  min-width: unset;
  margin: 0 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  box-shadow: none;
  background: rgba(0, 0, 0, .25) center no-repeat;
  background-size: 16px;
  text-indent: 100%;
  cursor: pointer;
  opacity: .8;
}

.fiu-broken-file input.form-submit[id*="remove-button"]:hover,
.fine-image-data .button[id*="remove-button"]:hover,
.fiu-image-details:hover {
  opacity: 1;
}

.fiu-broken-file input.form-submit[id*="remove-button"],
.fine-image-data .button[id*="remove-button"] {
  background-image: url('../icons/close.svg');
}

.fiu-image-details {
  background-image: url('../icons/magnify.svg');
}

.fiu-progress-wrapper {
  position: absolute;
  top: -10px;
  height: 130px;
  width: 180px;
  text-align: center;
  background: #ccc;
}

.sp {
  width: 32px;
  height: 32px;
  clear: both;
  margin: 40px auto;
}

/* Spinner Circle Rotation */
.sp-circle {
  border: 4px rgba(0, 0, 0, 1) solid;
  border-top: 4px rgba(255, 255, 255, 1) solid;
  border-radius: 50%;
  -webkit-animation: spCircRot .6s infinite linear;
  animation: spCircRot .6s infinite linear;
  display: inline-block;
}
@-webkit-keyframes spCircRot {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}
@keyframes spCircRot {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.fiu-load-image .form-item {
  margin: 0;
}
.fiu-load-image.fiu-add-element label,
.fiu-load-image .fiu-image-details {
  display: none;
}
.fiu-load-image.fiu-add-element .fine-image-widget {
  display: block;
}

/* Single element style */
.unitary-element .fiu-add-element {
  float: none;
  width: 100%;
  height: auto;
  background-color: unset;
}
.unitary-element .form-item {
  position: relative;
  width: 180px;
  height: 130px;
  margin: 5px;
}
.unitary-element .fiu-add-element div[id^="ajax-wrapper"] .fine-image-widget.fiu-single-item {
  display: block;
}
.unitary-element .fiu-add-element div[id^="ajax-wrapper"] .form-item {
  width: 180px;
  height: 150px;
}
.unitary-element .messages--error {
  display: block;
}
.fiu-broken-file .fiu-image-details {
  width: 0;
  height: 0;
  background: none;
  border: none;
}
.fiu-broken-file .fine-image-preview {
  color: black;
  font: 80px/100% arial, sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff;
  background: #eee;
  text-align: center;
  line-height: 130px;
}
.fiu-broken-file .fine-image-preview:after {
  content: '✖';
}
.fiu-broken-file .fine-image-preview img {
  display: none;
}

.fiu-broken-file input[type="file"],
.fiu-broken-file .form-type-checkbox {
  display: none;
}

/* Add integration with IMCE. */
.fiu-wrapper .imce-filefield-widget {
  position: absolute;
  top: 5px;
  text-align: center;
  width: 100%;
}
.fiu-wrapper .fiu-load-image. .imce-filefield-widget {
  display: none;
}

/* Add integration with filefield_sources module. */
.fiu-wrapper .filefield-sources-list {
  position: absolute;
  top: 85px;
  text-align: center;
  z-index: 99;
  width: 100%;
  font-size: 11px;
  line-height: 13px;
}

/* Hide some sources. */
.fiu-wrapper .filefield-sources-list .filefield-source-imce,
.fiu-wrapper .filefield-sources-list .filefield-source-attach,
.fiu-wrapper .filefield-sources-list .filefield-source-clipboard {
  display: none;
}

.fiu-wrapper .filefield-sources-list a {
  display: inline-block;
  margin: 0 2px;
}

.fiu-wrapper .filefield-source.filefield-source-remote.clear-block,
.fiu-wrapper .filefield-source.filefield-source-reference.clear-block {
  position: absolute;
  left: 0;
  width: 170px;
  top: -10px;
  background: #eee;
  padding: 10px 5px;
}

.fiu-wrapper .filefield-source.filefield-source-remote.clear-block .field-suffix,
.fiu-wrapper .filefield-source.filefield-source-reference.clear-block .field-suffix {
  text-align: center;
  width: 160px;
  display: inline-block;
  margin: 5px 0px;
}

.fiu-wrapper .unitary-element .filefield-source.clear-block > .form-item {
  width: 100% !important;
  margin: 0;
}

.fiu-wrapper .filefield-source-remote .ajax-progress-bar {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 999;
  background: #eee;
}

.fiu-wrapper .filefield-source input[type="text"]{
  width: 160px;
}

.fine-image-file-name {
  width: 170px;
  overflow: hidden;
  white-space: nowrap;
}

.fine-image-file-name span {
  padding: 2px 5px;
  display: inline-block;
}

.fine-image-widget:hover .fine-image-file-name,
.fine-image-widget:hover .fine-image-file-name span {
  overflow: visible;
  display: inline-block;
  position: relative;
  z-index: 99;
}

.fine-image-widget:hover .fine-image-file-name span {
  background: gainsboro;
}

File

css/style.css
View source
  1. .fiu-wrapper:after {
  2. content: " ";
  3. display: block;
  4. width: 1px;
  5. height: 1px;
  6. clear: both;
  7. }
  8. .fiu-wrapper > .messages {
  9. float: none;
  10. }
  11. .fiu-add-element {
  12. position: relative;
  13. float: left;
  14. width: 180px;
  15. height: 130px;
  16. margin: 5px;
  17. background-color: #eee;
  18. }
  19. .fiu-add-element .form-item .description {
  20. display: none;
  21. position: absolute;
  22. bottom: calc(100% + 15px);
  23. left: 50%;
  24. width: 100%;
  25. margin: 0;
  26. padding: 5px;
  27. box-shadow: 0 0 3px 0 rgba(0, 0, 0, .25);
  28. border-radius: 4px;
  29. background-color: rgba(0, 0, 0, .8);
  30. color: #fff;
  31. font-size: 12px;
  32. transform: translateX(-50%);
  33. z-index: 99;
  34. }
  35. .fiu-add-element .form-item .description:before {
  36. content: '';
  37. position: absolute;
  38. left: 50%;
  39. bottom: -20px;
  40. width: 0;
  41. height: 0;
  42. margin: 0;
  43. border: 10px solid transparent;
  44. border-top: 10px solid rgba(0, 0, 0, .8);
  45. transform: translateX(-50%);
  46. }
  47. .fiu-add-element:hover .description {
  48. display: block;
  49. }
  50. .fiu-add-element input[type="file"] {
  51. height: 0;
  52. opacity: 0;
  53. overflow: hidden;
  54. position: absolute;
  55. width: 0;
  56. z-index: -1;
  57. }
  58. .fiu-add-element .form-type-managed-file {
  59. height: 130px;
  60. margin: 0;
  61. position: relative;
  62. width: 100%;
  63. }
  64. .fiu-add-element .form-type-managed-file label {
  65. align-items: center;
  66. background-color: #eee;
  67. color: #000;
  68. cursor: pointer;
  69. display: flex;
  70. font-size: 1.25em;
  71. font-weight: 700;
  72. height: 130px;
  73. justify-content: center;
  74. left: 0;
  75. position: absolute;
  76. top: 0;
  77. width: 100%;
  78. }
  79. .fiu-add-element .form-type-managed-file--advanced label {
  80. background-image: url(../icons/upload.svg);
  81. background-position: center 30px;
  82. background-repeat: no-repeat;
  83. background-size: 33px;
  84. font-size: 1em;
  85. height: 60px;
  86. padding-top: 45px;
  87. padding-bottom: 15px;
  88. }
  89. .fiu-add-element .form-type-managed-file--advanced.is-dragover label {
  90. background-color: #ddd;
  91. }
  92. .fiu-add-element:focus label,
  93. .fiu-add-element label:hover {
  94. outline: none;
  95. }
  96. .fiu-add-element label * {
  97. pointer-events: none;
  98. }
  99. .field--widget-fine-image .messages--status,
  100. .fiu-add-element .messages,
  101. .fiu-wrapper .fiu-image-info {
  102. display: none;
  103. }
  104. .mfp-inline-holder .mfp-content {
  105. position: absolute;
  106. top: 50%;
  107. left: 50%;
  108. display: flex;
  109. align-items: stretch;
  110. width: 90%;
  111. height: 70%;
  112. transform: translate(-50%, -50%);
  113. }
  114. .fiu-full-image {
  115. position: relative;
  116. width: 100%;
  117. }
  118. .fiu-full-image .mfp-close {
  119. right: 20%;
  120. margin: 10px;
  121. width: 32px;
  122. height: 32px;
  123. border: 1px solid rgba(255, 255, 255, .5);
  124. border-radius: 50%;
  125. background-color: rgba(0, 0, 0, .25);
  126. color: #fff;
  127. font-size: 28px;
  128. line-height: 32px;
  129. }
  130. .fiu-full-image img {
  131. display: block;
  132. width: 80%;
  133. height: auto;
  134. object-fit: cover;
  135. float: left;
  136. }
  137. .fiu-img-description {
  138. width: 20%;
  139. float: left;
  140. }
  141. .mfp-content .inner-fiu-full-image ul {
  142. margin: 0 0 0 30px;
  143. padding: 0;
  144. list-style: none;
  145. color: #ddd;
  146. }
  147. .inner-fiu-full-image .attr {
  148. margin: 0 0 0 30px;
  149. display: block;
  150. }
  151. .inner-fiu-full-image .attr label {
  152. color: #eee;
  153. }
  154. .inner-fiu-full-image .attr .description {
  155. color: #ddd;
  156. }
  157. .item-list ul.fiu-sortable-list {
  158. position: relative;
  159. margin: 0;
  160. padding: 0;
  161. list-style: none;
  162. }
  163. .item-list ul.fiu-sortable-list li {
  164. float: left;
  165. width: 180px;
  166. height: 150px;
  167. margin: 5px;
  168. list-style: none;
  169. }
  170. ul.fiu-sortable-list li > .form-type-select {
  171. display: none;
  172. }
  173. .fine-image-widget {
  174. position: relative;
  175. }
  176. .fine-image-preview {
  177. display: flex;
  178. align-items: center;
  179. justify-content: center;
  180. overflow: hidden;
  181. width: 100%;
  182. height: 130px;
  183. border: 1px solid #eee;
  184. background: #fafafa;
  185. }
  186. .fine-image-preview img {
  187. position: relative;
  188. display: block;
  189. width: auto;
  190. height: auto;
  191. max-width: 100%;
  192. max-height: 100%;
  193. }
  194. .fine-image-data {
  195. position: absolute;
  196. top: 10px;
  197. right: 0;
  198. display: flex;
  199. justify-content: space-between;
  200. width: 100%;
  201. }
  202. .fiu-broken-file input.form-submit[id*="remove-button"],
  203. .fine-image-data .button[id*="remove-button"],
  204. .fiu-image-details {
  205. display: inline-block;
  206. width: 24px;
  207. height: 24px;
  208. min-width: unset;
  209. margin: 0 10px;
  210. padding: 0;
  211. overflow: hidden;
  212. border: 1px solid rgba(255, 255, 255, .5);
  213. border-radius: 50%;
  214. box-shadow: none;
  215. background: rgba(0, 0, 0, .25) center no-repeat;
  216. background-size: 16px;
  217. text-indent: 100%;
  218. cursor: pointer;
  219. opacity: .8;
  220. }
  221. .fiu-broken-file input.form-submit[id*="remove-button"]:hover,
  222. .fine-image-data .button[id*="remove-button"]:hover,
  223. .fiu-image-details:hover {
  224. opacity: 1;
  225. }
  226. .fiu-broken-file input.form-submit[id*="remove-button"],
  227. .fine-image-data .button[id*="remove-button"] {
  228. background-image: url('../icons/close.svg');
  229. }
  230. .fiu-image-details {
  231. background-image: url('../icons/magnify.svg');
  232. }
  233. .fiu-progress-wrapper {
  234. position: absolute;
  235. top: -10px;
  236. height: 130px;
  237. width: 180px;
  238. text-align: center;
  239. background: #ccc;
  240. }
  241. .sp {
  242. width: 32px;
  243. height: 32px;
  244. clear: both;
  245. margin: 40px auto;
  246. }
  247. /* Spinner Circle Rotation */
  248. .sp-circle {
  249. border: 4px rgba(0, 0, 0, 1) solid;
  250. border-top: 4px rgba(255, 255, 255, 1) solid;
  251. border-radius: 50%;
  252. -webkit-animation: spCircRot .6s infinite linear;
  253. animation: spCircRot .6s infinite linear;
  254. display: inline-block;
  255. }
  256. @-webkit-keyframes spCircRot {
  257. from {
  258. -webkit-transform: rotate(0deg);
  259. }
  260. to {
  261. -webkit-transform: rotate(359deg);
  262. }
  263. }
  264. @keyframes spCircRot {
  265. from {
  266. transform: rotate(0deg);
  267. }
  268. to {
  269. transform: rotate(359deg);
  270. }
  271. }
  272. .fiu-load-image .form-item {
  273. margin: 0;
  274. }
  275. .fiu-load-image.fiu-add-element label,
  276. .fiu-load-image .fiu-image-details {
  277. display: none;
  278. }
  279. .fiu-load-image.fiu-add-element .fine-image-widget {
  280. display: block;
  281. }
  282. /* Single element style */
  283. .unitary-element .fiu-add-element {
  284. float: none;
  285. width: 100%;
  286. height: auto;
  287. background-color: unset;
  288. }
  289. .unitary-element .form-item {
  290. position: relative;
  291. width: 180px;
  292. height: 130px;
  293. margin: 5px;
  294. }
  295. .unitary-element .fiu-add-element div[id^="ajax-wrapper"] .fine-image-widget.fiu-single-item {
  296. display: block;
  297. }
  298. .unitary-element .fiu-add-element div[id^="ajax-wrapper"] .form-item {
  299. width: 180px;
  300. height: 150px;
  301. }
  302. .unitary-element .messages--error {
  303. display: block;
  304. }
  305. .fiu-broken-file .fiu-image-details {
  306. width: 0;
  307. height: 0;
  308. background: none;
  309. border: none;
  310. }
  311. .fiu-broken-file .fine-image-preview {
  312. color: black;
  313. font: 80px/100% arial, sans-serif;
  314. text-decoration: none;
  315. text-shadow: 0 1px 0 #fff;
  316. background: #eee;
  317. text-align: center;
  318. line-height: 130px;
  319. }
  320. .fiu-broken-file .fine-image-preview:after {
  321. content: '✖';
  322. }
  323. .fiu-broken-file .fine-image-preview img {
  324. display: none;
  325. }
  326. .fiu-broken-file input[type="file"],
  327. .fiu-broken-file .form-type-checkbox {
  328. display: none;
  329. }
  330. /* Add integration with IMCE. */
  331. .fiu-wrapper .imce-filefield-widget {
  332. position: absolute;
  333. top: 5px;
  334. text-align: center;
  335. width: 100%;
  336. }
  337. .fiu-wrapper .fiu-load-image. .imce-filefield-widget {
  338. display: none;
  339. }
  340. /* Add integration with filefield_sources module. */
  341. .fiu-wrapper .filefield-sources-list {
  342. position: absolute;
  343. top: 85px;
  344. text-align: center;
  345. z-index: 99;
  346. width: 100%;
  347. font-size: 11px;
  348. line-height: 13px;
  349. }
  350. /* Hide some sources. */
  351. .fiu-wrapper .filefield-sources-list .filefield-source-imce,
  352. .fiu-wrapper .filefield-sources-list .filefield-source-attach,
  353. .fiu-wrapper .filefield-sources-list .filefield-source-clipboard {
  354. display: none;
  355. }
  356. .fiu-wrapper .filefield-sources-list a {
  357. display: inline-block;
  358. margin: 0 2px;
  359. }
  360. .fiu-wrapper .filefield-source.filefield-source-remote.clear-block,
  361. .fiu-wrapper .filefield-source.filefield-source-reference.clear-block {
  362. position: absolute;
  363. left: 0;
  364. width: 170px;
  365. top: -10px;
  366. background: #eee;
  367. padding: 10px 5px;
  368. }
  369. .fiu-wrapper .filefield-source.filefield-source-remote.clear-block .field-suffix,
  370. .fiu-wrapper .filefield-source.filefield-source-reference.clear-block .field-suffix {
  371. text-align: center;
  372. width: 160px;
  373. display: inline-block;
  374. margin: 5px 0px;
  375. }
  376. .fiu-wrapper .unitary-element .filefield-source.clear-block > .form-item {
  377. width: 100% !important;
  378. margin: 0;
  379. }
  380. .fiu-wrapper .filefield-source-remote .ajax-progress-bar {
  381. margin: 0;
  382. padding: 0;
  383. width: 100%;
  384. position: relative;
  385. z-index: 999;
  386. background: #eee;
  387. }
  388. .fiu-wrapper .filefield-source input[type="text"]{
  389. width: 160px;
  390. }
  391. .fine-image-file-name {
  392. width: 170px;
  393. overflow: hidden;
  394. white-space: nowrap;
  395. }
  396. .fine-image-file-name span {
  397. padding: 2px 5px;
  398. display: inline-block;
  399. }
  400. .fine-image-widget:hover .fine-image-file-name,
  401. .fine-image-widget:hover .fine-image-file-name span {
  402. overflow: visible;
  403. display: inline-block;
  404. position: relative;
  405. z-index: 99;
  406. }
  407. .fine-image-widget:hover .fine-image-file-name span {
  408. background: gainsboro;
  409. }