Skip to content

Commit 3ee0e7c

Browse files
authored
Change Style Sheet (#10)
* refactor: scss to css * chore: remove sass * chore: update yarn.lock
1 parent 9e49a9c commit 3ee0e7c

File tree

5 files changed

+80
-142
lines changed

5 files changed

+80
-142
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"eslint": "^8.57.0",
5858
"eslint-plugin-react-hooks": "^4.6.0",
5959
"eslint-plugin-react-refresh": "^0.4.6",
60-
"sass": "^1.77.2",
6160
"typescript": "^5.2.2",
6261
"vite": "^5.2.0",
6362
"vite-plugin-dts": "^3.9.1"

src/lib/ui/IPhoneLayout.css

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
.ril-root {
2+
height: 100%;
3+
4+
position: absolute;
5+
top: 50%;
6+
left: 50%;
7+
transform: translate(-50%, -50%);
8+
9+
display: flex;
10+
justify-content: center;
11+
align-items: center;
12+
}
13+
14+
.ril-iphone {
15+
position: relative;
16+
17+
background-image: url("../assets/iPhone.png");
18+
background-size: cover;
19+
background-repeat: no-repeat;
20+
background-position: center center;
21+
22+
aspect-ratio: 256 / 538;
23+
height: var(--iphone-size);
24+
}
25+
26+
.ril-client-area {
27+
position: absolute;
28+
bottom: 9.17%;
29+
left: 3.2%;
30+
right: 2.65%;
31+
top: 10.3%;
32+
33+
z-index: 32;
34+
background-color: #fff;
35+
36+
overflow-x: hidden;
37+
}
38+
39+
.ril-status-bar {
40+
display: block;
41+
width: 100%;
42+
background-color: #fff;
43+
overflow: hidden;
44+
45+
z-index: 9999;
46+
position: sticky;
47+
top: 0;
48+
}
49+
50+
.ril-utility-container {
51+
position: absolute;
52+
left: 50%;
53+
bottom: calc(2% + (var(--iphone-size) - 80%) * 0.025);
54+
transform: translateX(-50%);
55+
56+
display: flex;
57+
align-items: center;
58+
gap: 24px;
59+
}
60+
61+
.ril-utility-container .ril-btn-size-down,
62+
.ril-utility-container .ril-btn-size-up {
63+
background-color: transparent;
64+
border: 1px solid #8691a2;
65+
border-radius: 50%;
66+
67+
width: 40px;
68+
height: 40px;
69+
70+
color: #fff;
71+
font-size: 24px;
72+
73+
cursor: pointer;
74+
}

src/lib/ui/IPhoneLayout.scss

-74
This file was deleted.

src/lib/ui/IPhoneLayout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useUtilityIPhone } from "../hooks/useUtilityIPhone";
22

33
import iPhoneStatus from "../assets/iPhone_status.png";
4-
import "./IPhoneLayout.scss";
4+
import "./IPhoneLayout.css";
55

