style.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. @import url('https://fonts.gogleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
  2. /* Variables globales */
  3. :root {
  4. --ancho-menu: 250px;
  5. }
  6. /* Estilo general por defecto */
  7. * {
  8. margin: 0;
  9. padding: 0;
  10. box-sizing: border-box;
  11. font-family: 'Poppins', sans-serif;
  12. }
  13. /* Estilo del body */
  14. body {
  15. width: 100%;
  16. background: #E5E7EB;
  17. position: relative;
  18. display: flex;
  19. }
  20. /* Estilo del menú lateral */
  21. #menu {
  22. background: #E3DBFC;
  23. width: var(--ancho-menu); /* si cambia este valor puede afectar a otros calculos más abajo, por ejemplo el ancho de navigation */
  24. height: 100%;
  25. position: fixed;
  26. top: 0;
  27. left: 0;
  28. }
  29. #menu .logo {
  30. display: flex;
  31. align-items: center;
  32. color: #000;
  33. padding: 30px 0 0 30px;
  34. }
  35. #menu .logo img {
  36. width: 40px;
  37. margin-right: 15px;
  38. }
  39. #menu .items {
  40. margin-top: 40px;
  41. }
  42. #menu .items li {
  43. list-style: none;
  44. padding: 15px 0;
  45. transition: 0.3s ease;
  46. }
  47. #menu .items li:hover {
  48. background: #253047;
  49. cursor: pointer;
  50. }
  51. #menu .items li:nth-child(i) {
  52. border-left: 4px solid #fff;
  53. }
  54. #menu .items li i{
  55. color: rgb(134, 141, 151);
  56. width: 30px;
  57. height: 30px;
  58. line-height: 30px;
  59. text-align: center;
  60. font-size: 14px;
  61. margin: 0 5px 0 25px;
  62. }
  63. #menu .items li:hover i,
  64. #menu .items li:hover a {
  65. color: #F3F4F6;
  66. }
  67. #menu .items li a{
  68. text-decoration: none;
  69. color: rgb(134, 141, 151);
  70. font-weight: 300px;
  71. transition: 0.3s ease;
  72. }
  73. /* Estilo del contenedor principal */
  74. #interface {
  75. width: calc(100% - var(--ancho-menu)); /* el 200px es el ancho del menú. Si cambia este hay que cambiarlo aquí */
  76. margin-left: var(--ancho-menu); /* el 200px es el ancho del menú. Si cambia este hay que cambiarlo aquí */
  77. position: relative;
  78. }
  79. #interface .titulo-login {
  80. color: #2b2b2b;
  81. padding: 30px 30px 0 30px;
  82. font-size: 24px;
  83. font-weight: 700;
  84. }
  85. #interface .errornote {
  86. color: #2b2b2b;
  87. padding: 30px 30px 20px 30px;
  88. font-size: 15px;
  89. }
  90. /* Estilo de la barra de navegación */
  91. #interface .navigation {
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. background: #fff;
  96. padding: 20px 30px;
  97. border-bottom: 3px solid #E3DBFC;
  98. position: fixed;
  99. width: calc(100% - var(--ancho-menu)); /* el 200px es el ancho del menú. Si cambia este hay que cambiarlo aquí */
  100. }
  101. #interface .navigation .search{
  102. display: flex;
  103. justify-content: flex-start;
  104. align-items: center;
  105. padding: 10px 14px;
  106. border: 1px;
  107. border-radius: 4px;
  108. }
  109. #interface .navigation .search i{
  110. margin-right: 14px;
  111. }
  112. #interface .navigation .search input{
  113. border: 1px solid #E3DBFC;
  114. outline: none;
  115. font-size: 14px;
  116. }
  117. #interface .navigation .profile {
  118. display: flex;
  119. justify-content: flex-start;
  120. align-items: center;
  121. }
  122. #interface .navigation .profile i {
  123. margin-right: 20px;
  124. font-size: 19px;
  125. font-weight: 400;;
  126. }
  127. #interface .navigation .profile img {
  128. width: 30px;
  129. height: 30px;
  130. border-radius: 50%;
  131. border-width: 50%;
  132. }
  133. /* Estilo del formulario de inicio de sesión */
  134. #login-form {
  135. display: flex;
  136. justify-content: left;
  137. align-items: left;
  138. flex-direction: column;
  139. padding: 30px 30px 0 30px;
  140. }
  141. #login-form .usuario-login {
  142. display: flex;
  143. color: #2b2b2b;
  144. font-size: 20px;
  145. font-weight: 400;
  146. }
  147. #login-form .password-login {
  148. display: flex;
  149. color: #2b2b2b;
  150. font-size: 20px;
  151. font-weight: 400;
  152. }
  153. #login-form .usuario {
  154. display: flex;
  155. justify-content: flex-start;
  156. align-items: center;
  157. padding: 0 0 10px 20px ;
  158. width: 100%;
  159. }
  160. #login-form .input-usuario input {
  161. border: 1px solid #E3DBFC;
  162. outline: none;
  163. font-size: 14px;
  164. padding: 0 0 10px 20px ;
  165. width: 100%;
  166. border-radius: 5px;
  167. }
  168. #login-form .input-password input {
  169. border: 1px solid #E3DBFC;
  170. outline: none;
  171. font-size: 14px;
  172. padding: 0 0 10px 20px ;
  173. width: 100%;
  174. border-radius: 5px;
  175. }
  176. #login-form .password {
  177. display: flex;
  178. justify-content: flex-start;
  179. align-items: center;
  180. padding: 0 0 10px 20px ;
  181. width: 100%;
  182. }
  183. #login-form .input-usuario {
  184. justify-content: flex-start;
  185. align-items: center;
  186. padding: 0 0 0 20px ;
  187. width: 100%;
  188. }
  189. #login-form .input-password {
  190. justify-content: flex-start;
  191. align-items: center;
  192. padding: 0 0 0 20px ;
  193. width: 100%;
  194. }
  195. #login-form .text-center {
  196. display: flex;
  197. color: #2b2b2b;
  198. font-size: 20px;
  199. font-weight: 400;
  200. padding: 0 0 5px 10px;
  201. }
  202. #login-form .boton-primario {
  203. display: flex;
  204. justify-content: center;
  205. align-items: center;
  206. background: #05e781;
  207. color: #fff;
  208. font-size: 20px;
  209. font-weight: 400;
  210. padding: 10px 10px;
  211. border-radius: 10px;
  212. margin-top: 30px;
  213. }
  214. /* Estilo del contenedor del menú burger para mostrar-ocultar el menú lateral */
  215. .n1 {
  216. display: flex;
  217. justify-content: flex-start;
  218. align-items: center;
  219. }
  220. /* Estilo del botón de menú burger */
  221. #menu-btn {
  222. display: none;
  223. color: #2b2b2b;
  224. font-size: 20px;
  225. cursor: pointer;
  226. margin-right: 20px;
  227. }
  228. /* Estilo del título de las páginas */
  229. .i-name {
  230. color: #444a53;
  231. padding: 30px 30px 0 30px;
  232. font-size: 24px;
  233. font-weight: 700;
  234. margin-top: 70px;
  235. }
  236. /* Estilo de las tarjetas mostradas en el interfaz */
  237. .values {
  238. display: flex;
  239. padding: 30px 40px 0 30px;
  240. justify-content: space-between;
  241. align-items: center;
  242. flex-wrap: wrap;
  243. }
  244. .values .val-box {
  245. background: #a1ccdf;
  246. width: 235px;
  247. padding: 16px 20px;
  248. border-radius: 5px;
  249. display: flex;
  250. justify-content: flex-start;
  251. align-items: center;
  252. }
  253. .values .val-box i {
  254. font-size: 50px;
  255. width: 60px;
  256. height: 60px;
  257. line-height: 30px;
  258. border-radius: 10%;
  259. text-align: center;
  260. color: #fff;
  261. margin-right: 15px;
  262. }
  263. .values .val-box:nth-child(1) i {
  264. background: #E3DBFC;
  265. }
  266. .values .val-box:nth-child(2) i {
  267. background: #6249ac;
  268. }
  269. .values .val-box:nth-child(3) i {
  270. background: #b4a3e9;
  271. }
  272. .values .val-box:nth-child(4) i{
  273. background: #615780;
  274. }
  275. .values .val-box h3 {
  276. font-size: 18px;
  277. font-weight: 600;
  278. }
  279. .values .val-box span {
  280. font-size: 15px;
  281. color: #828997;
  282. }
  283. .values .val-cuenta {
  284. background: #ade78c;
  285. width: 235px;
  286. padding: 16px 20px;
  287. border-radius: 5px;
  288. display: flex;
  289. justify-content: flex-start;
  290. align-items: center;
  291. }
  292. .values .val-cuenta i {
  293. font-size: 50px;
  294. width: 60px;
  295. height: 60px;
  296. line-height: 30px;
  297. border-radius: 10%;
  298. text-align: center;
  299. color: #fff;
  300. margin-right: 15px;
  301. }
  302. .values .val-cuenta:nth-child(1) i {
  303. background: #E3DBFC;
  304. }
  305. .values .val-cuenta:nth-child(2) i {
  306. background: #6249ac;
  307. }
  308. .values .val-cuenta:nth-child(3) i {
  309. background: #b4a3e9;
  310. }
  311. .values .val-cuenta:nth-child(4) i{
  312. background: #615780;
  313. }
  314. .values .val-cuenta h3 {
  315. font-size: 18px;
  316. font-weight: 600;
  317. }
  318. .values .val-cuenta span {
  319. font-size: 15px;
  320. color: #828997;
  321. }
  322. /* Estilo del panel principal donde irá el contenido */
  323. .board{
  324. width: 94%;
  325. margin: 30px 0 30px 30px;
  326. overflow: auto;
  327. background: #fff;
  328. border-radius: 8px;
  329. }
  330. .board img {
  331. width: 45px;
  332. height: 45px;
  333. object-fit: cover;
  334. border-radius: 50%;
  335. margin-right: 15px;
  336. }
  337. .board h5 {
  338. font-size: 14px;
  339. font-weight: 600;
  340. }
  341. .board p {
  342. font-weight: 400;
  343. font-size: 13px;
  344. color: #828997;
  345. }
  346. .board .people {
  347. display: flex;
  348. justify-content: flex-start;
  349. align-items: center;
  350. text-align: start;
  351. }
  352. /* Estilo del contenedor para recoger los botones */
  353. .botones {
  354. width: 94%;
  355. margin: 30px 0px 30px 0px;
  356. overflow: auto;
  357. background: #fff;
  358. border-radius: 8px;
  359. }
  360. /* Estilo de la tabla o tablas que van el el board */
  361. table {
  362. border-collapse: collapse;
  363. }
  364. tr {
  365. border-bottom: 1px solid #fff;
  366. }
  367. thead {
  368. font-size: 14px;
  369. text-transform: uppercase;
  370. font-weight: 400;
  371. background: #dddce2;
  372. text-align: start;
  373. padding: 15px;
  374. }
  375. thead tr {
  376. height: 50px;
  377. }
  378. tbody tr td {
  379. padding: 10px 15px;
  380. }
  381. tbody .fila-impar {
  382. background-color: #ccceca;
  383. }
  384. tbody .fila-par {
  385. background-color: #fff;
  386. }
  387. .active p {
  388. background: #d7fada;
  389. padding: 2px 10px;
  390. display: inline-block;
  391. border-radius: 40px;
  392. color: #2b2b2b;
  393. }
  394. .edit a {
  395. text-decoration: none;
  396. font-size: 14px;
  397. color: #554cd1;
  398. font-weight: 600;
  399. }
  400. /* Control de los tamaños en modo responsive */
  401. @media (max-width: 769px) {
  402. #menu {
  403. width: 170px;
  404. position: fixed;
  405. left: -170px;
  406. transition: 0.3s ease;
  407. }
  408. #menu.active {
  409. left: 0;
  410. }
  411. #menu-btn {
  412. display: initial;
  413. }
  414. #interface {
  415. width: 100%;
  416. margin-left: 0px;
  417. display: inline-block;
  418. transition: 0.3s ease;
  419. }
  420. #menu.active~#interface {
  421. width: calc(100% - 170px);
  422. margin-left: 170px;
  423. transition: 0.3s ease;
  424. }
  425. #interface .navigation {
  426. width: 100%;
  427. }
  428. .values {
  429. padding: 30px 40px 0 30px;
  430. justify-content: flex-start;
  431. }
  432. .values .val-box {
  433. padding: 16px 20px;
  434. margin: 10px 20px 10px 0;
  435. }
  436. .values .val-cuenta {
  437. padding: 16px 20px;
  438. margin: 10px 20px 10px 0;
  439. }
  440. .board {
  441. width: 92%;
  442. padding: 0;
  443. overflow-x: auto;
  444. }
  445. table{
  446. width: 100%;
  447. border-collapse: collapse;
  448. }
  449. }
  450. @media (max-width: 477px) {
  451. #interface .navigation {
  452. padding: 15px;
  453. }
  454. /* esto de aquí no se si hace algo */
  455. #interface .navigation .search input {
  456. width: 150px;
  457. }
  458. .i-name {
  459. padding: 30px 15px 0 15px;
  460. }
  461. .values {
  462. padding: 15px 15px 0 15px;
  463. }
  464. .values .val-box {
  465. width: 100%;
  466. margin: 8px
  467. }
  468. .values .val-cuenta {
  469. width: 100%;
  470. margin: 8px
  471. }
  472. #menu-toggle {
  473. display: none;
  474. }
  475. }
  476. /* Botón desplegable (usado para el menú de usuario) */
  477. .dropbtn {
  478. background-color: #fff;
  479. color: white;
  480. padding: 16px;
  481. font-size: 16px;
  482. border: none;
  483. cursor: pointer;
  484. }
  485. .dropdown {
  486. position: relative;
  487. display: inline-block;
  488. }
  489. .dropdown-content {
  490. display: none;
  491. position: absolute;
  492. background-color: #f9f9f9;
  493. min-width: 160px;
  494. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  495. z-index: 1;
  496. }
  497. .dropdown-content a {
  498. color: black;
  499. padding: 12px 16px;
  500. text-decoration: none;
  501. display: block;
  502. text-align: left;
  503. }
  504. .dropdown-content a:hover {background-color: #f1f1f1;}
  505. .dropdown:hover .dropdown-content {
  506. display: block;
  507. }
  508. .dropdown:hover .dropbtn {
  509. background-color: #fff;
  510. }
  511. .boton-salir {
  512. background: none!important;
  513. border: none;
  514. padding: 0!important;
  515. /*optional*/
  516. font-family: arial, sans-serif;
  517. /*input has OS specific font-family*/
  518. /*color: #069;
  519. text-decoration: underline;*/
  520. cursor: pointer;
  521. font-size: 16px;
  522. }
  523. /* Estilo del contenedor para albergar un form */
  524. .div-form {
  525. width: 60%;
  526. padding: 90px 0 0 0;
  527. }