2016-11-23 00:07:33 +08:00
|
|
|
(ns status-im.discover.styles
|
2017-03-07 20:06:15 -03:00
|
|
|
(:require-macros [status-im.utils.styles :refer [defnstyle]])
|
2017-01-25 09:20:37 -08:00
|
|
|
(:require [status-im.components.styles :refer [color-white
|
|
|
|
color-light-gray
|
|
|
|
color-blue]]
|
2017-03-07 20:06:15 -03:00
|
|
|
[status-im.components.toolbar.styles :refer [toolbar-background2]]
|
|
|
|
[status-im.components.tabs.styles :as tabs-st]
|
|
|
|
[status-im.utils.platform :as p]))
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-12-05 13:50:47 +03:00
|
|
|
;; Common
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def row-separator
|
2016-08-04 18:36:13 +03:00
|
|
|
{:border-bottom-width 1
|
|
|
|
:border-bottom-color "#eff2f3"})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def row
|
2016-11-10 15:34:25 +03:00
|
|
|
{:flex-direction :row
|
2017-03-07 20:06:15 -03:00
|
|
|
:margin-bottom 10})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def column
|
2016-08-04 18:36:13 +03:00
|
|
|
{:flex-direction :column})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-10 15:34:25 +03:00
|
|
|
(def empty-view
|
|
|
|
{:flex 1
|
|
|
|
:background-color color-white
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
|
|
|
|
2016-05-07 17:53:39 +03:00
|
|
|
(def section-spacing
|
2016-08-04 18:36:13 +03:00
|
|
|
{:padding 16})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-08-04 18:36:13 +03:00
|
|
|
;; Popular
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-10 15:34:25 +03:00
|
|
|
(def popular-container
|
|
|
|
{:background-color toolbar-background2})
|
|
|
|
|
2016-05-07 17:53:39 +03:00
|
|
|
(def carousel-page-style
|
2016-11-10 15:34:25 +03:00
|
|
|
{})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def tag-name
|
2017-01-25 09:20:37 -08:00
|
|
|
{:color color-blue
|
2016-08-04 18:36:13 +03:00
|
|
|
:font-size 14
|
|
|
|
:padding-right 5
|
|
|
|
:padding-bottom 2
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def tag-count
|
2016-08-04 18:36:13 +03:00
|
|
|
{:color "#838c93"
|
|
|
|
:font-size 12
|
2016-11-10 15:34:25 +03:00
|
|
|
:padding-right 6
|
2016-08-04 18:36:13 +03:00
|
|
|
:padding-bottom 2
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def tag-count-container
|
2016-08-04 18:36:13 +03:00
|
|
|
{:flex 0.2
|
|
|
|
:flex-direction "column"
|
|
|
|
:align-items "flex-end"
|
2016-11-10 15:34:25 +03:00
|
|
|
:padding-top 6
|
2016-08-04 18:36:13 +03:00
|
|
|
:padding-right 9})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-10 15:34:25 +03:00
|
|
|
(def separator
|
|
|
|
{:background-color "rgb(200, 199, 204)"
|
|
|
|
:height 0.5})
|
|
|
|
|
|
|
|
;; Popular list item
|
|
|
|
|
2016-05-07 17:53:39 +03:00
|
|
|
(def popular-list-container
|
2016-08-04 18:36:13 +03:00
|
|
|
{:flex 1
|
|
|
|
:background-color :white
|
2016-12-24 12:05:49 +03:00
|
|
|
:padding-top 18
|
|
|
|
:padding-left 16})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def popular-list-item
|
2016-08-04 18:36:13 +03:00
|
|
|
{:flex-direction :row
|
2016-11-10 15:34:25 +03:00
|
|
|
:padding-bottom 16
|
2017-03-07 20:06:15 -03:00
|
|
|
:top 1})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def popular-list-item-name
|
2016-11-10 15:34:25 +03:00
|
|
|
{:color "black"
|
|
|
|
:font-size 15
|
|
|
|
:padding-bottom 4})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def popular-list-item-name-container
|
2016-08-04 18:36:13 +03:00
|
|
|
{:flex 0.8
|
2016-11-10 15:34:25 +03:00
|
|
|
:flex-direction "column"
|
|
|
|
:padding-top 16})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def popular-list-item-avatar-container
|
2016-08-04 18:36:13 +03:00
|
|
|
{:flex 0.2
|
|
|
|
:flex-direction "column"
|
|
|
|
:align-items :center
|
2016-11-10 15:34:25 +03:00
|
|
|
:padding-top 16})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-23 00:07:33 +08:00
|
|
|
;; discover_recent
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-10 15:34:25 +03:00
|
|
|
(def recent-container
|
|
|
|
{:background-color toolbar-background2})
|
|
|
|
|
2016-05-07 17:53:39 +03:00
|
|
|
(def recent-list
|
2016-08-04 18:36:13 +03:00
|
|
|
{:background-color :white
|
|
|
|
:padding-left 16})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-23 00:07:33 +08:00
|
|
|
;; Discover tag
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-23 00:07:33 +08:00
|
|
|
(def discover-tag-toolbar
|
2016-11-10 15:34:25 +03:00
|
|
|
{:border-bottom-color "#D7D7D7"
|
|
|
|
:border-bottom-width 1})
|
|
|
|
|
2016-11-23 00:07:33 +08:00
|
|
|
(def discover-tag-container
|
2016-05-07 17:53:39 +03:00
|
|
|
{:flex 1
|
2016-12-05 13:50:47 +03:00
|
|
|
:backgroundColor color-light-gray})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
2016-11-10 15:34:25 +03:00
|
|
|
(def tag-title-scroll
|
|
|
|
{:flex 1
|
|
|
|
:alignItems "center"
|
|
|
|
:justifyContent "center"})
|
|
|
|
|
2016-05-12 23:46:17 +03:00
|
|
|
(def tag-title-container
|
2016-05-23 13:13:06 +03:00
|
|
|
{:flex 1
|
|
|
|
:alignItems "center"
|
2016-08-19 16:14:59 +03:00
|
|
|
:justifyContent "center"
|
|
|
|
:flex-direction "row"})
|
2016-05-12 23:46:17 +03:00
|
|
|
|
2016-05-07 17:53:39 +03:00
|
|
|
(def tag-title
|
2017-01-25 09:20:37 -08:00
|
|
|
{:color color-blue
|
2016-08-19 16:14:59 +03:00
|
|
|
:font-size 14
|
|
|
|
:padding-right 5
|
|
|
|
:padding-bottom 2})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def icon-back
|
2016-05-12 23:46:17 +03:00
|
|
|
{:width 8
|
|
|
|
:height 14})
|
2016-05-07 17:53:39 +03:00
|
|
|
|
|
|
|
(def icon-search
|
|
|
|
{:width 17
|
2016-05-11 13:53:38 +03:00
|
|
|
:height 17})
|
2016-05-13 16:58:14 +03:00
|
|
|
|
2016-11-23 00:07:33 +08:00
|
|
|
(def discover-container
|
2016-05-13 16:58:14 +03:00
|
|
|
{:flex 1
|
2016-11-10 15:34:25 +03:00
|
|
|
:backgroundColor color-white})
|
2016-05-13 16:58:14 +03:00
|
|
|
|
2017-03-07 20:06:15 -03:00
|
|
|
(defnstyle list-container [tabs-hidden?]
|
|
|
|
{:android {:margin-bottom 20}
|
|
|
|
:ios {:margin-bottom (if tabs-hidden? 20 (+ 16 tabs-st/tabs-height))}})
|
|
|
|
|
2016-05-13 16:58:14 +03:00
|
|
|
(def search-icon
|
|
|
|
{:width 17
|
|
|
|
:height 17})
|