You are here

app.css in CKEditor Widgets 7

* {
  box-sizing: border-box; }

.modal-backdrop {
  position: fixed !important;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background: #000;
  z-index: 10999 !important;
  opacity: 0.5; }

.modal-holder {
  position: fixed;
  top: 50%;
  left: 50%;
  height: 440px;
  width: 880px;
  margin-top: -220px;
  margin-left: -440px;
  background: transparent;
  z-index: 11000;
  padding: 30px 15px; }
  .modal-holder .modal-box {
    margin: 0 auto;
    width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
    position: relative; }

@media screen and (min-width: 992px) {
  .modal-box {
    width: 50%;
    padding: 30px; } }

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg); }

  to {
    -webkit-transform: rotate(360deg); } }

@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg); }

  to {
    -moz-transform: rotate(360deg); } }

@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg); }

  to {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg); } }

.angular-media-field .thumbnails {
  display: inline; }
.angular-media-field .thumbnail, .angular-media-field .placeholder-thumbnail {
  position: relative; }
  .angular-media-field .thumbnail .btn-action, .angular-media-field .placeholder-thumbnail .btn-action {
    display: none;
    top: 10px;
    position: absolute; }
    .angular-media-field .thumbnail .btn-action.thumbnail-edit, .angular-media-field .placeholder-thumbnail .btn-action.thumbnail-edit {
      left: 10px; }
    .angular-media-field .thumbnail .btn-action.thumbnail-remove, .angular-media-field .placeholder-thumbnail .btn-action.thumbnail-remove {
      right: 10px; }
  .angular-media-field .thumbnail:hover .btn-action, .angular-media-field .placeholder-thumbnail:hover .btn-action {
    display: block; }
.angular-media-field .thumbnail {
  width: 110px;
  height: 140px;
  margin: 5px;
  float: left; }
  .angular-media-field .thumbnail.active {
    border-color: #E9D24F;
    background-color: #E9D24F; }
  .angular-media-field .thumbnail img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    margin: 0 auto; }
  .angular-media-field .thumbnail .thumbnail-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    font-size: 0.9em;
    padding-top: 5px; }
  .angular-media-field .thumbnail .download-icon {
    font-size: 15px;
    color: #ccc; }
  .angular-media-field .thumbnail .or {
    margin: 0.5em 0 !important; }
  .angular-media-field .thumbnail .btn.media-select {
    display: block;
    position: relative;
    margin: 0 auto; }
.angular-media-field .clearfix {
  clear: both; }

.placeholder-thumbnail {
  min-height: 350px;
  background-color: #eee !important;
  border: none !important;
  text-align: center;
  font-size: 1.5em;
  display: none; }
  .placeholder-thumbnail.visible {
    display: block; }
  .placeholder-thumbnail .upload-text {
    margin-top: 100px; }
  .placeholder-thumbnail img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    margin: 0 auto;
    width: auto; }

