Advertisement
rasyid03

stylescss go pert6

Nov 30th, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. /**
  2. *Faris Rasyid
  3. *50421483
  4. *2IA22
  5. */
  6.  
  7. import '@polymer/polymer/polymer-element.js';
  8.  
  9. const $_documentContainer = document.createElement('template');
  10. $_documentContainer.innerHTML = `<dom-module id="shared-styles">
  11. <template>
  12. <style>
  13. * {box-sizing: border-box}
  14.  
  15. /* Add padding to containers */
  16. .container {
  17. padding: 16px;
  18. }
  19.  
  20. /* Full-width input fields */
  21. input[type=text], input[type=password] {
  22. width: 100%;
  23. padding: 15px;
  24. margin: 5px 0 22px 0;
  25. display: inline-block;
  26. border: none;
  27. background: #f1f1f1;
  28. }
  29.  
  30. input[type=text]:focus, input[type=password]:focus {
  31. background-color: #ddd;
  32. outline: none;
  33. }
  34.  
  35. /* Overwrite default styles of hr */
  36. hr {
  37. border: 1px solid #f1f1f1;
  38. margin-bottom: 25px;
  39. }
  40.  
  41. /* Set a style for the submit/register button */
  42. .registerbtn {
  43. background-color: #04AA6D;
  44. color: white;
  45. padding: 16px 20px;
  46. margin: 8px 0;
  47. border: none;
  48. cursor: pointer;
  49. width: 100%;
  50. opacity: 0.9;
  51. }
  52.  
  53. .registerbtn:hover {
  54. opacity:1;
  55. }
  56.  
  57. /* Add a blue text color to links */
  58. a {
  59. color: dodgerblue;
  60. }
  61.  
  62. /* Set a grey background color and center the text of the "sign in" section */
  63. .signin {
  64. background-color: #f1f1f1;
  65. text-align: center;
  66. }
  67. </style>
  68.  
  69. </template>
  70. </dom-module>`;
  71.  
  72. document.head.appendChild($_documentContainer.content);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement