crowi.scss 6.5 KB

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