Base de code pour une application electron a base d'angular.

app.component.scss 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #container {
  2. display: flex;
  3. position: relative;
  4. flex-grow: 1;
  5. height: 100%;
  6. .background-container {
  7. top: 0;
  8. left: 0;
  9. display: block;
  10. width: 100%;
  11. height: 100%;
  12. position: fixed;
  13. z-index: -1;
  14. .preset {
  15. background-image: url('/assets/preset-light.png');
  16. background-size: cover;
  17. background-position: center center;
  18. background-repeat: no-repeat;
  19. width: 100%;
  20. height: 100%;
  21. position: absolute;
  22. z-index: 2;
  23. }
  24. .noise {
  25. position: absolute;
  26. width: 100%;
  27. height: 100%;
  28. background: url('/assets/noise.png');
  29. z-index: 2;
  30. }
  31. }
  32. >div {
  33. display: flex;
  34. flex-wrap: nowrap;
  35. position: relative;
  36. flex: 1 1 0%;
  37. >.content {
  38. position: relative;
  39. flex-grow: 1;
  40. flex-shrink: 0;
  41. display: flex;
  42. >div {
  43. display: flex;
  44. flex: 1 1 0%;
  45. flex-direction: column;
  46. >.title {
  47. background-color: rgba(0, 0, 0, 0.15);
  48. &>div {
  49. position: relative;
  50. color: rgb(255, 255, 255);
  51. height: 48px;
  52. display: flex;
  53. align-items: center;
  54. font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  55. font-size: 15px;
  56. text-transform: uppercase;
  57. padding: 0px 24px;
  58. overflow: hidden;
  59. cursor: default;
  60. user-select: none;
  61. }
  62. }
  63. >.content {
  64. display: flex;
  65. flex: 1 1 0%;
  66. flex-direction: column;
  67. height: 500px; // background-image: url("/assets/christian-holzinger-755549-unsplash.jpg");
  68. // background-size: cover;
  69. }
  70. }
  71. }
  72. }
  73. }