You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

495 line
10 KiB

  1. @import '../colors';
  2. .commentary-container {
  3. padding-bottom: 60px;
  4. width: 100%;
  5. z-index: 0;
  6. header {
  7. padding: 0 5%;
  8. color: $green;
  9. font-size: 14px;
  10. }
  11. ul {
  12. list-style: none;
  13. color: darken($brand-blue, 20%);
  14. line-height: 1.5;
  15. padding: 0;
  16. }
  17. li {
  18. padding: 10px 5% 10px 5px;
  19. display: flex;
  20. border-bottom: 1px solid rgba($brand-blue, 0.2);
  21. justify-content: space-between;
  22. }
  23. .over-data {
  24. width: 50px;
  25. label {
  26. display: block;
  27. font-size: 16px;
  28. font-weight: 600;
  29. text-align: center;
  30. }
  31. span {
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. background-color: $brand-blue;
  36. width: 30px;
  37. height: 30px;
  38. border-radius: 50%;
  39. color: white;
  40. font-size: 14px;
  41. margin: 10px auto;
  42. &.boundary {
  43. background-color: $green;
  44. }
  45. &.six {
  46. background-color: $green;
  47. }
  48. &.wicket {
  49. background-color: lighten($brand-red, 15%);
  50. }
  51. }
  52. }
  53. p {
  54. width: calc(100% - 55px);
  55. margin: 0;
  56. }
  57. }
  58. @keyframes popOut {
  59. 0% {
  60. transform: scale(0);
  61. border-radius: 50%;
  62. }
  63. 90% {
  64. transform: scale(1);
  65. border-radius: 50%;
  66. }
  67. 100% {
  68. transform: scale(1);
  69. border-radius: 0%;
  70. }
  71. }
  72. .player-details {
  73. position: fixed;
  74. z-index: 2;
  75. border-radius: 10px;
  76. overflow: hidden;
  77. box-shadow: 0px 0px 5px darken($brand-blue, 30%);
  78. background-color: darken($brand-blue, 30%);
  79. left: 0;
  80. top: 20%;
  81. height: 80%;
  82. overflow: auto;
  83. transform: translateY(50vh);
  84. opacity: 0;
  85. animation: riseUp 0.3s forwards;
  86. @keyframes riseUp {
  87. from {
  88. transform: translateY(50vh);
  89. opacity: 0;
  90. } to {
  91. transform: translateY(0vh);
  92. opacity: 1;
  93. }
  94. }
  95. .close-button {
  96. display: block;
  97. position: absolute;
  98. right: 0;
  99. top: 0;
  100. width: 40px;
  101. height: 40px;
  102. margin: 15px 5% 15px auto;
  103. border-radius: 50%;
  104. border: 2px solid lighten($brand-blue, 10%);
  105. background-color: rgba(lighten($brand-blue, 10%), 0.2);
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. z-index: 2;
  110. ion-icon {
  111. color: lighten($brand-blue, 10%);
  112. font-size: 22px;
  113. }
  114. }
  115. &.active {
  116. pointer-events: all;
  117. opacity: 1;
  118. transform: translateY(100px);
  119. }
  120. }
  121. .team-selection {
  122. position: fixed;
  123. left: calc(50% - 100px);
  124. bottom: 20px;
  125. width: 200px;
  126. z-index: 1;
  127. height: 40px;
  128. border-radius: 30px;
  129. display: flex;
  130. justify-content: center;
  131. overflow: hidden;
  132. background: linear-gradient(to right, lighten($brand-red, 15%), darken($brand-blue, 20%) 80%);
  133. &.change-bg {
  134. background-color: rgba($blue-grey, 0.3);
  135. .live span {
  136. background-color: white;
  137. }
  138. }
  139. &.active {
  140. &::before {
  141. transform: translateX(120px);
  142. left: -2px;
  143. }
  144. button:nth-child(3) {
  145. color: darken($green, 10%);
  146. }
  147. button:nth-child(1) {
  148. color: white;
  149. }
  150. }
  151. &.live {
  152. &::before {
  153. transform: translateX(80px);
  154. left: 0;
  155. width: 40px;
  156. }
  157. button:nth-child(1) {
  158. color: white;
  159. }
  160. }
  161. &::before {
  162. content: '';
  163. position: absolute;
  164. left: 2px;
  165. top: 2px;
  166. width: 80px;
  167. height: calc(100% - 4px);
  168. border-radius: 30px;
  169. background-color: white;
  170. transition: transform 0.3s, width 0.5s;
  171. transform: translateX(0px);
  172. }
  173. button {
  174. position: relative;
  175. width: 80px;
  176. border-radius: 30px;
  177. border-radius: 30px;
  178. transition: color 0.3s;
  179. color: darken($green, 10%);
  180. height: 100%;
  181. background-color: transparent;
  182. font-weight: 700;
  183. letter-spacing: 1px;
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. &.live {
  188. width: 40px;
  189. position: relative;
  190. span {
  191. width: 12px;
  192. height: 12px;
  193. background-color: darken($green, 10%);
  194. display: block;
  195. border-radius: 50%;
  196. &:before {
  197. content: '';
  198. left: 0;
  199. top: 0;
  200. height: 16px;
  201. width: 16px;
  202. position: absolute;
  203. border-radius: 50%;
  204. border: 12px solid rgba(darken($green, 10%), 0.5);
  205. opacity: 0.7;
  206. animation: rippleBorder 1.5s infinite;
  207. }
  208. }
  209. @keyframes rippleBorder {
  210. 0% {
  211. opacity: 0;
  212. transform: scale(0);
  213. } 50% {
  214. opacity: 1;
  215. transform: scale(0.8);
  216. }
  217. 100% {
  218. opacity: 0;
  219. transform: scale(0.8);
  220. }
  221. }
  222. }
  223. &:nth-child(3) {
  224. color: white;
  225. }
  226. }
  227. }
  228. .segment-holder {
  229. position: sticky;
  230. left: 0;
  231. top: 70px;
  232. z-index: 1;
  233. width: 100%;
  234. padding: 20px 0;
  235. background: linear-gradient(to bottom, white 50%, transparent);
  236. transition: background-color 0.3s, box-shadow 0.3s;
  237. }
  238. .segments {
  239. position: relative;
  240. margin: 0 auto;
  241. width: 70%;
  242. height: 40px;
  243. border-radius: 30px;
  244. display: flex;
  245. justify-content: center;
  246. overflow: hidden;
  247. background-color: $brand-blue;
  248. box-shadow: 0px 0px 5px inset $brand-blue;
  249. &.active {
  250. &::before {
  251. transform: translateX(98%);
  252. }
  253. button:nth-child(2) {
  254. color: white;
  255. }
  256. button:nth-child(1) {
  257. color: white;
  258. }
  259. }
  260. &::before {
  261. content: '';
  262. position: absolute;
  263. left: 0;
  264. top: 0;
  265. width: 50%;
  266. height: 90%;
  267. top: 5%;
  268. border-radius: 30px;
  269. background-color: darken($green, 5%);
  270. transition: transform 0.3s;
  271. transform: translateX(2%);
  272. }
  273. button {
  274. position: relative;
  275. width: 50%;
  276. border-radius: 30px;
  277. border-radius: 30px;
  278. transition: color 0.3s;
  279. color: white;
  280. height: 100%;
  281. background-color: transparent;
  282. font-weight: 700;
  283. letter-spacing: 1px;
  284. font-size: 1rem;
  285. &:nth-child(2) {
  286. color: white;
  287. }
  288. }
  289. }
  290. .score-card {
  291. background-color: white;
  292. box-shadow: 10px 10px 15px -7px darken($brand-blue, 10%);
  293. border-radius: 7px;
  294. overflow: hidden;
  295. width: 90%;
  296. margin: 30px auto;
  297. .container {
  298. width: 90%;
  299. margin: 0 auto;
  300. overflow: auto;
  301. padding-bottom: 20px;
  302. }
  303. header {
  304. display: flex;
  305. align-items: center;
  306. justify-content: flex-start;
  307. margin-bottom: 10px;
  308. height: 50px;
  309. background-color: lighten($blue-grey, 32%);
  310. padding: 0 5%;
  311. position: sticky;
  312. left: 0;
  313. h5 {
  314. margin: 0;
  315. font-size: 0.9rem;
  316. font-weight: 500;
  317. color: darken($blue-grey, 30%);
  318. }
  319. img {
  320. margin-right: 10px;
  321. width: 30px;
  322. height: 30px;
  323. object-fit: contain;
  324. }
  325. p {
  326. margin: 0;
  327. margin-left: 10px;
  328. font-size: 0.9rem;
  329. color: darken($blue-grey, 30%);
  330. font-weight: 700;
  331. }
  332. }
  333. table {
  334. width: 130vw;
  335. color: darken($blue-grey, 30%);
  336. font-size: 1rem;
  337. text-align: left;
  338. overflow-x: auto;
  339. thead {
  340. font-size: 0.9rem;
  341. th {
  342. padding: 10px 15px;
  343. }
  344. }
  345. tbody tr {
  346. background-color: lighten($blue-grey, 35%);
  347. border-bottom: 2px solid white;
  348. &:last-child {
  349. border-bottom: 0;
  350. }
  351. td {
  352. overflow: hidden;
  353. padding: 10px 15px;
  354. span {
  355. font-size: 0.9rem;
  356. color: darken($blue-grey, 10%);
  357. }
  358. label {
  359. font-weight: 500;
  360. }
  361. &:nth-child(1) {
  362. width: 40vw;
  363. }
  364. }
  365. }
  366. }
  367. }
  368. .player-list {
  369. position: sticky;
  370. top: 0px;
  371. z-index: 0;
  372. left: 0;
  373. ul {
  374. list-style: none;
  375. margin: 0;
  376. padding: 0;
  377. padding-bottom: 80px;
  378. }
  379. li {
  380. display: flex;
  381. width: 100%;
  382. align-items: center;
  383. border-bottom: 2px solid rgba($brand-blue, 0.1);
  384. padding: 15px 5%;
  385. }
  386. label {
  387. background-color: $pink;
  388. color: white;
  389. width: 30px;
  390. height: 30px;
  391. font-size: 13px;
  392. display: flex;
  393. align-items: center;
  394. justify-content: center;
  395. border-radius: 50%;
  396. margin-right: 10px;
  397. }
  398. .player-image {
  399. width: 60px;
  400. height: 60px;
  401. object-fit: cover;
  402. object-position: top;
  403. border-radius: 1px solid $blue-grey;
  404. background-color: rgba($blue-grey, 0.3);
  405. border-radius: 50%;
  406. margin: 0 auto;
  407. }
  408. .details {
  409. width: calc(100% - 120px);
  410. display: flex;
  411. align-items: center;
  412. justify-content: flex-start;
  413. h4 {
  414. margin: 0;
  415. font-size: 1rem;
  416. color: $brand-blue;
  417. max-width: calc(100% - 40px);
  418. white-space: nowrap;
  419. text-overflow: ellipsis;
  420. overflow: hidden;
  421. }
  422. img {
  423. width: 20px;
  424. margin: 0 10px;
  425. }
  426. }
  427. }