You are here

formatter_suite.css in Formatter Suite 8

Style usage of the Formatter Suite's field formatters.

File

css/formatter_suite.css
View source
  1. /**
  2. * @file
  3. * Style usage of the Formatter Suite's field formatters.
  4. */
  5. /*-----------------------------------------------------------------------
  6. *
  7. * GeneralNumberWithBarIndicatorFormatter.
  8. *
  9. *-----------------------------------------------------------------------*/
  10. /*
  11. * Give the bar a thin outline to show its extent.
  12. */
  13. .formatter_suite-general-number-with-bar-indicator-outer {
  14. display: inline-block;
  15. border: 1px solid #ccc;
  16. }
  17. /*
  18. * Add margins on the left or right to put space between the value
  19. * and the bar.
  20. */
  21. .formatter_suite-general-number-with-bar-indicator-left {
  22. margin-left: 0.5em;
  23. }
  24. .formatter_suite-general-number-with-bar-indicator-right {
  25. margin-right: 0.5em;
  26. }
  27. /*
  28. * Insure the bar honors the bar width and doesn't go to a new line.
  29. */
  30. .formatter_suite-general-number-with-bar-indicator {
  31. display: inline-block;
  32. }
  33. /*-----------------------------------------------------------------------
  34. *
  35. * GeneralImageFormatter.
  36. *
  37. *-----------------------------------------------------------------------*/
  38. .formatter_suite-general-image {
  39. display: flex;
  40. align-items: center;
  41. flex-direction: column;
  42. }
  43. .formatter_suite-image-caption-title {
  44. font-weight: bold;
  45. flex-grow: 1;
  46. }
  47. /*-----------------------------------------------------------------------
  48. *
  49. * TextWithExpandCollapseButtonsFormatter.
  50. *
  51. *-----------------------------------------------------------------------*/
  52. /*
  53. * Make sure that text overflows are simply hidden.
  54. */
  55. .formatter_suite-text-with-expand-collapse-buttons .formatter_suite-text {
  56. overflow: hidden;
  57. }
  58. /*
  59. * Position buttons to the right after the text.
  60. */
  61. .formatter_suite-text-with-expand-collapse-buttons .formatter_suite-text-expand-button,
  62. .formatter_suite-text-with-expand-collapse-buttons .formatter_suite-text-collapse-button {
  63. clear: both;
  64. float: right;
  65. }
  66. /*-----------------------------------------------------------------------
  67. *
  68. * GeneralNumberWithBarIndicatorFormatter.
  69. *
  70. *-----------------------------------------------------------------------*/
  71. /*
  72. * Disable all styling on the indicator.
  73. */
  74. img.formatter_suite-general-number-with-bar-indicator {
  75. border: none !important;
  76. border-radius: 0 !important;
  77. padding: 0 !important;
  78. margin: 0 !important;
  79. box-shadow: none;
  80. }