.thumbnail-icon {
  text-align: center;
  position: relative;
  width: 100px; }
  .thumbnail-icon.icon-lg {
    width: 100%; }
  .thumbnail-icon img {
    max-width: 100%;
    height: auto; }
  .thumbnail-icon .file-icon {
    font-size: 100px;
    color: #ccc; }
  .thumbnail-icon .file-icon-text {
    text-transform: uppercase;
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100px;
    font-size: 20px;
    font-weight: bold; }
  .thumbnail-icon.icon-lg .file-icon {
    font-size: 180px; }
  .thumbnail-icon.icon-lg .file-icon-text {
    width: 180px; }

.drop-zone, .thumbnail.drop-zone {
  border: 2px dashed #ccc;
  padding: 10px;
  text-align: center;
  position: relative;
  background-color: rgba(238, 238, 238, 0); }
  .drop-zone .or, .thumbnail.drop-zone .or {
    font-size: 0.8em;
    text-transform: uppercase;
    margin: 2em 0; }
  .drop-zone .drop-label, .thumbnail.drop-zone .drop-label {
    font-size: 1.3em;
    font-weight: bold; }
  .drop-zone .file-upload, .thumbnail.drop-zone .file-upload {
    margin: 0 auto; }
  .drop-zone .description, .thumbnail.drop-zone .description {
    color: #aaa;
    font-size: 0.9em;
    text-align: left;
    width: 85%;
    margin: 5px auto; }
  .drop-zone, .drop-zone > *, .thumbnail.drop-zone, .thumbnail.drop-zone > * {
    -webkit-transition: background ease-out 0.1s;
    -moz-transition: background ease-out 0.1s;
    transition: background ease-out 0.1s; }
  .drop-zone > *, .thumbnail.drop-zone > * {
    opacity: 1; }
  .drop-zone.upload-active, .thumbnail.drop-zone.upload-active {
    background-color: #eeeeee; }
    .drop-zone.upload-active > *, .thumbnail.drop-zone.upload-active > * {
      opacity: 0.5; }
    .drop-zone.upload-active:before, .thumbnail.drop-zone.upload-active:before {
      content: "\e031";
      display: inline-block;
      font-family: 'Glyphicons Halflings';
      font-style: normal;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      position: absolute;
      top: 50%;
      margin-top: -15px;
      left: 50%;
      margin-left: -15px;
      text-align: center;
      width: 30px;
      height: 30px;
      line-height: 30px;
      font-size: 28px;
      -webkit-animation: spin 2s infinite linear;
      -moz-animation: spin 2s infinite linear;
      animation: spin 2s infinite linear;
      -webkit-transform-origin: 15px 14px;
      -moz-transform-origin: 15px 14px;
      -ms-transform-origin: 15px 14px;
      -o-transform-origin: 15px 14px;
      transform-origin: 15px 14px;
      z-index: 1; }

/*
  form {
    width: $modal-width;
    height: $modal-height;
    position: relative;

    select {
      max-width: 200px;
    }
  }
*/
.modal-box .modal-close {
  color: #ccc;
  right: 10px;
  position: absolute;
  z-index: 1010; }
.modal-box .preview {
  position: relative;
  display: block;
  max-width: 200px; }
  .modal-box .preview .preview-overlay {
    top: 20px;
    position: absolute;
    display: none;
    width: 100%;
    text-align: center; }
  .modal-box .preview.croppable {
    cursor: pointer; }
    .modal-box .preview.croppable:hover img {
      opacity: 0.5; }
    .modal-box .preview.croppable:hover .preview-overlay {
      display: block; }
.modal-box .edit-form .editable-item {
  height: auto;
  padding: 5px 0; }
.modal-box .edit-form .title {
  display: inline-block;
  font-weight: bold;
  padding-top: 5px;
  vertical-align: top;
  min-width: 90px; }
.modal-box .edit-form .editable {
  display: inline-block;
  padding-top: 5px;
  vertical-align: top; }
.modal-box .edit-form .editable-form {
  margin-left: 10px; }
.modal-box .image-crop {
  max-width: 500px; }
  .modal-box .image-crop .ng-jcrop {
    padding-bottom: 40px; }
    .modal-box .image-crop .ng-jcrop img.ng-jcrop-image {
      max-width: 100% !important;
      max-height: 500px !important;
      height: auto !important;
      margin: 0 auto; }
.modal-box .filters, .modal-box .browser {
  margin-top: 10px; }
.modal-box .browser {
  position: relative; }
  .modal-box .browser .scroll-wrapper {
    width: 800px;
    height: 400px;
    overflow-y: scroll;
    ms-overflow-x: hidden; }
  .modal-box .browser .left, .modal-box .browser .scroll-wrapper.active {
    width: 540px; }
  .modal-box .browser .thumbnail {
    cursor: pointer; }
  .modal-box .browser .sidebar {
    width: 250px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background: white; }
    .modal-box .browser .sidebar h3, .modal-box .browser .sidebar h5 {
      margin: 0; }
    .modal-box .browser .sidebar .preview {
      text-align: center; }
      .modal-box .browser .sidebar .preview img {
        max-height: 200px;
        margin: 0 auto; }
  .modal-box .browser.upload .queue {
    margin-top: 5px;
    height: 185px;
    overflow-y: auto;
    margin-left: -30px; }
    .modal-box .browser.upload .queue .queue-item {
      padding: 7px 5px 7px 30px;
      cursor: pointer; }
      .modal-box .browser.upload .queue .queue-item.active {
        background-color: #F5F5F5; }
      .modal-box .browser.upload .queue .queue-item .file-thumb {
        float: right;
        margin-left: 5px; }
      .modal-box .browser.upload .queue .queue-item .file-name {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        display: block;
        font-weight: bold; }
      .modal-box .browser.upload .queue .queue-item .file-size {
        float: left;
        margin-right: 5px; }
      .modal-box .browser.upload .queue .queue-item .progress {
        margin: 3px 5px;
        height: 12px; }
  .modal-box .browser.upload .file-details {
    background-color: #F5F5F5;
    padding: 10px;
    border-radius: 3px;
    min-height: 300px; }
.modal-box .bottom-left, .modal-box .bottom-right {
  position: absolute;
  bottom: 10px; }
  .modal-box .bottom-left.bottom-left, .modal-box .bottom-right.bottom-left {
    left: 10px; }
  .modal-box .bottom-left.bottom-right, .modal-box .bottom-right.bottom-right {
    right: 10px; }

/* Hack to fix issue with how item is added to page via fapi */
.field-widget-file-angular-media {
  margin-bottom: 2em; }
  .field-widget-file-angular-media .form-item {
    margin-bottom: 0; }

File

js/angular-media-app/app/css/app.css
View source
  1. * {
  2. box-sizing: border-box; }
  3. .modal-backdrop {
  4. position: fixed !important;
  5. top: 0px;
  6. left: 0px;
  7. height: 100%;
  8. width: 100%;
  9. background: #000;
  10. z-index: 10999 !important;
  11. opacity: 0.5; }
  12. .modal-holder {
  13. position: fixed;
  14. top: 50%;
  15. left: 50%;
  16. height: 440px;
  17. width: 880px;
  18. margin-top: -220px;
  19. margin-left: -440px;
  20. background: transparent;
  21. z-index: 11000;
  22. padding: 30px 15px; }
  23. .modal-holder .modal-box {
  24. margin: 0 auto;
  25. width: 100%;
  26. background: #fff;
  27. padding: 15px;
  28. border-radius: 4px;
  29. box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
  30. position: relative; }
  31. @media screen and (min-width: 992px) {
  32. .modal-box {
  33. width: 50%;
  34. padding: 30px; } }
  35. @-webkit-keyframes spin {
  36. from {
  37. -webkit-transform: rotate(0deg); }
  38. to {
  39. -webkit-transform: rotate(360deg); } }
  40. @-moz-keyframes spin {
  41. from {
  42. -moz-transform: rotate(0deg); }
  43. to {
  44. -moz-transform: rotate(360deg); } }
  45. @keyframes spin {
  46. from {
  47. -webkit-transform: rotate(0deg);
  48. -moz-transform: rotate(0deg);
  49. -ms-transform: rotate(0deg);
  50. -o-transform: rotate(0deg);
  51. transform: rotate(0deg); }
  52. to {
  53. -webkit-transform: rotate(360deg);
  54. -moz-transform: rotate(360deg);
  55. -ms-transform: rotate(360deg);
  56. -o-transform: rotate(360deg);
  57. transform: rotate(360deg); } }
  58. .angular-media-field .thumbnails {
  59. display: inline; }
  60. .angular-media-field .thumbnail, .angular-media-field .placeholder-thumbnail {
  61. position: relative; }
  62. .angular-media-field .thumbnail .btn-action, .angular-media-field .placeholder-thumbnail .btn-action {
  63. display: none;
  64. top: 10px;
  65. position: absolute; }
  66. .angular-media-field .thumbnail .btn-action.thumbnail-edit, .angular-media-field .placeholder-thumbnail .btn-action.thumbnail-edit {
  67. left: 10px; }
  68. .angular-media-field .thumbnail .btn-action.thumbnail-remove, .angular-media-field .placeholder-thumbnail .btn-action.thumbnail-remove {
  69. right: 10px; }
  70. .angular-media-field .thumbnail:hover .btn-action, .angular-media-field .placeholder-thumbnail:hover .btn-action {
  71. display: block; }
  72. .angular-media-field .thumbnail {
  73. width: 110px;
  74. height: 140px;
  75. margin: 5px;
  76. float: left; }
  77. .angular-media-field .thumbnail.active {
  78. border-color: #E9D24F;
  79. background-color: #E9D24F; }
  80. .angular-media-field .thumbnail img {
  81. max-width: 100%;
  82. max-height: 100px;
  83. height: auto;
  84. margin: 0 auto; }
  85. .angular-media-field .thumbnail .thumbnail-title {
  86. text-overflow: ellipsis;
  87. white-space: nowrap;
  88. overflow: hidden;
  89. display: block;
  90. font-size: 0.9em;
  91. padding-top: 5px; }
  92. .angular-media-field .thumbnail .download-icon {
  93. font-size: 15px;
  94. color: #ccc; }
  95. .angular-media-field .thumbnail .or {
  96. margin: 0.5em 0 !important; }
  97. .angular-media-field .thumbnail .btn.media-select {
  98. display: block;
  99. position: relative;
  100. margin: 0 auto; }
  101. .angular-media-field .clearfix {
  102. clear: both; }
  103. .placeholder-thumbnail {
  104. min-height: 350px;
  105. background-color: #eee !important;
  106. border: none !important;
  107. text-align: center;
  108. font-size: 1.5em;
  109. display: none; }
  110. .placeholder-thumbnail.visible {
  111. display: block; }
  112. .placeholder-thumbnail .upload-text {
  113. margin-top: 100px; }
  114. .placeholder-thumbnail img {
  115. max-width: 100%;
  116. height: auto;
  117. max-height: 500px;
  118. margin: 0 auto;
  119. width: auto; }
  120. .thumbnail-icon {
  121. text-align: center;
  122. position: relative;
  123. width: 100px; }
  124. .thumbnail-icon.icon-lg {
  125. width: 100%; }
  126. .thumbnail-icon img {
  127. max-width: 100%;
  128. height: auto; }
  129. .thumbnail-icon .file-icon {
  130. font-size: 100px;
  131. color: #ccc; }
  132. .thumbnail-icon .file-icon-text {
  133. text-transform: uppercase;
  134. color: #fff;
  135. position: absolute;
  136. bottom: 10px;
  137. left: 0;
  138. width: 100px;
  139. font-size: 20px;
  140. font-weight: bold; }
  141. .thumbnail-icon.icon-lg .file-icon {
  142. font-size: 180px; }
  143. .thumbnail-icon.icon-lg .file-icon-text {
  144. width: 180px; }
  145. .drop-zone, .thumbnail.drop-zone {
  146. border: 2px dashed #ccc;
  147. padding: 10px;
  148. text-align: center;
  149. position: relative;
  150. background-color: rgba(238, 238, 238, 0); }
  151. .drop-zone .or, .thumbnail.drop-zone .or {
  152. font-size: 0.8em;
  153. text-transform: uppercase;
  154. margin: 2em 0; }
  155. .drop-zone .drop-label, .thumbnail.drop-zone .drop-label {
  156. font-size: 1.3em;
  157. font-weight: bold; }
  158. .drop-zone .file-upload, .thumbnail.drop-zone .file-upload {
  159. margin: 0 auto; }
  160. .drop-zone .description, .thumbnail.drop-zone .description {
  161. color: #aaa;
  162. font-size: 0.9em;
  163. text-align: left;
  164. width: 85%;
  165. margin: 5px auto; }
  166. .drop-zone, .drop-zone > *, .thumbnail.drop-zone, .thumbnail.drop-zone > * {
  167. -webkit-transition: background ease-out 0.1s;
  168. -moz-transition: background ease-out 0.1s;
  169. transition: background ease-out 0.1s; }
  170. .drop-zone > *, .thumbnail.drop-zone > * {
  171. opacity: 1; }
  172. .drop-zone.upload-active, .thumbnail.drop-zone.upload-active {
  173. background-color: #eeeeee; }
  174. .drop-zone.upload-active > *, .thumbnail.drop-zone.upload-active > * {
  175. opacity: 0.5; }
  176. .drop-zone.upload-active:before, .thumbnail.drop-zone.upload-active:before {
  177. content: "\e031";
  178. display: inline-block;
  179. font-family: 'Glyphicons Halflings';
  180. font-style: normal;
  181. font-weight: 400;
  182. -webkit-font-smoothing: antialiased;
  183. position: absolute;
  184. top: 50%;
  185. margin-top: -15px;
  186. left: 50%;
  187. margin-left: -15px;
  188. text-align: center;
  189. width: 30px;
  190. height: 30px;
  191. line-height: 30px;
  192. font-size: 28px;
  193. -webkit-animation: spin 2s infinite linear;
  194. -moz-animation: spin 2s infinite linear;
  195. animation: spin 2s infinite linear;
  196. -webkit-transform-origin: 15px 14px;
  197. -moz-transform-origin: 15px 14px;
  198. -ms-transform-origin: 15px 14px;
  199. -o-transform-origin: 15px 14px;
  200. transform-origin: 15px 14px;
  201. z-index: 1; }
  202. /*
  203. form {
  204. width: $modal-width;
  205. height: $modal-height;
  206. position: relative;
  207. select {
  208. max-width: 200px;
  209. }
  210. }
  211. */
  212. .modal-box .modal-close {
  213. color: #ccc;
  214. right: 10px;
  215. position: absolute;
  216. z-index: 1010; }
  217. .modal-box .preview {
  218. position: relative;
  219. display: block;
  220. max-width: 200px; }
  221. .modal-box .preview .preview-overlay {
  222. top: 20px;
  223. position: absolute;
  224. display: none;
  225. width: 100%;
  226. text-align: center; }
  227. .modal-box .preview.croppable {
  228. cursor: pointer; }
  229. .modal-box .preview.croppable:hover img {
  230. opacity: 0.5; }
  231. .modal-box .preview.croppable:hover .preview-overlay {
  232. display: block; }
  233. .modal-box .edit-form .editable-item {
  234. height: auto;
  235. padding: 5px 0; }
  236. .modal-box .edit-form .title {
  237. display: inline-block;
  238. font-weight: bold;
  239. padding-top: 5px;
  240. vertical-align: top;
  241. min-width: 90px; }
  242. .modal-box .edit-form .editable {
  243. display: inline-block;
  244. padding-top: 5px;
  245. vertical-align: top; }
  246. .modal-box .edit-form .editable-form {
  247. margin-left: 10px; }
  248. .modal-box .image-crop {
  249. max-width: 500px; }
  250. .modal-box .image-crop .ng-jcrop {
  251. padding-bottom: 40px; }
  252. .modal-box .image-crop .ng-jcrop img.ng-jcrop-image {
  253. max-width: 100% !important;
  254. max-height: 500px !important;
  255. height: auto !important;
  256. margin: 0 auto; }
  257. .modal-box .filters, .modal-box .browser {
  258. margin-top: 10px; }
  259. .modal-box .browser {
  260. position: relative; }
  261. .modal-box .browser .scroll-wrapper {
  262. width: 800px;
  263. height: 400px;
  264. overflow-y: scroll;
  265. ms-overflow-x: hidden; }
  266. .modal-box .browser .left, .modal-box .browser .scroll-wrapper.active {
  267. width: 540px; }
  268. .modal-box .browser .thumbnail {
  269. cursor: pointer; }
  270. .modal-box .browser .sidebar {
  271. width: 250px;
  272. height: 100%;
  273. position: absolute;
  274. right: 0;
  275. top: 0;
  276. background: white; }
  277. .modal-box .browser .sidebar h3, .modal-box .browser .sidebar h5 {
  278. margin: 0; }
  279. .modal-box .browser .sidebar .preview {
  280. text-align: center; }
  281. .modal-box .browser .sidebar .preview img {
  282. max-height: 200px;
  283. margin: 0 auto; }
  284. .modal-box .browser.upload .queue {
  285. margin-top: 5px;
  286. height: 185px;
  287. overflow-y: auto;
  288. margin-left: -30px; }
  289. .modal-box .browser.upload .queue .queue-item {
  290. padding: 7px 5px 7px 30px;
  291. cursor: pointer; }
  292. .modal-box .browser.upload .queue .queue-item.active {
  293. background-color: #F5F5F5; }
  294. .modal-box .browser.upload .queue .queue-item .file-thumb {
  295. float: right;
  296. margin-left: 5px; }
  297. .modal-box .browser.upload .queue .queue-item .file-name {
  298. text-overflow: ellipsis;
  299. white-space: nowrap;
  300. overflow: hidden;
  301. display: block;
  302. font-weight: bold; }
  303. .modal-box .browser.upload .queue .queue-item .file-size {
  304. float: left;
  305. margin-right: 5px; }
  306. .modal-box .browser.upload .queue .queue-item .progress {
  307. margin: 3px 5px;
  308. height: 12px; }
  309. .modal-box .browser.upload .file-details {
  310. background-color: #F5F5F5;
  311. padding: 10px;
  312. border-radius: 3px;
  313. min-height: 300px; }
  314. .modal-box .bottom-left, .modal-box .bottom-right {
  315. position: absolute;
  316. bottom: 10px; }
  317. .modal-box .bottom-left.bottom-left, .modal-box .bottom-right.bottom-left {
  318. left: 10px; }
  319. .modal-box .bottom-left.bottom-right, .modal-box .bottom-right.bottom-right {
  320. right: 10px; }
  321. /* Hack to fix issue with how item is added to page via fapi */
  322. .field-widget-file-angular-media {
  323. margin-bottom: 2em; }
  324. .field-widget-file-angular-media .form-item {
  325. margin-bottom: 0; }