66
interface IPhoneLayoutProps {
77
children: React.ReactNode;

yarn.lock

+5-66
Original file line numberDiff line numberDiff line change
@@ -865,14 +865,6 @@ ansi-styles@^4.1.0:
865865
dependencies:
866866
color-convert "^2.0.1"
867867

868-
anymatch@~3.1.2:
869-
version "3.1.3"
870-
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
871-
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
872-
dependencies:
873-
normalize-path "^3.0.0"
874-
picomatch "^2.0.4"
875-
876868
argparse@^2.0.1:
877869
version "2.0.1"
878870
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
@@ -895,11 +887,6 @@ balanced-match@^1.0.0:
895887
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
896888
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
897889

898-
binary-extensions@^2.0.0:
899-
version "2.3.0"
900-
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522"
901-
integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==
902-
903890
brace-expansion@^1.1.7:
904891
version "1.1.11"
905892
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
@@ -915,7 +902,7 @@ brace-expansion@^2.0.1:
915902
dependencies:
916903
balanced-match "^1.0.0"
917904

918-
braces@^3.0.2, braces@~3.0.2:
905+
braces@^3.0.2:
919906
version "3.0.2"
920907
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
921908
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
@@ -959,21 +946,6 @@ chalk@^4.0.0:
959946
ansi-styles "^4.1.0"
960947
supports-color "^7.1.0"
961948

962-
"chokidar@>=3.0.0 <4.0.0":
963-
version "3.6.0"
964-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
965-
integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
966-
dependencies:
967-
anymatch "~3.1.2"
968-
braces "~3.0.2"
969-
glob-parent "~5.1.2"
970-
is-binary-path "~2.1.0"
971-
is-glob "~4.0.1"
972-
normalize-path "~3.0.0"
973-
readdirp "~3.6.0"
974-
optionalDependencies:
975-
fsevents "~2.3.2"
976-
977949
color-convert@^1.9.0:
978950
version "1.9.3"
979951
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
@@ -1320,7 +1292,7 @@ gensync@^1.0.0-beta.2:
13201292
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
13211293
integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
13221294

1323-
glob-parent@^5.1.2, glob-parent@~5.1.2:
1295+
glob-parent@^5.1.2:
13241296
version "5.1.2"
13251297
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
13261298
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -1407,11 +1379,6 @@ ignore@^5.2.0, ignore@^5.3.1:
14071379
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef"
14081380
integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==
14091381

1410-
immutable@^4.0.0:
1411-
version "4.3.6"
1412-
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.6.tgz#6a05f7858213238e587fb83586ffa3b4b27f0447"
1413-
integrity sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==
1414-
14151382
import-fresh@^3.2.1:
14161383
version "3.3.0"
14171384
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -1443,13 +1410,6 @@ inherits@2:
14431410
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
14441411
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
14451412

1446-
is-binary-path@~2.1.0:
1447-
version "2.1.0"
1448-
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
1449-
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
1450-
dependencies:
1451-
binary-extensions "^2.0.0"
1452-
14531413
is-core-module@^2.1.0, is-core-module@^2.13.0:
14541414
version "2.13.1"
14551415
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384"
@@ -1462,7 +1422,7 @@ is-extglob@^2.1.1:
14621422
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
14631423
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
14641424

1465-
is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
1425+
is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3:
14661426
version "4.0.3"
14671427
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
14681428
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
@@ -1667,11 +1627,6 @@ node-releases@^2.0.14:
16671627
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b"
16681628
integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==
16691629

1670-
normalize-path@^3.0.0, normalize-path@~3.0.0:
1671-
version "3.0.0"
1672-
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
1673-
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
1674-
16751630
once@^1.3.0:
16761631
version "1.4.0"
16771632
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
@@ -1747,7 +1702,7 @@ picocolors@^1.0.0, picocolors@^1.0.1:
17471702
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1"
17481703
integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==
17491704

1750-
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
1705+
picomatch@^2.3.1:
17511706
version "2.3.1"
17521707
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
17531708
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
@@ -1796,13 +1751,6 @@ react@^18.2.0:
17961751
dependencies:
17971752
loose-envify "^1.1.0"
17981753

1799-
readdirp@~3.6.0:
1800-
version "3.6.0"
1801-
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
1802-
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
1803-
dependencies:
1804-
picomatch "^2.2.1"
1805-
18061754
resolve-from@^4.0.0:
18071755
version "4.0.0"
18081756
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
@@ -1869,15 +1817,6 @@ run-parallel@^1.1.9:
18691817
dependencies:
18701818
queue-microtask "^1.2.2"
18711819

1872-
sass@^1.77.2:
1873-
version "1.77.2"
1874-
resolved "https://registry.yarnpkg.com/sass/-/sass-1.77.2.tgz#18d4ed2eefc260cdc8099c5439ec1303fd5863aa"
1875-
integrity sha512-eb4GZt1C3avsX3heBNlrc7I09nyT00IUuo4eFhAbeXWU2fvA7oXI53SxODVAA+zgZCk9aunAZgO+losjR3fAwA==
1876-
dependencies:
1877-
chokidar ">=3.0.0 <4.0.0"
1878-
immutable "^4.0.0"
1879-
source-map-js ">=0.6.2 <2.0.0"
1880-
18811820
scheduler@^0.23.2:
18821821
version "0.23.2"
18831822
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3"
@@ -1919,7 +1858,7 @@ slash@^3.0.0:
19191858
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
19201859
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
19211860

1922-
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0:
1861+
source-map-js@^1.2.0:
19231862
version "1.2.0"
19241863
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af"
19251864
integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==

0 commit comments

Comments
 (0)