crowi.scss 6.4 KB

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