You are here

filefield.css in FileField 6.2

Same filename and directory in other branches
  1. 5.2 filefield.css
  2. 5 filefield.css
  3. 6.3 filefield.css
/**
 * Overall styles
 */

.filefield-icon img {
  display: inline;
}

/**
 * Clear the filefield-icon float, or any other floats
 * that custom widgets might have inserted but not cleared.
 * Stolen from "How To Clear Floats Without Structural Markup",
 * http://www.positioniseverything.net/easyclearing.html
 */
.filefield-item:after, .filefield-file-edit:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
/* Hides from IE-mac \*/
* html .filefield-item, .filefield-file-edit {height: 1%;}
/* End hide from IE-mac */

/* End overall styles */

/**
 * Formatter styles
 */

.filefield-item .filefield-icon {
  float: left;
  margin-right: 0.4em;
}

/* End formatter styles */

/**
 * General widget form styles (applicable to all widgets)
 */

.filefield-file-edit-flags {
  float: right;
  text-align: right;
  margin-bottom: -4px; /* The "List" checkbox has too much bottom margin */
}

.filefield-file-edit-widget {
  width: 90%;
}

/* Only applies to single-value fields, for which we provide our own table. */
.filefield-file-container-table {
  width: 90%;
  margin-top: 3px;
  margin-bottom: 2px;
}

.filefield-file-upload {
  margin-bottom: 5px;
}

.filefield-js-error {
  /* For some reason, the JS error message doesn't wrap by default. */
  white-space: normal;
}

/* End general widget form styles */

/**
 * Generic file edit widget styles. Not applicable to other widgets that
 * might hook into filefield (say, a widget with an image preview).
 */

.filefield-generic-edit .filefield-icon {
  float: left;
  margin-right: 0.7em;
  margin-top: 0.3em;
}

.filefield-generic-edit-description {
  margin-right: 6em;
}

/* The text field is made unnecessarily long by node.css - shorten it */
.filefield-generic-edit .form-text {
  width: 100%;
}
.filefield-generic-edit .description {
  white-space: normal;
  margin-bottom: 0;
  overflow: auto; /* indent on line wraps, don't float around the icon */
}

/* End widget form styles */

File

filefield.css
View source
  1. /**
  2. * Overall styles
  3. */
  4. .filefield-icon img {
  5. display: inline;
  6. }
  7. /**
  8. * Clear the filefield-icon float, or any other floats
  9. * that custom widgets might have inserted but not cleared.
  10. * Stolen from "How To Clear Floats Without Structural Markup",
  11. * http://www.positioniseverything.net/easyclearing.html
  12. */
  13. .filefield-item:after, .filefield-file-edit:after {
  14. content: "";
  15. display: block;
  16. height: 0;
  17. clear: both;
  18. visibility: hidden;
  19. }
  20. /* Hides from IE-mac \*/
  21. * html .filefield-item, .filefield-file-edit {height: 1%;}
  22. /* End hide from IE-mac */
  23. /* End overall styles */
  24. /**
  25. * Formatter styles
  26. */
  27. .filefield-item .filefield-icon {
  28. float: left;
  29. margin-right: 0.4em;
  30. }
  31. /* End formatter styles */
  32. /**
  33. * General widget form styles (applicable to all widgets)
  34. */
  35. .filefield-file-edit-flags {
  36. float: right;
  37. text-align: right;
  38. margin-bottom: -4px; /* The "List" checkbox has too much bottom margin */
  39. }
  40. .filefield-file-edit-widget {
  41. width: 90%;
  42. }
  43. /* Only applies to single-value fields, for which we provide our own table. */
  44. .filefield-file-container-table {
  45. width: 90%;
  46. margin-top: 3px;
  47. margin-bottom: 2px;
  48. }
  49. .filefield-file-upload {
  50. margin-bottom: 5px;
  51. }
  52. .filefield-js-error {
  53. /* For some reason, the JS error message doesn't wrap by default. */
  54. white-space: normal;
  55. }
  56. /* End general widget form styles */
  57. /**
  58. * Generic file edit widget styles. Not applicable to other widgets that
  59. * might hook into filefield (say, a widget with an image preview).
  60. */
  61. .filefield-generic-edit .filefield-icon {
  62. float: left;
  63. margin-right: 0.7em;
  64. margin-top: 0.3em;
  65. }
  66. .filefield-generic-edit-description {
  67. margin-right: 6em;
  68. }
  69. /* The text field is made unnecessarily long by node.css - shorten it */
  70. .filefield-generic-edit .form-text {
  71. width: 100%;
  72. }
  73. .filefield-generic-edit .description {
  74. white-space: normal;
  75. margin-bottom: 0;
  76. overflow: auto; /* indent on line wraps, don't float around the icon */
  77. }
  78. /* End widget form styles */