Skip to content

Commit e77df83

Browse files
committed
Improed Media queries
1 parent e0a1576 commit e77df83

File tree

1 file changed

+87
-117
lines changed

1 file changed

+87
-117
lines changed

src/style.scss

Lines changed: 87 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -801,233 +801,203 @@ a {
801801
}
802802

803803

804+
@media only screen and (max-height: 600px), only screen and (max-width: 320px) {
805+
.gliched-text, .gliched-move, .navbar {
806+
font-size: 0.5em;
807+
}
804808

805-
@media only screen and (max-width: 1880px){
809+
.child {
810+
height: 85vh;
811+
}
806812

807-
.gliched-text{
808-
font-size: 1em;
813+
.exp-element, .container, .social-items {
814+
grid-template-columns: 1fr;
815+
row-gap: 1.5em;
809816
}
810817

811-
.gliched-move{
812-
font-size: 0.75em;
818+
.proj-element {
819+
grid-template-columns: 1fr;
813820
}
814821

815-
.proj-element{
816-
.gliched-move{
817-
font-size: 0.75em;
818-
}
819-
justify-items: center;
820-
align-content: center;
821-
text-align: center;
822+
.gliched-text p {
823+
word-spacing: 5px;
824+
}
822825

826+
#pagination {
827+
display: none;
823828
}
829+
}
824830

825-
.exp-element{
826-
.gliched-move{
827-
font-size: 1em;
828-
}
831+
@media only screen and (max-width: 1880px) {
832+
.gliched-text {
833+
font-size: 1em;
834+
}
835+
836+
.gliched-move, .proj-element .gliched-move, .exp-element .gliched-move {
837+
font-size: 0.75em;
838+
}
839+
840+
.proj-element, .exp-element {
829841
justify-items: center;
830842
align-content: center;
831843
text-align: center;
832844
}
833845
}
834846

835-
836-
837847
@media only screen and (max-width: 1300px) {
838-
.gliched-text{
848+
.gliched-text {
839849
font-size: 1.7em;
840850
}
841-
.gliched-move{
851+
852+
.gliched-move {
842853
font-size: 1em;
843854
}
844855
}
845856

846-
@media only screen and (max-width: 1150px){
847-
.exp-element{
848-
.time-point{
857+
@media only screen and (max-width: 1150px) {
858+
.exp-element {
859+
.time-point {
849860
display: none;
850861
}
851862
grid-template-columns: 1fr 5fr 5fr;
852863
}
853864
}
854865

855-
@media only screen and (max-width: 1000px) {
856-
.gliched-text{
857-
font-size: 1em;
858-
}
859-
.gliched-move{
866+
@media only screen and (max-width: 1000px), only screen and (max-height: 900px) {
867+
.gliched-text, .gliched-move {
860868
font-size: 1em;
861869
}
862-
.navbar{
870+
871+
.navbar {
863872
font-size: 0.8em;
864873
}
865-
.child{
874+
875+
.child {
866876
height: 90vh;
867877
}
868878

869-
#pagination{
879+
#pagination {
870880
display: none;
871881
}
872-
873882
}
874883

875-
@media only screen and (max-height: 900px) {
876-
.gliched-text{
877-
font-size: 1.7em;
878-
}
879-
.gliched-move{
880-
font-size: 1em;
881-
}
882-
}
883-
884-
@media only screen and (max-width: 900px){
885-
886-
.exp-element{
887-
.info{
884+
@media only screen and (max-width: 900px) {
885+
.exp-element {
886+
.info {
888887
display: none;
889888
}
890889
grid-template-columns: 1fr 10fr 5fr;
891890
}
892891

893-
.proj-element{
894-
.gliched-text p{
892+
.proj-element {
893+
.gliched-text p {
895894
word-spacing: normal;
896895
}
897-
.lang{
896+
897+
.lang {
898898
margin: 1%;
899899
font-size: 1em;
900900
word-spacing: 10px;
901901
}
902-
.info{
902+
903+
.info {
903904
font-size: 1em;
904905
}
905-
.gliched-move{
906+
907+
.gliched-move {
906908
margin: 0;
907909
}
908-
.line-point{
909-
display:none;
910+
911+
.line-point {
912+
display: none;
910913
}
914+
911915
grid-template-columns: 1fr;
912916
row-gap: 1em;
913917
}
914-
915918
}
916919

917-
@media only screen and (max-width: 850px){
918-
919-
.gliched-text{
920+
@media only screen and (max-width: 850px) {
921+
.gliched-text {
920922
font-size: 1.5em;
921923
}
922-
.gliched-move{
924+
925+
.gliched-move {
923926
font-size: 1em;
924927
}
925928

926-
.social-items{
929+
.social-items {
927930
grid-template-columns: 1fr;
928931
row-gap: 1rem;
929932
}
930-
931933
}
932934

933-
@media only screen and (max-width: 800px){
934-
.exp-element{
935+
@media only screen and (max-width: 800px) {
936+
.exp-element {
935937
grid-template-columns: 1fr;
936938
row-gap: 2em;
937939
}
938-
939940
}
940941

941-
942942
@media only screen and (max-width: 680px) {
943-
944-
.gliched-text{
943+
.gliched-text {
945944
font-size: 1.3em;
946945
}
947-
.gliched-move{
946+
947+
.gliched-move {
948948
font-size: 1em;
949949
}
950950

951-
.navbar{
952-
953-
a::after{
954-
display: none;
955-
}
956-
957-
ul{
958-
p{
959-
display: none;
960-
}
951+
.navbar a::after {
952+
display: none;
953+
}
961954

962-
i{
963-
display: block;
964-
}
965-
966-
a{
967-
text-shadow: none;
968-
}
955+
.navbar ul p {
956+
display: none;
957+
}
969958

970-
}
959+
.navbar ul i {
960+
display: block;
961+
}
971962

963+
.navbar a {
964+
text-shadow: none;
972965
}
973966

974-
#cursor{
967+
#cursor {
975968
display: none;
976969
}
977970
}
978971

979-
980-
981-
982972
@media only screen and (max-width: 580px) {
983-
.gliched-text{
984-
font-size: 1em;
985-
}
986-
.gliched-move{
973+
.gliched-text, .gliched-move {
987974
font-size: 1em;
988975
}
989976

990-
.container{
977+
.container {
991978
row-gap: 2em;
992979
grid-template-columns: 1fr;
993980
}
994981

995-
#contact{
982+
#contact {
996983
justify-content: flex-end;
997-
.p{
984+
.p {
998985
font-size: 0.55rem;
999986
}
1000987
}
1001-
1002-
.abt{
988+
989+
.abt {
1003990
padding-top: 50px;
1004991
justify-content: space-evenly;
1005992
}
1006-
1007993
}
1008994

1009-
@media only screen and (max-width: 400px){
1010-
1011-
.gliched-text{
995+
@media only screen and (max-width: 400px) {
996+
.gliched-text {
1012997
font-size: 0.75em;
1013998
}
1014999

1015-
.gliched-move{
1000+
.gliched-move {
10161001
font-size: 1em;
10171002
}
1018-
10191003
}
1020-
1021-
@media only screen and (max-width: 320px){
1022-
1023-
#contact{
1024-
textarea{
1025-
height: 20px;
1026-
}
1027-
}
1028-
1029-
}
1030-
1031-
1032-
1033-

0 commit comments

Comments
 (0)