crowi.scss 7.0 KB

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