@mideind/netskrafl-react 1.0.0-beta.4 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mideind/netskrafl-react",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "React UI for Netskrafl",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,9 +17,9 @@
17
17
  font-family: 'Glyphicons Regular';
18
18
  /* The following source URLs are patched up at run-time
19
19
  to point to the backend server */
20
- src: url('../fonts/glyphicons-regular.eot') format('embedded-opentype'),
21
- url('../fonts/glyphicons-regular.woff') format('woff'),
22
- url('../fonts/glyphicons-regular.ttf') format('truetype');
20
+ src: url('../static/glyphicons-regular.eot') format('embedded-opentype'),
21
+ url('../static/glyphicons-regular.woff') format('woff'),
22
+ url('../static/glyphicons-regular.ttf') format('truetype');
23
23
  }
24
24
 
25
25
  .glyphicon {
@@ -42,7 +42,7 @@ div.netskrafl-container {
42
42
  --triple-letter-color: hsl(from var(--svarkur-secondary) h 70% 40%); /* #21A4B6; */
43
43
  --chat-background: hsl(from var(--malfridur-secondary) h 65% 92%);
44
44
  --ok-button: var(--malfridur-green);
45
- --cancel-button: hsl(from var(--logo-primary) h 70% 45%); /* #B6676D; */
45
+ --cancel-button: hsl(from var(--logo-primary) h 45% 55%); /* #B6676D; */
46
46
  --human-color: hsl(from var(--svarkur-secondary) h s 35%); /* #208C9F; */
47
47
  --list-header-background: hsl(from var(--malfridur-secondary) h 85% 90%); /* #fff1d0; */
48
48
  --list-header-bottom: hsl(from var(--malfridur-secondary) h 90% 55%); /* #ffc559; */
@@ -51,6 +51,7 @@ div.netskrafl-container {
51
51
  --tab-background: #f3f3f6;
52
52
  --header-background: #dde1e4;
53
53
  --two-letter-background: hsl(from var(--malfridur-green) h 20% 90%);
54
+ --header-green: hsl(from var(--malfridur-green) h 80% 35%);
54
55
  --dark-shadow: rgba(0, 0, 0, 0.5);
55
56
  --rack-shadow: #afb7cad0;
56
57
  --focus-border: var(--triple-word-color);
@@ -347,6 +348,8 @@ div.netskrafl-logo {
347
348
  display: flex;
348
349
  align-items: center;
349
350
  justify-content: center;
351
+ width: 32px;
352
+ height: 32px;
350
353
  }
351
354
  div.rightcol {
352
355
  position: relative;
@@ -611,7 +614,7 @@ div.tile.dragging {
611
614
  becomes a child of the document body element when dragging, and
612
615
  the style variables are not in scope at the body level. */
613
616
  box-shadow: 3px 3px 3px 0 rgba(0, 0, 0, 0.2);
614
- border-color: var(--ok-button);
617
+ border-color: #09814A; /* var(--ok-button); */
615
618
  border-radius: 5px;
616
619
  border-width: 3px;
617
620
  border-style: solid;
@@ -628,7 +631,7 @@ div.tile.dragging {
628
631
  box-sizing: content-box;
629
632
  }
630
633
  div.tile.dragging.no-drop {
631
- border-color: var(--cancel-button);
634
+ border-color: #c07359; /* var(--cancel-button); */
632
635
  }
633
636
  .board td {
634
637
  min-width: 21px;
@@ -1991,7 +1994,7 @@ div#main-tabs > div[role=tabpanel] {
1991
1994
  div#main-tabs div.header-logo {
1992
1995
  padding-left: 14px;
1993
1996
  padding-right: 8px;
1994
- padding-top: 7px;
1997
+ padding-top: 12px;
1995
1998
  }
1996
1999
  div#tabs {
1997
2000
  background-color: transparent;
@@ -2999,7 +3002,7 @@ div.reviewhdr {
2999
3002
  height: 18px;
3000
3003
  text-align: left;
3001
3004
  padding: 11px;
3002
- background-color: var(--ok-button);
3005
+ background-color: var(--human-color);
3003
3006
  color: white;
3004
3007
  font-weight: 400;
3005
3008
  font-size: 18px;
@@ -3389,9 +3392,10 @@ div.scorediff {
3389
3392
  font-weight: normal;
3390
3393
  color: white;
3391
3394
  visibility: hidden;
3392
- padding-top: 3px;
3395
+ padding-top: 2px;
3393
3396
  padding-bottom: 2px;
3394
- font-family: 'Open Sans', 'Arial', sans-serif;
3397
+ font-family: var(--number-font);
3398
+ border-radius: 5px;
3395
3399
  }
3396
3400
  div.posdiff {
3397
3401
  background-color: var(--ok-button);
@@ -3411,7 +3415,7 @@ div.navbtn {
3411
3415
  height: 30px;
3412
3416
  bottom: 136px;
3413
3417
  line-height: 24px;
3414
- background-color: var(--ok-button);
3418
+ background-color: var(--human-color);
3415
3419
  }
3416
3420
  div.navbtn#navnext {
3417
3421
  position: absolute;
@@ -3542,12 +3546,12 @@ div#btn-cancel-no {
3542
3546
  top: auto;
3543
3547
  background-color: var(--ok-button);
3544
3548
  }
3545
- .tabbed-page a:link,
3546
- .tabbed-page a:visited {
3549
+ div.help-tabs .ui-tabs-panel a:link,
3550
+ div.help-tabs .ui-tabs-panel a:visited {
3547
3551
  text-decoration: none;
3548
3552
  color: var(--humangrad-color);
3549
3553
  }
3550
- .tabbed-page a:hover {
3554
+ div.help-tabs .ui-tabs-panel a:hover {
3551
3555
  text-decoration: none;
3552
3556
  color: var(--triple-word-color);
3553
3557
  }
@@ -3993,13 +3997,16 @@ div#user-no-match span#search-prefix {
3993
3997
  font-weight: bold;
3994
3998
  }
3995
3999
  div.modal-close {
4000
+ display: flex;
4001
+ flex-direction: row;
4002
+ align-items: center;
4003
+ justify-content: center;
3996
4004
  text-align: center;
3997
4005
  font-size: 18px;
3998
4006
  font-weight: 700;
3999
4007
  color: white;
4000
4008
  margin: 0;
4001
4009
  padding: 6px;
4002
- padding-top: 9px;
4003
4010
  border-radius: 5px;
4004
4011
  cursor: pointer;
4005
4012
  position: absolute;
@@ -4009,6 +4016,9 @@ div.modal-close {
4009
4016
  right: 12px;
4010
4017
  top: auto;
4011
4018
  }
4019
+ div.modal-close span.glyphicon {
4020
+ top: 0;
4021
+ }
4012
4022
  div#usr-info-close {
4013
4023
  width: 72px;
4014
4024
  /* Override */
@@ -4396,16 +4406,16 @@ div#user-unfriend {
4396
4406
  left: 180px;
4397
4407
  width: 280px;
4398
4408
  /* Override */
4399
- padding-top: 6px;
4400
4409
  border-style: solid;
4401
4410
  border-width: 2px;
4402
4411
  border-color: var(--ok-button);
4403
4412
  background-color: white;
4404
4413
  color: var(--ok-button);
4405
- line-height: 24px;
4406
4414
  }
4407
4415
  div#user-unfriend span.glyphicon-coffee-cup {
4416
+ top: -1px;
4408
4417
  color: var(--triple-word-color);
4418
+ margin-right: 8px;
4409
4419
  }
4410
4420
  div#user-cancel {
4411
4421
  right: 108px;
@@ -4658,11 +4668,8 @@ div.toggler div.option.x-small {
4658
4668
  div.toggler div.option.selected {
4659
4669
  background-color: var(--triple-letter-color);
4660
4670
  }
4661
- div#fairplay-toggler div.option.selected {
4662
- background-color: var(--ok-button);
4663
- }
4664
- div#fairplay-toggler span.glyphicon-edit {
4665
- top: 0;
4671
+ div.toggler span.glyphicon {
4672
+ top: 1px;
4666
4673
  }
4667
4674
  div #radioset {
4668
4675
  padding-top: 6px;
@@ -4685,11 +4692,11 @@ a.nodecorate:hover {
4685
4692
  }
4686
4693
  a.iconlink:link {
4687
4694
  text-decoration: none;
4688
- color: var(--triple-letter-color);
4695
+ color: var(--malfridur-accent);
4689
4696
  }
4690
4697
  a.iconlink:visited {
4691
4698
  text-decoration: none;
4692
- color: var(--triple-letter-color);
4699
+ color: var(--malfridur-accent);
4693
4700
  }
4694
4701
  a.iconlink:hover {
4695
4702
  text-decoration: none;
@@ -5053,7 +5060,7 @@ div.signup-header {
5053
5060
  border-width: 0;
5054
5061
  color: white;
5055
5062
  left: 441px;
5056
- background-color: var(--ok-button);
5063
+ background-color: var(--human-color);
5057
5064
  }
5058
5065
  div.submitpass {
5059
5066
  top: 158px;
@@ -5268,6 +5275,10 @@ div.signup-header {
5268
5275
  div.logo {
5269
5276
  display: block;
5270
5277
  }
5278
+ div.netskrafl-logo {
5279
+ width: 46px;
5280
+ height: 46px;
5281
+ }
5271
5282
  div#main-tabs div.header-logo {
5272
5283
  display: none;
5273
5284
  }
@@ -5829,6 +5840,14 @@ div.signup-header {
5829
5840
  div.gamestats div.player.humancolor {
5830
5841
  color: white;
5831
5842
  }
5843
+ div.gamestats div.player.left {
5844
+ border-top-left-radius: 5px;
5845
+ border-bottom-left-radius: 5px;
5846
+ }
5847
+ div.gamestats div.player.right {
5848
+ border-top-right-radius: 5px;
5849
+ border-bottom-right-radius: 5px;
5850
+ }
5832
5851
  div.scorewrapper {
5833
5852
  background-color: var(--humangrad-color);
5834
5853
  min-height: 32px;
@@ -289,7 +289,7 @@ export const LeftLogo: Component = {
289
289
  view: () => m(".logo",
290
290
  m(m.route.Link,
291
291
  { href: '/main', class: "nodecorate" },
292
- m(NetskraflLogoOnly, { width: 24, height: 46 })
292
+ m(NetskraflLogoOnly)
293
293
  )
294
294
  )
295
295
  };
@@ -48,7 +48,7 @@ export const Main: ComponentFunc<IAttributes> = () => {
48
48
  href: "/page",
49
49
  class: "backlink"
50
50
  },
51
- m(NetskraflLogoOnly, { width: 24, height: 46 })
51
+ m(NetskraflLogoOnly)
52
52
  )
53
53
  ),
54
54
  m("ul", [
@@ -482,7 +482,7 @@ export class View implements IView {
482
482
  // The function assumes that 'this' is the current view object
483
483
  if (!html)
484
484
  return "";
485
- return m("div",
485
+ return m("div.help-tabs",
486
486
  {
487
487
  oninit: (vnode) => { vnode.state.selected = tabNumber || 1; },
488
488
  oncreate: (vnode) => { makeTabs(this, id, createFunc, true, vnode); }
@@ -667,7 +667,7 @@ export class View implements IView {
667
667
  ev.preventDefault();
668
668
  view.showFriendCancel()
669
669
  },
670
- [glyph("coffee-cup"), nbsp(), nbsp(), ts("Þú ert vinur Netskrafls!")], 10
670
+ [glyph("coffee-cup"), ts("Þú ert vinur Netskrafls!")], 10
671
671
  )
672
672
  :
673
673
  this.vwDialogButton("user-friend", ts("Gerast vinur"),
@@ -68,7 +68,7 @@ export const vwReview = (view: IView): VnodeChildren => {
68
68
  href: "/page",
69
69
  class: "backlink"
70
70
  },
71
- m(NetskraflLogoOnly, { width: 24, height: 46 })
71
+ m(NetskraflLogoOnly)
72
72
  )
73
73
  )
74
74
  ),
@@ -420,7 +420,7 @@ const vwStatsReview = (view: IView): VnodeChildren => {
420
420
  [
421
421
  m("div", { style: { position: "relative", width: "100%" } },
422
422
  [
423
- m(".player", { class: leftPlayerColor, style: { width: "50%" } },
423
+ m(".player.left", { class: leftPlayerColor, style: { width: "50%" } },
424
424
  m(".robot-btn.left",
425
425
  game.autoplayer[0] ?
426
426
  [glyph("cog"), nbsp(), game.nickname[0]]
@@ -428,7 +428,7 @@ const vwStatsReview = (view: IView): VnodeChildren => {
428
428
  game.nickname[0]
429
429
  )
430
430
  ),
431
- m(".player", { class: rightPlayerColor, style: { width: "50%", "text-align": "right" } },
431
+ m(".player.right", { class: rightPlayerColor, style: { width: "50%", "text-align": "right" } },
432
432
  m(".robot-btn.right",
433
433
  game.autoplayer[1] ?
434
434
  [glyph("cog"), nbsp(), game.nickname[1]]
@@ -266,7 +266,7 @@ export const RightColumn: ComponentFunc<IAttributes> = (initialVnode) => {
266
266
  href: "/page",
267
267
  class: "backlink"
268
268
  },
269
- m(NetskraflLogoOnly, { width: 24, height: 46 })
269
+ m(NetskraflLogoOnly)
270
270
  )
271
271
  )
272
272
  ),