infobox.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .infobox {
  2. .panel-heading{
  3. background-color: @dim-gray;
  4. .panel-title{
  5. font-weight: 700;
  6. }
  7. }
  8. .header_url {
  9. white-space: nowrap;
  10. overflow: hidden;
  11. text-overflow: ellipsis;
  12. display: block;
  13. }
  14. p{
  15. font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important;
  16. font-style: italic;
  17. }
  18. img{
  19. max-height: "250px";
  20. }
  21. .btn{
  22. background-color: @dark-blue;
  23. border: none;
  24. a{
  25. color: white;
  26. margin: 5px;
  27. }
  28. }
  29. .infobox_part {
  30. margin-bottom: 20px;
  31. word-wrap: break-word;
  32. table-layout: fixed;
  33. }
  34. .infobox_part:last-child {
  35. margin-bottom: 0;
  36. }
  37. .infobox_toggle {
  38. width: 100%;
  39. text-align: center;
  40. margin-bottom: 0px;
  41. }
  42. // Shrink infobox size when toggle is off
  43. .infobox_checkbox ~ .infobox_body {
  44. max-height: 300px;
  45. overflow: hidden;
  46. }
  47. .infobox_checkbox:checked ~ .infobox_body {
  48. max-height: none;
  49. }
  50. // Show toggle button as down when infobox is shrunk
  51. .infobox_checkbox ~ .infobox_toggle .infobox_label_down {
  52. display: block;
  53. }
  54. .infobox_checkbox ~ .infobox_toggle .infobox_label_up {
  55. display: none;
  56. }
  57. // Show toggle button as up when infobox is expanded
  58. .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_up {
  59. display: block;
  60. }
  61. .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_down {
  62. display: none;
  63. }
  64. // Hide main image when toggle is off
  65. .infobox_checkbox ~ .infobox_body img.infobox_part {
  66. display: none;
  67. }
  68. .infobox_checkbox:checked ~ .infobox_body img.infobox_part {
  69. display: block;
  70. }
  71. }