TestingFrenzy

player.css

May 28th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.08 KB | None | 0 0
  1.  
  2. /* Body Font */
  3. body {
  4. background-color: #212529;
  5. font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  6. }
  7. /* END body font */
  8.  
  9. /* Navbar */
  10.  
  11. .navbar {
  12. border-bottom: 3px solid #deff34;
  13. background-color: #DEFF34;
  14. }
  15.  
  16. .navbar-brand { /* font will be bold */
  17. font-weight: bold;
  18. color: #000000;
  19. padding-left: 2%;
  20. }
  21.  
  22. .navbar-brand:hover {
  23. color: #6F7015;
  24. }
  25.  
  26. .navbar-nav .nav-link { /* the color of the font is white [#fff] */
  27. color: #000000;
  28.  
  29. }
  30.  
  31. .navbar-nav .nav-link:hover { /* on hover the color will be light yellow [#deff34] */
  32. color: #6F7015;
  33. }
  34.  
  35. @media (min-width: 768px) {
  36. /* Navbar */
  37. .navbar-nav .nav-link {
  38. font-size: 16px; /* Aumenta la dimensione del font per i link nella navbar */
  39. }
  40. }
  41. /* END Navbar */
  42.  
  43.  
  44. /* Where he played */
  45. .club-transfers {
  46. width: 80%; /* Larghezza del div */
  47. margin: 0 auto; /* Centra il div orizzontalmente e mantiene il margine verticale a 0 */
  48. display: block; /* Assicura che il div sia trattato come un blocco */
  49. }
  50.  
  51. #clubPlayedContainer {
  52. display: flex;
  53. flex-wrap: wrap; /* Permette agli elementi di andare a capo quando non c'è più spazio */
  54. align-items: stretch; /* Stira tutti gli elementi figli per abbinare l'altezza del più alto */
  55. justify-content: space-around; /* Centra gli elementi orizzontalmente all'interno del contenitore */
  56. gap: 18px;
  57. }
  58.  
  59. .clubInfo {
  60.  
  61. padding: 10px;
  62. margin-bottom: 10px;
  63. cursor: pointer;
  64. margin-right: 10px; /* Aggiunge spazio tra gli elementi */
  65. width: 30%; /* Larghezza iniziale come percentuale del contenitore padre */
  66. display: flex;
  67. flex-direction: column;
  68. justify-content: center;
  69. align-items: center;
  70. text-align: center;
  71. overflow: hidden; /* Nasconde i contenuti che superano le dimensioni del div */
  72. text-decoration: none;
  73. color: black;
  74. border: 2px solid #deff34;
  75. background-color: #dddddd;
  76. }
  77.  
  78. /* Media query per schermi medi (es. tablet) */
  79. @media (max-width: 1024px) {
  80. .clubInfo {
  81. width: 45%; /* Aumenta la larghezza su schermi più piccoli per migliore leggibilità */
  82. }
  83. }
  84.  
  85. /* Media query per schermi piccoli (es. telefoni cellulari) */
  86. @media (max-width: 768px) {
  87. .clubInfo {
  88. width: 45%; /* Larghezza maggiore per occupare più spazio disponibile */
  89.  
  90. }
  91. }
  92.  
  93. .clubInfo:hover {
  94. background-color: #deff34;
  95. }
  96.  
  97. .clubInfo a {
  98. color: #000; /* Imposta il colore del testo a nero, o qualsiasi altro colore che preferisci */
  99. text-decoration: none; /* Opzionale: rimuove il sottolineato dai link */
  100. }
  101.  
  102. .club-name {
  103. font-weight: bold; /* Rende il testo in grassetto */
  104. font-size: 20px; /* Imposta la dimensione del font a 20px */
  105. text-align: center;
  106. }
  107.  
  108. .club-date {
  109. font-size: 12px; /* Imposta la dimensione del font a 12px */
  110. text-align: center;
  111. padding-top: 20px;
  112. }
  113. /* END Where he played */
  114.  
  115. /* Player Data */
  116.  
  117. .player-container {
  118. width: 100%; /* Usa l'intera larghezza disponibile */
  119. max-width: 35%; /* Imposta un massimo per la larghezza del container se necessario */
  120. margin: 0 auto; /* Auto-margins centrano il blocco orizzontalmente */
  121. border: 2px solid #000;
  122. padding: 10px;
  123. box-sizing: border-box;
  124. margin-top: 20px;
  125. margin-bottom: 20px;
  126. background-color: #dddddd;
  127. border-radius: 15px;
  128. }
  129.  
  130. .player-container h2 {
  131. font-size: 24px;
  132. color: #333;
  133. margin-bottom: 10px;
  134. }
  135.  
  136.  
  137. .player-info {
  138. display: flex;
  139. flex-direction: column; /* Cambiato da 'flex' a 'column' per impilare gli elementi verticalmente */
  140. align-items: center; /* Centra gli elementi quando sono impilati */
  141. }
  142.  
  143. .player-container img {
  144. display: block;
  145. max-width: 150px;
  146. width: 100%; /* Assicura la responsività */
  147. height: auto;
  148. margin-bottom: 10px; /* Distanza tra l'immagine e il nome */
  149. }
  150.  
  151. .player-name {
  152. font-size: 24px;
  153. color: #000;
  154. text-align: center; /* Centra il nome sotto l'immagine */
  155. }
  156.  
  157. /* Media query per schermi più piccoli */
  158. @media (max-width: 768px) {
  159. .player-name {
  160. font-size: 20px; /* Opzionalmente riduci la dimensione del font per adattarlo meglio */
  161. }
  162. }
  163. /* END Player Data */
  164.  
  165. /* Divider */
  166.  
  167. .custom-divider {
  168. width: 80%;
  169. height: 2px; /* Altezza della linea */
  170. background-color: #deff34; /* Colore della linea */
  171. margin: 25px auto; /* Centra la linea orizzontalmente e aggiunge spazio sopra e sotto */
  172. }
  173.  
  174. /* END Divider */
  175.  
  176. /* Football Career heading*/
  177.  
  178. .football-career-heading {
  179. text-align: left; /* Centra il testo all'interno del div */
  180. margin: 20px auto; /* Aggiunge spazio sopra e sotto il titolo e centra orizzontalmente */
  181. width: 75%; /* Imposta la larghezza al 80% del suo contenitore */
  182. font-size: 24px; /* Imposta la dimensione del font */
  183. color: #dddddd; /* Imposta il colore del testo */
  184. font-weight: bold; /* Rende il testo in grassetto */
  185. }
  186.  
  187. /* END Football Career heading*/
  188.  
  189. /*test*/
  190.  
  191. .w-80 {
  192. width: 80%;
  193. }
  194. /* Stili base per i bottoni */
  195. .btn {
  196. background-color: #dddddd; /* Colore di sfondo base */
  197. color: #212529; /* Colore del testo */
  198. border: none; /* Rimuove il bordo */
  199. margin: 15px 0; /* Margine verticale */
  200. transition: all 0.3s ease; /* Transizione fluida per le proprietà cambiate */
  201. }
  202.  
  203. .btn:hover {
  204. background-color: #6F7015; /* Colore di sfondo al passaggio del mouse */
  205. color: #212529; /* Colore del testo al passaggio del mouse */
  206. transform: scale(1.05); /* Effetto di ingrandimento leggero */
  207. box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombra leggera */
  208. }
  209.  
  210. .btn.active, .btn:active {
  211. background-color: #deff34; /* Colore di sfondo quando il bottone è attivo */
  212. color: #212529; /* Colore del testo quando il bottone è attivo */
  213. box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ombra più marcata */
  214. transform: scale(1.1); /* Leggero ingrandimento */
  215. }
  216.  
  217.  
  218.  
  219. .button-container {
  220. display: flex;
  221. justify-content: center; /* Distribuisce uniformemente lo spazio tra i bottoni */
  222. align-items: center; /* Allinea verticalmente al centro */
  223. width: 80%; /* Imposta la larghezza al 80% del contenitore esterno */
  224. margin: 0 auto; /* Centra il contenitore orizzontalmente */
  225. gap: 15%; /* Imposta il gap al 5% del contenitore */
  226. padding: 20px;
  227. }
  228. /*END Of Button Divs*/
  229.  
  230.  
  231. /* Stats V2 */
  232. .key-stats-container {
  233. display: flex; /* Display child elements in a row */
  234. flex-wrap: wrap; /* Allows the items to wrap onto the next line as needed */
  235. justify-content: space-around; /* Evenly space out the child elements */
  236. align-items: center; /* Align items vertically */
  237. width: 80%; /* Set width to 80% of its parent */
  238. max-width: 1200px; /* Maximum width for larger screens */
  239. margin: auto; /* Center the container horizontally */
  240. background-color: #000; /* Background color */
  241. color: #fff; /* Text color */
  242. padding: 20px 0; /* Padding above and below */
  243. box-sizing: border-box; /* Includes padding in the width */
  244. border: 2px solid #deff34;
  245. }
  246.  
  247. .key-stat {
  248. text-align: center; /* Center the text inside each stat block */
  249. flex: 1 1 180px; /* Flex grow, shrink and basis */
  250. margin: 10px; /* Margin around each stat block for spacing */
  251. }
  252.  
  253. .stat-value {
  254. font-size: 24px; /* Larger text size for values */
  255. font-weight: bold; /* Bold font for emphasis */
  256. }
  257.  
  258. .stat-label {
  259. font-size: 16px; /* Smaller text size for labels */
  260. }
  261.  
  262. /* END Stats V2 */
  263.  
  264. /* Player Data */
  265. /* Team Container */
  266. .team-container2 {
  267. display: flex;
  268. justify-content: space-between; /* Spaces out the children */
  269. align-items: center; /* Aligns children vertically in the center */
  270. width: 80%;
  271. margin: 0 auto;
  272. border: 2px solid #000;
  273. padding: 10px;
  274. box-sizing: border-box;
  275. margin-top: 20px;
  276. margin-bottom: 20px;
  277. background-color: #dddddd;
  278. /* border-radius: 15px; */
  279. }
  280.  
  281.  
  282. .left-team-details-content {
  283. width: 30%;
  284. /* Additional styling as needed */
  285. }
  286. .team-name2 {
  287. text-align: center; /* Centers the text horizontally */
  288. font-size: clamp(16px, 3.5vw, 24px);
  289. color: #000000; /* Sets the text color to black */
  290. padding: 10px; /* Adds space around the text */
  291. margin-top: 10px; /* Adds space between the image and the text */
  292. font-weight: bold; /* Makes the font bold */
  293. border-radius: 5px; /* Slightly rounded corners for the background */
  294. }
  295.  
  296.  
  297. .right-team-details-content2 {
  298. display: flex; /* Ensures the children are in a row */
  299. flex-direction: column; /* Align children in a column */
  300. width: 70%; /* Adjusted width to match the left side */
  301. color: #000000;
  302. padding: 20px;
  303. justify-content: space-around; /* Distributes space around items */
  304. align-items: stretch; /* Ensures that children occupy the full width */
  305. }
  306.  
  307. .row-data2 {
  308. display: flex; /* Uses flexbox for the row layout */
  309. flex-direction: row; /* Stacks the key-stats horizontally */
  310. width: 100%; /* Each row data takes the full width of the parent */
  311. justify-content: space-between; /* Distributes space evenly between items */
  312. }
  313.  
  314. .key-stat2 {
  315. display: flex;
  316. flex-direction: column; /* Stack the value and label vertically */
  317. align-items: flex-start; /* Align items to the start of the container */
  318. text-align: left; /* Align text to the left */
  319. width: 50%; /* Each stat takes up half of the row-data width */
  320. margin: 10px 0; /* Vertical margin for spacing, no horizontal margin */
  321. box-sizing: border-box; /* Includes padding in the width calculation */
  322. }
  323.  
  324. .stat-value2 {
  325. font-size: clamp(12px, 3.5vw, 24px); /* Responsive font size */
  326. font-weight: bold;
  327. }
  328.  
  329. .stat-label2 {
  330. font-size: clamp(10px, 2.5vw, 16px); /* Responsive font size */
  331. margin-top: 4px; /* Space between the value and the label */
  332. }
  333.  
  334. .left-team-details-content2 {
  335. width: 30%; /* Adjusted width to give more space to the right side */
  336. display: flex;
  337. flex-direction: column; /* Stacks children vertically */
  338. justify-content: center; /* Centers children vertically */
  339. align-items: center; /* Centers children horizontally */
  340. }
  341.  
  342.  
  343. .club-img img2 {
  344. max-width: 100%; /* Ensure the image does not exceed its container */
  345. height: auto;
  346. }
  347. /* Responsive adjustments for smaller screens */
  348. /* Responsive adjustments for smaller screens */
  349. @media (max-width: 768px) {
  350. .team-container2 {
  351. flex-direction: column; /* Stack vertically on small screens */
  352. }
  353.  
  354. .left-team-details-content2,
  355. .right-team-details-content2 {
  356. width: 100%; /* Take full width on small screens */
  357. align-items: center; /* Center content horizontally */
  358. }
  359.  
  360. .right-team-details-content2 {
  361. flex-direction: column; /* Stack stats vertically */
  362. }
  363.  
  364. .row-data2 {
  365. flex-direction: column; /* Stack stats vertically within each row-data */
  366. align-items: center; /* Center each row-data block */
  367. }
  368.  
  369. .key-stat2 {
  370. width: 100%; /* Each key-stat takes full width */
  371. align-items: center; /* Center the contents of key-stat */
  372. }
  373.  
  374. .stat-value2, .stat-label2 {
  375. text-align: center; /* Center the text of value and label */
  376. }
  377. }
  378.  
  379.  
  380. /* Football player data*/
  381. .button-container button {
  382. padding: 10px 20px;
  383. margin: 5px;
  384. cursor: pointer;
  385. }
  386. /* END Football player Data */
  387.  
  388. /* Team Logo Container */
  389. .club-image {
  390. width: 80%; /* Larghezza del div contenitore */
  391. margin: 0 auto; /* Centra il div contenitore orizzontalmente */
  392. text-align: center; /* Centra il contenuto testuale e inline all'interno del div */
  393. }
  394.  
  395. .club-image img {
  396. display: block; /* Rende l'immagine un blocco, permettendo margin: auto funzioni per centrare */
  397. margin: 0 auto; /* Centra effettivamente l'immagine orizzontalmente all'interno del suo div */
  398. max-width: 100%; /* Impedisce all'immagine di uscire dal suo contenitore */
  399. height: auto; /* Mantiene l'aspetto originale dell'immagine */
  400. }
  401.  
  402. /* END Team logo container*/
  403.  
  404. /*trend Div */
  405. /* Trend Div Styling */
  406. .padding-top-bottom{
  407. padding-bottom: 20px;
  408. padding-top: 20px;
  409. }
  410. .trend-div {
  411. width: 80%; /* Set the width to 80% of its parent container */
  412. margin: 0 auto; /* Centers the div horizontally */
  413. padding: 20px; /* Adds some padding around the content */
  414. background-color: black; /* Light grey background for better contrast */
  415. box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds subtle shadow for depth */
  416. border: 2px solid #deff34;
  417. }
  418.  
  419. /* Ensures the canvas fits within the trend-div properly */
  420. #marketChart {
  421. width: 100% !important; /* Forces the canvas to fill the trend-div */
  422. height: auto !important; /* Maintains aspect ratio without explicit height */
  423. display: block; /* Removes default inline behavior to allow width manipulation */
  424. }
  425.  
  426. /* Adds styling to the heading for consistency and emphasis */
  427. .trend-div > div > h3 {
  428. text-align: center; /* Centers the title */
  429. color: #dddddd; /* Dark grey color for the text for better readability */
  430. margin-bottom: 20px; /* Adds space below the heading */
  431. }
  432.  
  433.  
  434.  
  435. /* Footer */
  436. .footer {
  437. background-color: #deff34;
  438. color: #000;
  439. padding: 20px;
  440. padding-left: 3%; /* Aggiusta questa percentuale secondo le tue necessità */
  441. }
  442.  
  443. .footer .text-muted {
  444. font-size: 14px;
  445. }
  446. /* END Footer */
  447.  
  448.  
Tags: CSS
Advertisement
Add Comment
Please, Sign In to add comment