You are here

orgchart-theme.css in Organigrams 8.2

/* Item styling. */
.orgchart .nodecontent {
  width: 150px;
  min-height: 50px;
  background-color: #ffffff;
  padding: 10px;
  margin: 20px;
  border-radius: 0;
  border: 1px solid #000000;
  color: #000000;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 18px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

/* Image styling. */
.orgchart .nodecontent img {
  width: 50px;
  margin: auto;
  margin-bottom: 10px;
}

/* Link styling. */
.orgchart a.nodecontent {
  background-color: #eeeeee;
}

.orgchart a.nodecontent:hover {
  background-color: #dddddd;
}

/* Line color. */
.orgchart li::before,
.orgchart li::after,
.orgchart .nodecontent::after,
.orgchart .nodecontent::before,
.orgchart ul.vertical::before {
  border-color: #000000;
}

/* Line radius. */
.orgchart li:first-child::before,
.orgchart .nodeassists > li:nth-child(odd)::before,
.orgchart ul.vertical > li:first-child::before {
  border-top-left-radius: 0;
}

.orgchart li:last-child::before,
.orgchart .nodeassists > li:nth-child(even)::before {
  border-top-right-radius: 0;
}

.orgchart ul.vertical > li:last-child::before {
  border-bottom-left-radius: 0;
}

.orgchart ul.vertical::before {
  border-bottom-right-radius: 0;
}

/* Line width. */
.orgchart li:not(:only-child)::before,
.orgchart ul.vertical > li:first-child::before,
.orgchart ul.vertical > li > .nodecontent::before {
  border-top-width: 1px;
}

.orgchart li:last-child::before,
.orgchart .nodeassists > li:nth-child(even)::before,
.orgchart .nodeassists > li:nth-child(odd)::after,
.orgchart ul.vertical::before {
  border-right-width: 1px;
}

.orgchart .nodeassists > li:nth-child(odd)::after {
  right: 0;
}

.orgchart ul.vertical > li:last-child::before,
.orgchart ul.vertical::before {
  border-bottom-width: 1px;
}

.orgchart li:first-child::before,
.orgchart .nodecontent::after,
.orgchart .nodecontent::before,
.orgchart .nodeassists > li:nth-child(odd)::before,
.orgchart ul.vertical > li::before,
.orgchart ul.vertical > li:first-child::before {
  border-left-width: 1px;
}

/* Corrections when adjusting border sizes. */
.orgchart ul.vertical::before {
  top: -9px;
  left: calc(50% - 10px);
}

.orgchart .nodecontent:after,
.orgchart .nodeassists > li > .nodecontent::after {
  bottom: -21px;
}

.orgchart .nodecontent::before {
  top: -21px;
}

.orgchart ul.vertical > li > .nodecontent::before {
  width: 9px;
  left: -10px;
}

File

css/orgchart-theme.css
View source
  1. /* Item styling. */
  2. .orgchart .nodecontent {
  3. width: 150px;
  4. min-height: 50px;
  5. background-color: #ffffff;
  6. padding: 10px;
  7. margin: 20px;
  8. border-radius: 0;
  9. border: 1px solid #000000;
  10. color: #000000;
  11. text-align: center;
  12. font-family: Arial, Helvetica, sans-serif;
  13. font-size: 14px;
  14. line-height: 18px;
  15. display: flex;
  16. justify-content: center;
  17. align-content: center;
  18. flex-direction: column;
  19. }
  20. /* Image styling. */
  21. .orgchart .nodecontent img {
  22. width: 50px;
  23. margin: auto;
  24. margin-bottom: 10px;
  25. }
  26. /* Link styling. */
  27. .orgchart a.nodecontent {
  28. background-color: #eeeeee;
  29. }
  30. .orgchart a.nodecontent:hover {
  31. background-color: #dddddd;
  32. }
  33. /* Line color. */
  34. .orgchart li::before,
  35. .orgchart li::after,
  36. .orgchart .nodecontent::after,
  37. .orgchart .nodecontent::before,
  38. .orgchart ul.vertical::before {
  39. border-color: #000000;
  40. }
  41. /* Line radius. */
  42. .orgchart li:first-child::before,
  43. .orgchart .nodeassists > li:nth-child(odd)::before,
  44. .orgchart ul.vertical > li:first-child::before {
  45. border-top-left-radius: 0;
  46. }
  47. .orgchart li:last-child::before,
  48. .orgchart .nodeassists > li:nth-child(even)::before {
  49. border-top-right-radius: 0;
  50. }
  51. .orgchart ul.vertical > li:last-child::before {
  52. border-bottom-left-radius: 0;
  53. }
  54. .orgchart ul.vertical::before {
  55. border-bottom-right-radius: 0;
  56. }
  57. /* Line width. */
  58. .orgchart li:not(:only-child)::before,
  59. .orgchart ul.vertical > li:first-child::before,
  60. .orgchart ul.vertical > li > .nodecontent::before {
  61. border-top-width: 1px;
  62. }
  63. .orgchart li:last-child::before,
  64. .orgchart .nodeassists > li:nth-child(even)::before,
  65. .orgchart .nodeassists > li:nth-child(odd)::after,
  66. .orgchart ul.vertical::before {
  67. border-right-width: 1px;
  68. }
  69. .orgchart .nodeassists > li:nth-child(odd)::after {
  70. right: 0;
  71. }
  72. .orgchart ul.vertical > li:last-child::before,
  73. .orgchart ul.vertical::before {
  74. border-bottom-width: 1px;
  75. }
  76. .orgchart li:first-child::before,
  77. .orgchart .nodecontent::after,
  78. .orgchart .nodecontent::before,
  79. .orgchart .nodeassists > li:nth-child(odd)::before,
  80. .orgchart ul.vertical > li::before,
  81. .orgchart ul.vertical > li:first-child::before {
  82. border-left-width: 1px;
  83. }
  84. /* Corrections when adjusting border sizes. */
  85. .orgchart ul.vertical::before {
  86. top: -9px;
  87. left: calc(50% - 10px);
  88. }
  89. .orgchart .nodecontent:after,
  90. .orgchart .nodeassists > li > .nodecontent::after {
  91. bottom: -21px;
  92. }
  93. .orgchart .nodecontent::before {
  94. top: -21px;
  95. }
  96. .orgchart ul.vertical > li > .nodecontent::before {
  97. width: 9px;
  98. left: -10px;
  99. }