crowi.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. // import crowi variable
  2. @import 'utilities';
  3. // import bootstrap
  4. @import 'bootstrap';
  5. // crowi component
  6. @import 'layout';
  7. @import 'page';
  8. @import 'page_list';
  9. @import 'form';
  10. @import 'wiki';
  11. @import 'admin';
  12. @import 'comment';
  13. @import 'user';
  14. @import 'portal';
  15. @import 'search';
  16. ul {
  17. padding-left: 18px;
  18. }
  19. .meta {
  20. margin-top: 32px;
  21. padding: 16px;
  22. color: #666;
  23. border-top: solid 1px #ccc;
  24. background: #f0f0f0;
  25. font-size: 0.95em;
  26. color: #888;
  27. .picture {
  28. width: 16px;
  29. height: 16px;
  30. }
  31. }
  32. .help-block {
  33. font-size: .9em;
  34. }
  35. header nav ul img {
  36. vertical-align: middle;
  37. }
  38. footer, aside {
  39. h4:first-child, h3:first-child {
  40. margin-top: 0;
  41. }
  42. h4 {
  43. font-size: 1.1em;
  44. }
  45. }
  46. .form-element {
  47. margin-bottom: 1em;
  48. }
  49. footer {
  50. h4,
  51. h3 {
  52. margin-bottom: 0.5em;
  53. font-weight: normal;
  54. &:first-child {
  55. margin-top: 0;
  56. }
  57. }
  58. p {
  59. margin: 0.3em 0 0.5em 0;
  60. &:first-child {
  61. margin-top: 0;
  62. }
  63. }
  64. }
  65. .modal-backdrop {
  66. z-index: 1060;
  67. }
  68. .modal {
  69. z-index: 1061;
  70. p {
  71. font-size: 1em;
  72. }
  73. h3, h4 {
  74. font-size: 18px;
  75. margin: 0;
  76. }
  77. }
  78. .modal-body.alert {
  79. margin-bottom: 0;
  80. border-radius: 0;
  81. }
  82. .modal.create-page {
  83. .modal-body {
  84. h3, h4 {
  85. margin-bottom: 10px;
  86. }
  87. form {
  88. input.form-control {
  89. border: none;
  90. box-shadow: none;
  91. border-bottom: dotted 1px #444;
  92. border-radius: 0;
  93. padding: 6px;
  94. height: 34px;
  95. font-weight: bold;
  96. background: #f0f0f0;
  97. &:focus {
  98. background: #ddd;
  99. }
  100. }
  101. .page-name-addons {
  102. position: absolute;
  103. top: 7px;
  104. left: 27px;
  105. }
  106. .page-today-prefix {
  107. display: inline-block;
  108. }
  109. .page-today-input1 {
  110. width: 60px;
  111. padding-left: 2px;
  112. padding-right: 2px;
  113. display: inline-block;
  114. }
  115. .page-today-suffix {
  116. display: inline-block;
  117. }
  118. .page-today-input2 {
  119. width: 100%;
  120. display: inline-block;
  121. }
  122. }
  123. }
  124. }
  125. .popular-page-high {
  126. color: #e80000;
  127. font-size: 1.1em;
  128. font-weight: bold;
  129. }
  130. .popular-page-mid {
  131. color: #e47800;
  132. font-weight: bold;
  133. }
  134. .popular-page-low {
  135. color: #ab7c7c;
  136. }
  137. // {{{ add badge variation
  138. .badge-default {
  139. @include label-variant($label-default-bg);
  140. }
  141. .badge-primary {
  142. @include label-variant($label-primary-bg);
  143. }
  144. .badge-success {
  145. @include label-variant($label-success-bg);
  146. }
  147. .badge-info {
  148. @include label-variant($label-info-bg);
  149. }
  150. .badge-warning {
  151. @include label-variant($label-warning-bg);
  152. }
  153. .badge-danger {
  154. @include label-variant($label-danger-bg);
  155. }
  156. // }}}
  157. .dropdown-menu {
  158. .dropdown-button {
  159. padding: 3px 20px;
  160. }
  161. }
  162. .notif {
  163. a {
  164. }
  165. .badge {
  166. position: absolute;
  167. top: 6px;
  168. right: 1px;
  169. padding: 3px 6px;
  170. font-size: 11px;
  171. font-weight: normal;
  172. }
  173. }
  174. .dropdown-menu {
  175. li {
  176. a {
  177. padding: 5px 20px;
  178. }
  179. }
  180. }
  181. // user picture
  182. .picture {
  183. // 通常サイズ
  184. width: 24px;
  185. height: 24px;
  186. // size list
  187. &.picture-lg {
  188. width: 48px;
  189. height: 48px;
  190. }
  191. &.picture-sm {
  192. width: 16px;
  193. height: 16px;
  194. }
  195. &.picture-xs {
  196. width: 12px;
  197. height: 12px;
  198. }
  199. // design option
  200. &.picture-sq {
  201. border-radius: 2px;
  202. border: solid 1px #ccc;
  203. }
  204. &.picture-rounded {
  205. border-radius: 50%;
  206. box-shadow: 0 0 2px rgba(0,0,0,.3);
  207. }
  208. }
  209. .highlighted {
  210. color: #333;
  211. background-color: rgba(255,255,140,0.5);
  212. border-radius: 3px;
  213. }
  214. // adjust
  215. // this is for diff2html. hide page name from diff view
  216. .d2h-file-header {
  217. display: none;
  218. }
  219. // components
  220. .flip-container { // {{{
  221. perspective: 1000;
  222. .flipper {
  223. .front, .back {
  224. -webkit-backface-visibility: hidden;
  225. backface-visibility: hidden;
  226. transition: 0.4s;
  227. -webkit-transform-style: preserve-3d;
  228. transform-style: preserve-3d;
  229. }
  230. .front {
  231. z-index: 2;
  232. }
  233. .back {
  234. }
  235. .back,
  236. &.to-flip .front {
  237. -webkit-transform: rotateY(180deg);
  238. transform: rotateY(180deg);
  239. }
  240. &.to-flip .back {
  241. -webkit-transform: rotateY(0);
  242. transform: rotateY(0);
  243. }
  244. }
  245. }
  246. // buttons
  247. .btn-primary {
  248. }
  249. $btn-google-color: rgb(204,89,71);
  250. .btn-google {
  251. @include button-variant(lighten($btn-google-color, 50%), $btn-google-color, darken($btn-google-color, 20%));
  252. }
  253. input.searching {
  254. background: #fff url(/images/loading_s.gif) right no-repeat;
  255. }
  256. .search-list {
  257. padding: 0;
  258. li {
  259. list-style: none;
  260. }
  261. .list-link {
  262. padding-bottom: 5px;
  263. a {
  264. display: block;
  265. word-break: break-all;
  266. font-weight: bold;
  267. text-decoration: none;
  268. span {
  269. font-weight: normal;
  270. }
  271. &:hover {
  272. background: #f0f0f0;
  273. color: #666;
  274. }
  275. }
  276. .search-description {
  277. font-size: .8em;
  278. color: #999;
  279. }
  280. }
  281. .next-link {
  282. a {
  283. display: block;
  284. text-align: center;
  285. }
  286. }
  287. }
  288. // notification
  289. .fk-notif {
  290. display: none;
  291. bottom: 0;
  292. left: 0;
  293. width: 100%;
  294. position: fixed;
  295. z-index: 1029;
  296. padding: 10px;
  297. box-shadow: -1px 0 3px 0px #666;
  298. font-weight: bold;
  299. transition: all .3s;
  300. &.fk-notif-danger {
  301. background: #b94a48;
  302. color: #fff;
  303. a {
  304. color: #f5ecf4;
  305. text-decoration: underline;
  306. &:hover {
  307. text-decoration: none;
  308. }
  309. }
  310. }
  311. &.fk-notif-warning {
  312. background: #fcf8e3;
  313. color: #8a6d3b;
  314. }
  315. }
  316. .on-edit .fk-notif {
  317. bottom: 50px;
  318. z-index: 1061;
  319. }
  320. // external-services
  321. .crowi {
  322. .github-link {
  323. background: #e5f6f8;
  324. padding: 1px;
  325. border-radius: 3px;
  326. display: inline-block;
  327. border: solid 1px #ccc;
  328. color: #555;
  329. text-decoration: none;
  330. &:hover {
  331. background: #afdadf;
  332. }
  333. }
  334. }
  335. .fullscreen-layer {
  336. position: fixed;
  337. top: 0;
  338. left: 0;
  339. width: 100%;
  340. height: 0;
  341. background: rgba(0, 0, 0, .5);
  342. z-index: 9999;
  343. opacity: 0;
  344. -webkit-transition: opacity .3s ease-out;
  345. -moz-transition: opacity .3s ease-out;
  346. transition: opacity .3s ease-out;
  347. & > * {
  348. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  349. }
  350. }
  351. .overlay-on {
  352. .container-fluid,
  353. .crowi-header {
  354. -webkit-filter: blur(5px);
  355. -moz-filter: blur(5px);
  356. filter: blur(5px);
  357. }
  358. .fullscreen-layer {
  359. opacity: 1;
  360. height: 100%;
  361. }
  362. }
  363. #presentation-container {
  364. position: absolute;
  365. top: 5%;
  366. left: 5%;
  367. width: 90%;
  368. height: 90%;
  369. background: #000;
  370. iframe {
  371. width: 100%;
  372. height: 100%;
  373. border: 0;
  374. }
  375. }